Skip to content

Commit

Permalink
Support Artifactory backend under Python 3.12 (#259)
Browse files Browse the repository at this point in the history
* Depend on dohq-artifactory >=1.0.0

* Update install instructions

* Update tests to skip some for Python 3.13
  • Loading branch information
hagenw authored Jan 23, 2025
1 parent eff7f20 commit 3b21cc3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]

Expand Down

0 comments on commit 3b21cc3

Please sign in to comment.