diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5cac90b..33b3ab7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,21 +7,22 @@ jobs: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install pip==20.0.2 + pip install pip==25.1.0 pip install -r requirements.txt - python setup.py bdist_wheel + python -m build --wheel pip install dist/*.whl - name: Test with pytest run: | diff --git a/requirements.txt b/requirements.txt index bd50c2a..105cf68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,9 @@ -wheel==0.38.1 -pytest==6.2.5 +wheel==0.45.1 +pytest==8.4.1 pytest-cov==3.0.0 -hypothesis==3.1.0 ; python_version < '3.8' -hypothesis==5.5.4 ; python_version == '3.8' -hypothesis==5.35.4 ; python_version == '3.9' +hypothesis==5.35.4 + +# Setuptools is no longer provided by default in Python 3.12+ +setuptools==71.1.0 ; python_version >= '3.12' +packaging==24.1 ; python_version >= '3.12' +build==1.2.2.post1 diff --git a/setup.py b/setup.py index 2b2f1ef..d12f4d6 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ scripts=['bin/jp.py'], packages=find_packages(exclude=['tests']), license='MIT', - python_requires='>=3.7', + python_requires='>=3.9', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -24,11 +24,12 @@ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ], diff --git a/tox.ini b/tox.ini index 3184836..1a73dab 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,7 @@ [tox] -envlist = py26,py27,py33,py34,py35,py36,py37,pypy +envlist = py39,py310,py311,py312,py313,py314 [testenv] -commands = nosetests +commands = python -m pytest tests deps = - nose - mock - -[testenv:py26] -commands = nosetests -deps = - nose - mock - unittest2 - ordereddict - simplejson + pytest