Skip to content

Commit 948e273

Browse files
hugovkMichael Howitz
andauthored
Add support for Python 3.10 (#168)
* Run Python 3.10 only against 6.2.* and main * Run other Python versions against main, too. Co-authored-by: Michael Howitz <mh@gocept.com>
1 parent 17b5951 commit 948e273

5 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
"3.7",
2727
"3.8",
2828
"3.9",
29+
"3.10-dev",
2930
"pypy3",
3031
]
3132
pytest-version: [
@@ -36,6 +37,12 @@ jobs:
3637
"6.2.*",
3738
"main",
3839
]
40+
exclude:
41+
# Only pytest 6.2+ supports Python 3.10
42+
- { python-version: "3.10-dev", pytest-version: "5.3.*" }
43+
- { python-version: "3.10-dev", pytest-version: "5.4.*" }
44+
- { python-version: "3.10-dev", pytest-version: "6.0.*" }
45+
- { python-version: "3.10-dev", pytest-version: "6.1.*" }
3946
steps:
4047
- uses: actions/checkout@v2
4148

CHANGES.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Changelog
44
10.2 (unreleased)
55
-----------------
66

7-
- Nothing changed yet.
7+
- Add support for Python 3.10 (as of Python 3.10.rc2).
8+
(Thanks to `@hugovk <https://github.com/hugovk>`_ for the PR.)
89

910

1011
10.1 (2021-07-02)
@@ -34,16 +35,16 @@ Features
3435
++++++++
3536

3637
- Add ``condition`` keyword argument to the re-run marker.
37-
(Thanks to `@BeyondEvil`_ for the PR)
38+
(Thanks to `@BeyondEvil`_ for the PR.)
3839

3940
- Add support for Python 3.9.
40-
(Thanks to `@digitronik`_ for the PR)
41+
(Thanks to `@digitronik`_ for the PR.)
4142

4243
- Add support for pytest 6.3.
43-
(Thanks to `@bluetech`_ for the PR)
44+
(Thanks to `@bluetech`_ for the PR.)
4445

4546
- Add compatibility with ``pytest-xdist >= 2.0``.
46-
(Thanks to `@bluetech`_ for the PR)
47+
(Thanks to `@bluetech`_ for the PR.)
4748

4849
Other changes
4950
+++++++++++++

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Requirements
1919

2020
You will need the following prerequisites in order to use pytest-rerunfailures:
2121

22-
- Python 3.6, up to 3.9, or PyPy3
22+
- Python 3.6, up to 3.10, or PyPy3
2323
- pytest 5.3 or newer
2424

2525
This package is currently tested against the last 5 minor pytest releases. In

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ classifiers =
3131
Programming Language :: Python :: 3.7
3232
Programming Language :: Python :: 3.8
3333
Programming Language :: Python :: 3.9
34+
Programming Language :: Python :: 3.10
3435
Programming Language :: Python :: 3 :: Only
3536
Programming Language :: Python :: Implementation :: CPython
3637
Programming Language :: Python :: Implementation :: PyPy

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ max-line-length = 88
1111
[tox]
1212
envlist =
1313
linting
14-
py{36,37,38,39,py3}-pytest{53,54,60,61,62}
14+
py{36,37,38,39,py3}-pytest{53,54,60,61,62,main}
15+
py310-pytest{62,main}
1516
minversion = 3.17.1
1617

1718
[testenv]

0 commit comments

Comments
 (0)