Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b56f715

Browse files
danielhollasjpvanhal
authored andcommitted
Test new Python and pytest versions, drop Python3.7 and pytest 5
1 parent aab3a1e commit b56f715

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,26 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
15-
python-version: ["pypy-3.7", "pypy-3.8", "pypy-3.9", "3.7", "3.8", "3.9", "3.10", "3.11"]
15+
python-version: ["pypy-3.8", "pypy-3.9", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1616
pytest-tox-version: ["pytest5", "pytest6"]
1717
include:
1818
# Add new variables to existing jobs
19-
- {python-version: "pypy-3.7", python-tox-version: "pypy37"}
2019
- {python-version: "pypy-3.8", python-tox-version: "pypy38"}
2120
- {python-version: "pypy-3.9", python-tox-version: "pypy39"}
22-
- {python-version: "3.7", python-tox-version: "py37"}
2321
- {python-version: "3.8", python-tox-version: "py38"}
2422
- {python-version: "3.9", python-tox-version: "py39"}
2523
- {python-version: "3.10", python-tox-version: "py310"}
2624
- {python-version: "3.11", python-tox-version: "py311"}
25+
- {python-version: "3.12", python-tox-version: "py312"}
26+
- {python-version: "3.13", python-tox-version: "py313"}
27+
- {python-version: "3.14", python-tox-version: "py314"}
2728
exclude:
2829
# Remove jobs with incompatible combinations
29-
- {python-version: "3.10", pytest-tox-version: "pytest5"}
30-
- {python-version: "3.11", pytest-tox-version: "pytest5"}
30+
- {python-version: "3.13", pytest-tox-version: "pytest6"}
31+
- {python-version: "3.14", pytest-tox-version: "pytest6"}
3132

3233
steps:
33-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v6
3435

3536
- name: Set up Python ${{ matrix.python-version }}
3637
uses: actions/[email protected]

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
zip_safe=False,
1515
include_package_data=True,
1616
platforms='any',
17-
install_requires=['pytest>=5'],
18-
python_requires='>=3.7',
17+
install_requires=['pytest>=6'],
18+
python_requires='>=3.8',
1919
classifiers=[
2020
'Development Status :: 4 - Beta',
2121
'Intended Audience :: Developers',
@@ -28,11 +28,13 @@
2828
'Topic :: Utilities',
2929
'Programming Language :: Python :: 3',
3030
'Programming Language :: Python :: 3 :: Only',
31-
'Programming Language :: Python :: 3.7',
3231
'Programming Language :: Python :: 3.8',
3332
'Programming Language :: Python :: 3.9',
3433
'Programming Language :: Python :: 3.10',
3534
'Programming Language :: Python :: 3.11',
35+
'Programming Language :: Python :: 3.12',
36+
'Programming Language :: Python :: 3.13',
37+
'Programming Language :: Python :: 3.14',
3638
'Programming Language :: Python :: Implementation :: PyPy',
3739
]
3840
)

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311,py37,py38,py39}-pytest{5,6}
3+
py{38,39,310,311,py37,py38,py39}-pytest{6,7,8,9}
44

55
[testenv]
66
deps =
77
pexpect
8-
pytest5: pytest>5.0,<6.0
9-
pytest5: pytest-xdist
108
pytest6: pytest>6.0,<7.0
119
pytest6: pytest-xdist
10+
pytest7: pytest>7.0,<8.0
11+
pytest7: pytest-xdist
12+
pytest8: pytest>8.0,<9.0
13+
pytest8: pytest-xdist
14+
pytest9: pytest>9.0,<10.0
15+
pytest9: pytest-xdist
1216
commands = pytest {posargs}

0 commit comments

Comments
 (0)