Skip to content

Commit 7a2a7f5

Browse files
committed
Remove official support for pytest versions < 5.0.0
- add convenience requirements.txt files (see #34)
1 parent 7e54c5c commit 7a2a7f5

8 files changed

+17
-24
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Breaking changes
66
- removed support for Python 2.7 and 3.5
7+
- removed official support for pytest < 5.0.0 (older versions may still
8+
work, but they are not tested)
79
- changed notation of relative markers in other modules - instead of using
810
the dot notation, the standard pytest nodeid is used,
911
see [#24](https://github.com/pytest-dev/pytest-order/issues/24)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ relationship to other tests.
1313
additional features like ordering relative to other tests.
1414

1515
`pytest-order` works with Python 3.6 - 3.10, with pytest
16-
versions >= 3.7.0, and runs on Linux, macOS and Windows.
16+
versions >= 5.0.0, and runs on Linux, macOS and Windows.
1717

1818
Documentation
1919
-------------

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx>=2.3.1

docs/source/intro.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ ordering, all configuration options) that are not available in
3939
Supported Python and pytest versions
4040
------------------------------------
4141
``pytest-order`` supports python 3.6 - 3.10 and pypy3, and is
42-
compatible with pytest 3.7.0 or newer.
42+
compatible with pytest 5.0.0 or newer (older versions may also work, but are
43+
not tested).
4344

4445
All supported combinations of Python and pytest versions are tested in
4546
the CI builds. The plugin shall work under Linux, MacOs and Windows.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=5.0

requirements_dev.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r requirements.txt
2+
-e .
3+
pytest-mock>=1.11.0
4+
pytest-xdist>=1.29.0
5+
pytest-dependency>=0.5.1

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"pytest_order = pytest_order.plugin",
2828
]
2929
},
30-
install_requires=["pytest>=3.7"],
30+
install_requires=["pytest>=5.0"],
3131
classifiers=[
3232
"Development Status :: 4 - Beta",
3333
"Intended Audience :: Developers",

tox.ini

+4-21
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
1-
# content of: tox.ini, put in same dir as setup.py
21
[tox]
32
envlist =
4-
{py36,py37,py38,py39,py310dev,pypy3}-pytest{37,38,39,310,40,41,42,43,44,45,46}
5-
{py36,py37,py38,py39,py310dev,pypy3}-pytest{50,51,52,53,54,60,61}
6-
{py36,py37,py38,py39,py310,pypy3}-pytest62
3+
{py36,py37,py38,py39,py310dev,pypy3}-pytest{50,51,52,53,54,60,61,62}
74
[testenv]
85
deps =
9-
pytest37: pytest>=3.7,<3.8
10-
pytest38: pytest>=3.8,<3.9
11-
pytest39: pytest>=3.9,<3.10
12-
pytest310: pytest>=3.10,<3.11
13-
pytest40: pytest>=4.0,<4.1
14-
pytest41: pytest>=4.1,<4.2
15-
pytest42: pytest>=4.2,<4.3
16-
pytest43: pytest>=4.3,<4.4
17-
pytest44: pytest>=4.4,<4.5
18-
pytest45: pytest>=4.5,<4.6
19-
pytest46: pytest>=4.6,<5.0
206
pytest50: pytest>=5.0,<5.1
217
pytest51: pytest>=5.1,<5.2
228
pytest52: pytest>=5.2,<5.3
@@ -25,14 +11,11 @@ deps =
2511
pytest60: pytest>=6.0,<6.1
2612
pytest61: pytest>=6.1,<6.2
2713
pytest62: pytest>=6.2,<6.3
28-
pytest{40,41,42}: attrs<19.2
2914
pytest-cov<2.10
30-
pytest{37,38,39,310,40,41,42,43}: pytest-xdist<1.28.0
31-
pytest{44,45,46,50,51,52,53,54}: pytest-xdist<2.0.0
15+
pytest{50,51,52,53,54}: pytest-xdist<2.0.0
3216
pytest{60,61,62}: pytest-xdist
33-
pytest{37}: pytest-dependency<0.5.0
34-
pytest{38,39,310,40,41,42,43,44,45,46,50,51,52,53,54,60,61,62}: pytest-dependency
35-
pytest{37,38,39,310,40,41,42,43,44,45,46,50,51,52,53,54,60,61,62}: pytest-mock
17+
pytest-dependency>=0.5.1
18+
pytest-mock
3619

3720
passenv = *
3821

0 commit comments

Comments
 (0)