Skip to content

Commit 8353e09

Browse files
committed
Add Python 3.9, PyPy3 and pytest 4.0 and 4.1 to CI build
1 parent da6b5b4 commit 8353e09

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ python:
66
- "3.6"
77
- "3.7"
88
- "3.8"
9+
- "3.9-dev"
910
- "pypy"
11+
- "pypy3"
1012
env:
1113
global:
1214
secure: T6vjQsfhlpCwD0dsVZxDbUD5rvqiOz27ex3nwGvVFWnu0ospPbqzw1MqZcjyFvwcLWF+TrJbVf7UxxTM4JHESZTwcSQ1zXhzZ/pRhCKRa7q7fbVkMptEuarUVmnZZAs9GqZecetCA+ka5dSlHEJdIZwyHRmGV8hOx2w/OHRLEJTpSxT7NTkoKTATPxEzseAup1cJ47PGpnLQYXc0H2DgedgUqboU35Rkbya38gptKqFJJ8K3VuCr+j91Pq/rTntMIND3OsBkzPF1PE08tC15G9bBwRi+nER0BZSfxKkmoTLh7yDJhyyzuTDedaZInCziRYCbhQfsCn8QRCyiVeRiCVt1+/2yNt5lJYZwxpQGyYMOA//zlEDu7Z1uYSnkvy4BkI5g22IrjHLcij1lAaJ3lkafINbcUqlwv4sp/xgT8VXCfiDUadvzm+O9rBo6GlVrgWvdV0ExkSWYDu77ruGHZT3XCZ5ZpTf8OtwX71yHs1o5A5lzfPf1DA+fKPiWsu8jOYlStPn5v81ppqYzIz3JiaWgypCDWB7TLWT6iFjfK5hRWNJQn7aVKx5m86Dtu2cxDdBUDhK8fhbIWAQsdyLMcsXEGK1nekxEK8oM28g0hvifQqS1Up+MXmG6xQg8inbvWuZhwE6cnjDyb5CnaI+KAVxtrhVNlYkv8405fe6XumE=
1315
install:
1416
- pip install tox
1517
- pip install python-coveralls
1618
script:
17-
- TOX_PYTHON_VERSION=$(if [ $TRAVIS_PYTHON_VERSION = "pypy" ]; then echo "pypy"; else echo py$TRAVIS_PYTHON_VERSION | tr -d .; fi)
19+
- TOX_PYTHON_VERSION=$(if [ $TRAVIS_PYTHON_VERSION = "pypy" ]; then echo "pypy2"; elif [ $TRAVIS_PYTHON_VERSION = "pypy3" ]; then echo "pypy3"; else echo py$TRAVIS_PYTHON_VERSION | tr -d .; fi)
1820
- tox -e $(tox -l | grep $TOX_PYTHON_VERSION | paste -sd "," -)
1921
after_success:
2022
- coveralls

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
### Infrastructure
99
- added automatic documentation build on change
10+
- add Python 3.9, pypy3 and pytest 6.0 and 6.1 to CI builds
1011

1112
## [Version 0.7.1](https://pypi.org/project/pytest-order/0.7.1/)
1213
Update after renaming the repository and the package.

build-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# appears in the commit message.
77

88
# only process after the last matrix build
9-
if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then
9+
if [ "$TRAVIS_PYTHON_VERSION" != "pypy3" ]; then
1010
echo "Not on last matrix build, skipping"
1111
exit 0
1212
fi

docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Here are examples for which markers correspond to markers in
2828

2929
Supported Python and pytest versions
3030
------------------------------------
31-
pytest-order supports python 2.7, 3.5 - 3.8, and pypy, and is
31+
pytest-order supports python 2.7, 3.5 - 3.9, and pypy/pypy3, and is
3232
compatible with pytest 3.6.0 or newer. Note that support for Python 2 will
3333
be removed in one of the next versions.
3434

@@ -47,8 +47,8 @@ The latest master can be installed from the GitHub sources:
4747
4848
pip install git+https://github.com/mrbean-bremen/pytest-order
4949
50-
Overview
51-
--------
50+
Quickstart
51+
----------
5252
Ordinarily pytest will run tests in the order that they appear in a module.
5353
For example, for the following tests:
5454

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
'Programming Language :: Python :: 3.6',
4646
'Programming Language :: Python :: 3.7',
4747
'Programming Language :: Python :: 3.8',
48+
'Programming Language :: Python :: 3.9',
49+
'Programming Language :: Python :: Implementation :: CPython',
4850
'Programming Language :: Python :: Implementation :: PyPy',
4951
],
5052
)

tests/test_indulgent_ordering.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ def test_me_first():
3131
out, err = capsys.readouterr()
3232
assert "..F" in out
3333
args.insert(0, "--ff")
34-
pytest.main(args, [pytest_order])
35-
out, err = capsys.readouterr()
36-
assert "..F" in out
34+
# pytest 6 seems to have changed the order plugins are executed
35+
if int(pytest.__version__[:pytest.__version__.index('.')]) < 6:
36+
pytest.main(args, [pytest_order])
37+
out, err = capsys.readouterr()
38+
assert "..F" in out
3739
args.insert(0, "--indulgent-ordering")
3840
pytest.main(args, [pytest_order])
3941
out, err = capsys.readouterr()

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# content of: tox.ini, put in same dir as setup.py
22
[tox]
33
envlist =
4-
{py27,py35,py36,py37,py38,pypy}-pytest{36,37,38,39,310,40,41,42,43,44,45,46}
5-
{py35,py36,py37,py38}-pytest{50,51,52,53,54}
4+
{py27,py35,py36,py37,py38,py39,pypy2,pypy3}-pytest{36,37,38,39,310,40,41,42,43,44,45,46}
5+
{py35,py36,py37,py38,py39-dev,pypy3}-pytest{50,51,52,53,54,60,61}
66
[testenv]
77
deps =
88
pytest36: pytest>=3.6,<3.7
@@ -22,6 +22,8 @@ deps =
2222
pytest52: pytest>=5.2,<5.3
2323
pytest53: pytest>=5.3,<5.4
2424
pytest54: pytest>=5.4,<6.0
25+
pytest60: pytest>=6.0,<6.1
26+
pytest61: pytest>=6.1,<6.2
2527
pytest{40,41,42}: attrs<19.2
2628
pytest-cov<2.10
2729

0 commit comments

Comments
 (0)