Skip to content

Commit 7836c28

Browse files
author
Peter Doggart
committed
Fix CI: pin rpds-py for PyPy in test extras
GitHub Actions installs .[test], not tox-only pins. Newer rpds-py builds with maturin/PyO3 and rejects PyPy 3.10. Add PEP 508 markers in requirements/test.pip so PyPy resolves wheel versions; drop redundant tox deps overrides. Made-with: Cursor
1 parent 0caa3b3 commit 7836c28

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Enhancements
3737
* Drop support for Python 3.9 (EOL); require Python 3.10 or newer. [python-restx]
3838
* Declare and test support for Python 3.13 and 3.14 (CPython). [python-restx]
3939
* Expand GitHub Actions and tox coverage: PyPy 3.10 and 3.11 with both Flask 2.x and Flask 3.x; exclude Flask 2 on 3.13/3.14 where unsupported. [python-restx]
40-
* Refresh test and release tooling (pytest, pytest-benchmark, pytest-profiling, twine) for newer interpreters; PyPy test envs use tox-only dependency pins where needed. [python-restx]
40+
* Refresh test and release tooling (pytest, pytest-benchmark, pytest-profiling, twine) for newer interpreters; constrain transitive ``rpds-py`` on PyPy via test extras so CI and tox resolve installable wheels. [python-restx]
4141

4242
.. _bug_fixes-1.3.3
4343
Bug Fixes

requirements/test.pip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ pytest-profiling==1.8.1
1010
invoke==2.2.0
1111
twine==6.2.0;platform_python_implementation!="PyPy"
1212
setuptools
13+
# PyPy + jsonschema/referencing: keep rpds-py on versions that publish wheels. Newer
14+
# rpds-py sdists need maturin/PyO3 (PyPy 3.11+ only), which breaks CI on PyPy 3.10.
15+
rpds-py<0.28;platform_python_implementation=="PyPy" and python_version<"3.11"
16+
rpds-py<0.30;platform_python_implementation=="PyPy" and python_version>="3.11"

tox.ini

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@ deps =
2222
-r{toxinidir}/requirements/develop.pip
2323

2424
[testenv:pypy3.10-flask{2,3}]
25-
deps =
26-
{[testenv]deps}
27-
rpds-py<0.28
2825
commands = {posargs:inv test}
2926

3027
[testenv:pypy3.11-flask{2,3}]
31-
deps =
32-
{[testenv]deps}
33-
rpds-py<0.30
3428
commands = {posargs:inv test}
3529

3630
[testenv:doc]

0 commit comments

Comments
 (0)