Skip to content

Commit caa00d6

Browse files
committed
Bump required pytest version to 4.6
We have started getting an error with pytest>=4,<4.6 when setuptools>=71 (or typeguard>=4.2) is also installed, due to a conflict with older pytest and setuptools' vendored version of typeguard. Out of various ways to resolve this conflict, this is the only one that doesn't involve putting an upper bound on the version of some package. It should still be technically possible to use older versions of pytest along with setuptools<71, if someone really needs to do that, but there isn't any way to express that dependency constraint, and I'm not going to go to any trouble to support long-obsolete versions of packages.
1 parent 5ef5c77 commit caa00d6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ jobs:
1919
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.7', 'pypy-3.8', 'pypy-3.9']
2020
extra: ['', '-smtp']
2121
# The forced pytest versions correspond with the lower bounds in tox.ini
22-
pytest-version: ['', '--force-dep pytest==4', '--force-dep pytest==6.2.4']
22+
pytest-version: ['', '--force-dep pytest==4.6', '--force-dep pytest==6.2.4']
2323
include:
2424
- os: 'ubuntu-20.04'
2525
python-version: '3.6'
2626
exclude:
2727
- python-version: '3.10'
28-
pytest-version: '--force-dep pytest==4'
28+
pytest-version: '--force-dep pytest==4.6'
2929
- python-version: '3.11'
30-
pytest-version: '--force-dep pytest==4'
30+
pytest-version: '--force-dep pytest==4.6'
3131
- python-version: '3.12'
32-
pytest-version: '--force-dep pytest==4'
32+
pytest-version: '--force-dep pytest==4.6'
3333
- python-version: '3.13'
34-
pytest-version: '--force-dep pytest==4'
34+
pytest-version: '--force-dep pytest==4.6'
3535
fail-fast: false
3636

3737
steps:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ deps =
2222
# works with your code. Don't forget to modify the corresponding entries in
2323
# the Github workflows configuration file if you do change these lower
2424
# bounds.
25-
pytest >=4, <8; python_version<'3.10'
25+
pytest >=4.6, <8; python_version<'3.10'
2626
pytest >=6.2.4, <8; python_version>='3.10'
2727
pytest-cov
2828
requests

0 commit comments

Comments
 (0)