Skip to content

Commit

Permalink
Use different dev dependencies for different fedora versions
Browse files Browse the repository at this point in the history
It is not sufficient to use one set of dev dependencies. In particular,
pytest-asyncio has introduced a breaking change in f39.
  • Loading branch information
nicois committed Apr 30, 2024
1 parent f600b4d commit 8d5b7fa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cache: "pip"

- name: Install requirements
run: pip install -e '.[cassandra,dev,f${{ matrix.fedora-version }}]'
run: pip install -e '.[cassandra,f${{ matrix.fedora-version }}-dev,f${{ matrix.fedora-version }}]'

- name: Execute lints and tests
run: make tests
Expand Down
24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ f39 = [
"wcmatch == 8.4.1",
"zstandard == 0.21.0",
]
dev = [
f38-dev = [
# Needed by pre-commit to lint and test the project
"pre-commit>=3.7.0",
"anyio==3.5.0",
Expand All @@ -116,6 +116,28 @@ dev = [
"respx==0.20.1",
]

f39-dev = [
# Needed by pre-commit to lint and test the project
"pre-commit==3.7.0",
"anyio==3.7.0",
"pylint==3.0.4",
"pytest-asyncio==0.23.5",
"pytest-cov==4.0.0",
"pytest-mock==3.11.1",
"pytest-order",
"pytest-timeout==2.1.0",
"pytest-watch==4.2.0",
"pytest==7.3.2",
"mypy==1.8.0",
# Types for things that don't seem to have them
"types-botocore>=1.0.2",
"types-PyYAML>=6.0.12.2",
"types-requests>=2.28.11.5",
"types-tabulate>=0.9.0.0",
"types-ujson>=5.9.0.0",
"types-urllib3>=1.26.25.4",
]

[project.urls]
"Homepage" = "https://github.com/Aiven-Open/astacus"
"Bug Tracker" = "https://github.com/Aiven-Open/astacus/issues"
Expand Down

0 comments on commit 8d5b7fa

Please sign in to comment.