From 08fa9b28d4829d7ee63651993a3c766e34ec838b Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Wed, 22 Jan 2025 17:00:13 +0100 Subject: [PATCH 1/3] Depend on dohq-artifactory >=1.0.0 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7f5a65b..6387d18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,13 +42,13 @@ dynamic = ['version'] [project.optional-dependencies] artifactory = [ - 'dohq-artifactory >=1.0.0; python_version < "3.12"', + 'dohq-artifactory >=1.0.0; python_version < "3.13"', ] minio = [ 'minio', ] all = [ - 'dohq-artifactory >=1.0.0; python_version < "3.12"', + 'dohq-artifactory >=1.0.0; python_version < "3.13"', 'minio', ] From 079a61c5425009654fb0d98afd43efa3b2b71857 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Wed, 22 Jan 2025 17:01:45 +0100 Subject: [PATCH 2/3] Update install instructions --- docs/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install.rst b/docs/install.rst index eeb5e11..d2bdb91 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -33,5 +33,5 @@ or :class:`audbackend.backend.Artifactory`: $ pip install audbackend[artifactory] Note, -in Python 3.12 the :class:`audbackend.backend.Artifactory` +in Python 3.13 the :class:`audbackend.backend.Artifactory` backend is not available at the moment. From cf8653ce1481e96a6f07f1ee39a5eb80e40e41b4 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Thu, 23 Jan 2025 13:21:08 +0100 Subject: [PATCH 3/3] Update tests to skip some for Python 3.13 --- .coveragerc.python3.12 => .coveragerc.python3.13 | 0 .github/workflows/test.yml | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename .coveragerc.python3.12 => .coveragerc.python3.13 (100%) diff --git a/.coveragerc.python3.12 b/.coveragerc.python3.13 similarity index 100% rename from .coveragerc.python3.12 rename to .coveragerc.python3.13 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c52b69..034d524 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,22 +50,22 @@ jobs: run: | pip install -r requirements.txt - - name: Test with pytest for Python <3.12 + - name: Test with pytest for Python <3.13 env: ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }} run: | python -m pytest --cov-config=.coveragerc.${{ runner.os }} - if: ${{ (matrix.python-version != '3.12') && (matrix.python-version != '3.13') }} + if: ${{ matrix.python-version != '3.13' }} - - name: Test with pytest for Python >=3.12 + - name: Test with pytest for Python >=3.13 run: | - python -m pytest --cov-config=.coveragerc.python3.12 --ignore=audbackend/core/backend/artifactory.py --ignore=tests/test_backend_artifactory.py - if: ${{ (matrix.python-version == '3.12') || (matrix.python-version == '3.13') }} + python -m pytest --cov-config=.coveragerc.python3.13 --ignore=audbackend/core/backend/artifactory.py --ignore=tests/test_backend_artifactory.py + if: ${{ matrix.python-version == '3.13' }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml - if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version != '3.12') && (matrix.python-version != '3.13') }} + if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.python-version != '3.13') }}