From 0c543367c655e728fa6d43ef62b488c310502c90 Mon Sep 17 00:00:00 2001 From: Wil Thieme Date: Sun, 29 Sep 2024 18:33:09 -0400 Subject: [PATCH] rename requirements files based on dependabot parser code https://github.com/dependabot/dependabot-core/blob/47d28fe9faf92448630f0d62ee2de1f2194f8742/python/spec/dependabot/python/file_parser_spec.rb#L446 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/pytest.yml | 4 ++-- CONTRIBUTING.md | 4 ++-- requirements_dev.txt => dev-requirements.txt | 0 requirements_test.txt => test-requirements.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename requirements_dev.txt => dev-requirements.txt (100%) rename requirements_test.txt => test-requirements.txt (82%) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 21bb4d3..d858151 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -14,7 +14,7 @@ "features": { "ghcr.io/devcontainers-contrib/features/ffmpeg-apt-get:1": {} }, - "postCreateCommand": "sudo apt-get update && sudo apt-get install -y libturbojpeg0 libpcap-dev && pip install -r requirements_dev.txt && pre-commit install && pre-commit install-hooks", + "postCreateCommand": "sudo apt-get update && sudo apt-get install -y libturbojpeg0 libpcap-dev && pip install -r dev-requirements.txt && pre-commit install && pre-commit install-hooks", "containerEnv": { "DEVCONTAINER": "1" }, diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 9e94386..4687561 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,8 +22,8 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install pytest - pip install -r requirements_dev.txt - pip install -r requirements_test.txt + pip install -r dev-requirements.txt + pip install -r test-requirements.txt - name: Test with pytest run: | pytest tests/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 396ac02..6c7a327 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,8 +7,8 @@ Environment setup: ``` $ python3 -m venv venv $ source venv/bin/activate -$ pip3 install -r requirements_dev.txt -$ pip3 install -r requirements_test.txt +$ pip3 install -r dev-requirements.txt +$ pip3 install -r test-requirements.txt ``` Run tests: diff --git a/requirements_dev.txt b/dev-requirements.txt similarity index 100% rename from requirements_dev.txt rename to dev-requirements.txt diff --git a/requirements_test.txt b/test-requirements.txt similarity index 82% rename from requirements_test.txt rename to test-requirements.txt index b4e75df..ed60ae6 100644 --- a/requirements_test.txt +++ b/test-requirements.txt @@ -1,4 +1,4 @@ --r requirements_dev.txt +-r dev-requirements.txt pytest==7.4.3 pytest-socket==0.6.0