Skip to content

Commit b611a8f

Browse files
committed
Update testing/dependencies to support Python 3.12+
1 parent c36a4e9 commit b611a8f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependencies
2121
run: |
22-
pip install pip==20.0.2
22+
pip install pip==25.1.0
2323
pip install -r requirements.txt
24-
python setup.py bdist_wheel
24+
python -m build --wheel
2525
pip install dist/*.whl
2626
- name: Test with pytest
2727
run: |
28-
cd tests/ && py.test --cov jmespath --cov-report term-missing
28+
cd tests/ && python -m pytest --cov jmespath --cov-report term-missing

requirements.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
wheel==0.38.1
1+
wheel==0.45.1
22
pytest==6.2.5
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

0 commit comments

Comments
 (0)