Skip to content

Commit a8f310c

Browse files
committed
requirements[dev]: Limit pytest dependencies per Python version.
Currently this enables testing on EOL Python 3.7.
1 parent b96e4cc commit a8f310c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def long_description():
1818

1919

2020
testing_minimal_deps = [
21-
"pytest~=7.2.0",
22-
"pytest-mock~=3.10.0",
21+
"pytest>=7.4.0,<8.0.0", # 8.0.0 drops support for Python 3.7
22+
"pytest-mock>=3.10.0,<3.12.0", # 3.12.0 drops support for Python 3.7
2323
]
2424

2525
testing_plugin_deps = [
26-
"pytest-cov~=4.0.0",
26+
"pytest-cov>=4.0.0,<5.0.0", # 5.0.0 drops support for Python 3.7 (6.0.0 drops 3.8)
2727
]
2828

2929
testing_deps = testing_minimal_deps + testing_plugin_deps

0 commit comments

Comments
 (0)