Python 3.13 and 3.14 support#991
Conversation
- setuptools is no longer included by default since Python 3.12 so add it - cgi was removed in Python 3.13 so replace it with legacy-cgi - use a compatible version of gevent
- update werkzeug, gevent, greenlet to latest version for 3.14 support but conditionally pin when necessary to not break older Python - Flask 2.2.0 replaced JSONIFY_PRETTYPRINT_REGULAR with app.json.compact so support both
ldko
left a comment
There was a problem hiding this comment.
The changes, including suggestions related to dropping 3.7 and 3.8 mentions, worked for me running pywb in 3.9-3.14.
There was a problem hiding this comment.
We should take out these lines mentioning 3.7 and 3.8 unless there is a consensus to further fix things for 3.7 and 3.8 compatibility.
| werkzeug==3.1.7; python_version>="3.9" | ||
| webencodings | ||
| legacy-cgi; python_version>="3.13" | ||
| gevent==22.10.2; python_version<"3.8" |
There was a problem hiding this comment.
This line is no longer relevant.
Co-authored-by: Lauren Ko <lauren.ko@unt.edu>
|
Thanks for testing on 3.8. I agree with you on dropping 3.7 and 3.8 rather than fixing. They don't even seem very relevant for long support Linux:
|
|
We should test all of the python versions we claim to support. I think they're aligned now. |
|
Not sure about the Cancelled test on python 3.9 that has led to a failing check. Tests passed locally for me though. Thanks for adding 3.13 and 3.14 support @ato |
The last line logged before hitting the 15m timeout was |
Description
Motivation and Context
To allow pywb to run on Python 3.13 and 3.14.
Fixes #979
Types of changes
Checklist: