-
Notifications
You must be signed in to change notification settings - Fork 868
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
Fix typing_extension
ImportError
in downstream packages
#3752
Conversation
in pymatgen/analysis/elasticity/stress.py, pymatgen/ext/optimade.py, and pymatgen/io/abinit/netcdf.py
WalkthroughThe recent updates to the Changes
Assessment against linked issues
Poem
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
32c320e
to
16af9e4
Compare
Hi @janosh @DanielYang59 ! The issue is that |
sorry for the trouble! we'll get a fix in asap ofc but really we need to setup CI that only installs non-optional deps so we catch these mistakes in the future. |
Also minor issue that doesn't really matter but might be useful to know about, |
that should be easy to prevent in future since we use |
Sorry for the trouble, again. And I really want some automated import guard against
Looks like I forgot about the Lines 30 to 32 in 2982968
And updated the Line 4 in 2982968
Perhaps we should reuse |
better yet, get rid of |
I would also be pro removing. Would it actually make sense to have a pymatgen[strict] similar to atomate2[strict] to have exact version numbers of all packages as well? |
…lowest-direct` (#3852) * fix typing_extensions ImportError #3752 (comment) * bump min ase to 3.23.0 * test both lowest-direct and highest uv package resolutions in CI * establish some loose lower bounds on all deps needed for deps install with --resolution=lowest-direct to work * netcdf4>=1.6 * pin chgnet==0.3.6 * try chgnet==0.3.5 * bump pre-commit hooks * imperative doc strings * doc str white space * test_string->test_str * ruff auto fixes * matgl>=1.1.1 numba>=0.55 * try fix netcdf4 install * h5py>=3.9.0 * monty>=2024.5.24 fixes TypeError: deprecated() got an unexpected keyword argument 'deadline' * revert TestWavecar to again inherit from PymatgenTest * h5py>=3.11.0 * phonopy>=2.23 * scipy>=1.13.0 * matplotlib>=3.8 * requests>=2.32 * don't run oldest/newest supported python twice on linux AND windows * fix bad refactor in get_atom_map fixes KeyError: 'Co' ipot = self.pot_dict[el.symbol]
closes #3751
Summary by CodeRabbit
Refactor
Tests
Chores