Skip to content

Commit f06ac6a

Browse files
authored
ci: Add support for testing Python 3.12-3.14 (#331)
1 parent 7884309 commit f06ac6a

File tree

4 files changed

+21
-26
lines changed

4 files changed

+21
-26
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@ jobs:
77

88
runs-on: ${{ matrix.os }}
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
os: [ubuntu-latest]
12-
python-version: ["3.9", "3.10", "3.11"]
13+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1314

1415
steps:
15-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1617
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v5
1819
with:
1920
python-version: ${{ matrix.python-version }}
2021
- name: Install dependencies
2122
run: |
22-
pip install pip==20.0.2
23+
pip install pip==25.1.0
2324
pip install -r requirements.txt
24-
python setup.py bdist_wheel
25+
python -m build --wheel
2526
pip install dist/*.whl
2627
- name: Test with pytest
2728
run: |

requirements.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
wheel==0.38.1
2-
pytest==6.2.5
1+
wheel==0.45.1
2+
pytest==8.4.1
33
pytest-cov==3.0.0
4-
hypothesis==3.1.0 ; python_version < '3.8'
5-
hypothesis==5.5.4 ; python_version == '3.8'
6-
hypothesis==5.35.4 ; python_version == '3.9'
4+
hypothesis==5.35.4
5+
6+
# Setuptools is no longer provided by default in Python 3.12+
7+
setuptools==71.1.0 ; python_version >= '3.12'
8+
packaging==24.1 ; python_version >= '3.12'
9+
build==1.2.2.post1

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@
1616
scripts=['bin/jp.py'],
1717
packages=find_packages(exclude=['tests']),
1818
license='MIT',
19-
python_requires='>=3.7',
19+
python_requires='>=3.9',
2020
classifiers=[
2121
'Development Status :: 5 - Production/Stable',
2222
'Intended Audience :: Developers',
2323
'Natural Language :: English',
2424
'License :: OSI Approved :: MIT License',
2525
'Programming Language :: Python',
2626
'Programming Language :: Python :: 3',
27-
'Programming Language :: Python :: 3.7',
28-
'Programming Language :: Python :: 3.8',
2927
'Programming Language :: Python :: 3.9',
3028
'Programming Language :: Python :: 3.10',
3129
'Programming Language :: Python :: 3.11',
30+
'Programming Language :: Python :: 3.12',
31+
'Programming Language :: Python :: 3.13',
32+
'Programming Language :: Python :: 3.14',
3233
'Programming Language :: Python :: Implementation :: CPython',
3334
'Programming Language :: Python :: Implementation :: PyPy',
3435
],

tox.ini

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
[tox]
2-
envlist = py26,py27,py33,py34,py35,py36,py37,pypy
2+
envlist = py39,py310,py311,py312,py313,py314
33

44
[testenv]
5-
commands = nosetests
5+
commands = python -m pytest tests
66
deps =
7-
nose
8-
mock
9-
10-
[testenv:py26]
11-
commands = nosetests
12-
deps =
13-
nose
14-
mock
15-
unittest2
16-
ordereddict
17-
simplejson
7+
pytest

0 commit comments

Comments
 (0)