-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support python3.13 #4100
Draft
DanielYang59
wants to merge
58
commits into
materialsproject:master
Choose a base branch
from
DanielYang59:support-python313
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+54
−27
Draft
Support python3.13 #4100
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
2ca9d02
explicitly test 3.13 in test workflow
DanielYang59 47b4cde
add 3.13 classifier
DanielYang59 bb4554d
drop install for openff-toolkit for now
DanielYang59 3661359
bump chgnet to support numpy 2
DanielYang59 7a8d6ff
loose torch pin
DanielYang59 f3176b4
try to remove manual install of torch
DanielYang59 02fbe6a
bump github action version
DanielYang59 249821b
revert bump of chgnet version
DanielYang59 2673ce1
bump chgnet to 0.4.0 to support np2
DanielYang59 dc47253
migrate deprecated config
DanielYang59 300f4e4
pin python < 3.13 for chgnet and matgl
DanielYang59 464defe
try to exclude some python313 incompatible packages
DanielYang59 d01bf59
should work for python 3.13 now
DanielYang59 16caa14
revert migrated changes
DanielYang59 5fb01a7
NEED CONFIRM: bump numpy to 1.26.2 to support python 3.13
DanielYang59 960a44b
bump h5py to support python 3.13
DanielYang59 a8a765a
bump scipy to support python 3.13
DanielYang59 44fda8d
merge master
DanielYang59 0f02418
remove duplicate from merging
DanielYang59 687effa
clean up comments
DanielYang59 cb0adc9
skip netcdf4 for python3.13 as 1.6.5 cannot be installed
DanielYang59 ccda40d
make wheel build quiet
DanielYang59 0f9d2a1
test openff-toolkit
DanielYang59 18175db
still cannot install openff-toolkit
DanielYang59 e3f69e5
clean up comment
DanielYang59 f2cebdf
Merge branch 'master' into support-python313
shyuep e7f9b28
Merge branch 'master' into support-python313
DanielYang59 cf318de
remove manual torch install
DanielYang59 54bbc6b
fix python version pin
DanielYang59 b3ca5f2
Merge branch 'master' into support-python313
DanielYang59 c0d36b1
Merge remote-tracking branch 'upstream/master' into support-python313
DanielYang59 e3d26b9
Merge branch 'master' into support-python313
DanielYang59 50f4622
un-skip netcdf4 and BoltzTraP2
DanielYang59 56108b6
unskip hiphive
DanielYang59 dcd65e1
unskip numba
DanielYang59 b7051d7
try to un-skip openff-toolkit
DanielYang59 4fbf58f
Revert "try to un-skip openff-toolkit"
DanielYang59 6a6be7b
Merge branch 'master' into support-python313
DanielYang59 300129b
Merge branch 'master' into support-python313
DanielYang59 05e98d2
Merge branch 'master' into support-python313
DanielYang59 5ea26e3
fix mypy error
DanielYang59 26007e9
add types for analysis.eos
DanielYang59 c9cc898
TODO: to be reverted, test 3.13 across all platforms
DanielYang59 3e55250
add requires decorator to is_valid_bibtex
DanielYang59 5fd64ab
skip prototype test if pybtex is not available
DanielYang59 b04042c
more readable error msg from the start
DanielYang59 a73d390
Merge branch 'support-python313' of https://github.com/DanielYang59/p…
DanielYang59 9f2dda1
make pybtex optional
DanielYang59 ea66fe3
Merge branch 'master' into support-python313
DanielYang59 4825b12
Revert "add types for analysis.eos"
DanielYang59 2692696
revert: make pybtex optional
DanielYang59 769b2fb
Revert "skip prototype test if pybtex is not available"
DanielYang59 ebfd917
reapply requires to is_valid_bibtex
DanielYang59 af559fa
insert debug tags
DanielYang59 4cf635a
Revert "insert debug tags"
DanielYang59 f11974f
add PR tag
DanielYang59 f8830ee
Merge branch 'master' into support-python313
DanielYang59 26a6558
Merge branch 'master' into support-python313
DanielYang59 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this would be breaking, this just re-raise the exception from
requires
to provide more context, otherwise the error message whenpybtex
is not available would be:Before adding the
requires
decorator tois_valid_bibtex
:Update: I just realized
pybtex
is not an optional dependency, need to put more thoughts into this:pymatgen/pyproject.toml
Lines 56 to 64 in 5b997f7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird,
pybtex
is installed successfully in MacOS CI but some or all parts ofpybtex
is still not available, need to look into the reason later as I don't have a MacOS machine at hand right nowUpdate:
On MacOS,
from pybtex.database.input import bibtex
gives:Which is an already fixed issue from pybtex's side but they haven't got a release with this patch yet. In fact they haven't released any issue since Jan 2021