From bcb49efec30a0ba830fed6fcfdc02ed3738da1ee Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Mon, 30 Dec 2024 09:18:21 -0500 Subject: [PATCH] chore!: rename optional dependency * `tests` -> `test` --- .github/workflows/checks.yaml | 4 ++-- docs/source/contributing.rst | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index b7e0f9d..fc087dd 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -39,11 +39,11 @@ jobs: - name: Install DynamoDB dependencies if: ${{ env.DISEASE_NORM_DB_URL == 'http://localhost:8002' }} - run: python3 -m pip install ".[etl,tests]" + run: python3 -m pip install ".[etl,test]" - name: Install PG dependencies if: ${{ env.DISEASE_NORM_DB_URL != 'http://localhost:8002' }} - run: python3 -m pip install ".[pg,etl,tests]" + run: python3 -m pip install ".[pg,etl,test]" - name: Run tests run: python3 -m pytest tests/ diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst index ca361b1..8cebde3 100644 --- a/docs/source/contributing.rst +++ b/docs/source/contributing.rst @@ -18,7 +18,7 @@ Then initialize a virtual environment: :: python3 -m virtualenv venv source venv/bin/activate - python3 -m pip install -e '.[dev,tests,docs]' + python3 -m pip install -e '.[dev,test,docs]' We use `pre-commit `_ to run conformance tests before commits. This provides checks for: diff --git a/pyproject.toml b/pyproject.toml index ad3ecd4..f517324 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dynamic = ["version"] [project.optional-dependencies] pg = ["psycopg[binary]", "requests"] etl = ["owlready2==0.40", "rdflib", "wags-tails>=0.1.2", "fastobo", "tqdm"] -tests = ["pytest>=6.0", "pytest-cov", "httpx"] +test = ["pytest>=6.0", "pytest-cov", "httpx"] dev = ["pre-commit>=3.7.1", "ruff==0.5.0", "lxml", "xmlformatter"] docs = [ "sphinx==6.1.3",