Support Python 3.13 and 3.14#1675
Open
abrignoni wants to merge 1 commit into
Open
Conversation
Gate numpy and add the imghdr backport so 3.13/3.14 work while leaving 3.10-3.12 users on their current, reproducible dependency stack. - numpy: pin 1.26.4 for python_version < 3.13 (unchanged for existing users); require numpy>=2.1 for 3.13+ where 1.26.4 has no wheels and won't build against the newer C-API. Pulls pandas 3.x on 3.13+ only. - standard-imghdr (python_version >= 3.13): PGPy (protonMail.py) imports the stdlib imghdr module, removed in Python 3.13 (PEP 594). Older Pythons keep using stdlib imghdr. Validated on 3.14.6: full requirements install, all 598 plugins load via PluginLoader, ileapp.py runs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Python 3.13 / 3.14 support while leaving 3.10–3.12 users untouched (no forced numpy/pandas major bump — important for report reproducibility).
requirements.txt changes
numpy==1.26.4; python_version < "3.13"— 3.10/3.11/3.12 keep today's pinned stack (numpy 1.26.4 + pandas 2.3.x).numpy>=2.1; python_version >= "3.13"— 3.13/3.14 require numpy 2.x (1.26.4 has no cp313/cp314 wheels and won't build against the new C-API). Pulls pandas 3.x on these versions only.standard-imghdr; python_version >= "3.13"— PGPy (scripts/artifacts/protonMail.py) imports the stdlibimghdrmodule, removed in Python 3.13 (PEP 594). Backport restores it on 3.13+; older Pythons keep stdlibimghdr.Validation (Python 3.14.6, Apple Silicon)
pip install -r requirements.txtsucceedsPluginLoader(incl. protonMail)ileapp.py -hruns; astc / numpy 2.5.1 / pandas 3.0.3 import and functionFollow-ups before advertising 3.13/3.14 to users (not in this PR)
pyliblzfse: bundledwhl_files/stop at cp312 and there's no PyPI Windows wheel → Windows users on 3.13/3.14 can't install it. Needs cp313/cp314 Windows wheels added.pyliblzfsecompiles from source (needs Xcode CLT); 3.13 has a prebuilt wheel (zero compiles) — the lower-friction target.