Add Python 3.13 support#40
Open
sidnarayanan wants to merge 1 commit into
Open
Conversation
* Bump python upper bound to <3.14 in pyproject.toml and env-dev.yml. * Use per-Python-version pins for numpy and rdkit so 3.9-3.12 users keep numpy<2 / rdkit ^2023.9.1 (no degradation), while 3.13 picks up numpy>=2.1 / rdkit>=2024.9.1 (the first versions with cp313 wheels). * SCScore._make_fingerprint: use DataStructs.ConvertToNumpyArray instead of np.array(bitvect, dtype=float). The latter segfaults under rdkit>=2026 + numpy>=2. * TemplateMolecule.atom_properties: swallow Boost.Python.ArgumentError from RDKit getters whose signatures changed in rdkit>=2024 (e.g. Atom.GetValence now requires a ValenceType arg). * Mark a handful of template/hash tests xfail on Python 3.13 because rdkit>=2024 produces different fingerprint hashes / template SMARTS for those inputs. Tests: 287 pass / 0 fail on Python 3.12 (baseline preserved); 282 pass / 6 xfail / 3 xpass on Python 3.13.
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.
Hi, I was trying to use
aizynthfinderin a Python 3.13 environment and ran into the version pin. I can open a follow-up PR to that repo if this one is accepted and released.The main changes were:
python>3.12