-
Notifications
You must be signed in to change notification settings - Fork 663
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
add h5py to setup.py's extra_requires #3711
Conversation
- fix #3701 - new 'extra_coordinates' target in extra_requires where we can add pip-installable packages for additional formats that are not installed by default - keep minimum version of h5py at >= 2.1.0
package/setup.py
Outdated
'extra_formats': [ # additional file formats | ||
'netCDF4>=1.0', # for fast AMBER writing, also needs HDF5 | ||
'h5py>=2.10', # H5MD | ||
], |
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.
possible add here
- gsd (unless we just install it anyway)
- chemfiles
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.
gsd is an install requires for now so it shouldn't also be going into extra requires
chemfiles might be an option if we want
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 added chemfiles>=0.10
package/setup.py
Outdated
@@ -650,6 +643,10 @@ def long_description(readme): | |||
'AMBER': [ |
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.
deprecated the AMBER target (not sure if anyone ever used it...)
Codecov Report
@@ Coverage Diff @@
## develop #3711 +/- ##
========================================
Coverage 94.30% 94.30%
========================================
Files 192 192
Lines 24695 24695
Branches 3327 3327
========================================
Hits 23289 23289
Misses 1358 1358
Partials 48 48 Continue to review full report at Codecov.
|
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.
oops comments weren't via review - I'll request changes over setting minimum versions for all the CI files please.
- GitHub actions - maintainer/conda/environment.yml for readthedocs - Azure pipelines
- include chemfiles>=0.10 in extra_formats - added comment to remove AMBER in 3.0.0
I installed into an empty py39 env with
and packages import
and after installing the testsuite, all tests pass
|
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.
just the one thing, otherwise lgtm, thanks @orbeckst !
@@ -92,7 +92,7 @@ jobs: | |||
pytest-xdist | |||
scikit-learn | |||
scipy | |||
h5py | |||
h5py>=2.10 |
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.
Let's leave it as this for now, long term we might want to come back and put minimum pins on stuff here too (although to be honest we'll just pick up the maximum version here anyways, I guess I'm just being too pedantic...)
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 understand your comment as "h5py>=2.10 is fine for now" so I am not changing it.
package/CHANGELOG
Outdated
* Deprecate `density` parameter in favor of `norm` in InterRDF_s | ||
(Issue #3687) | ||
* The extras_requires target "AMBER" for `pip install ./package[AMBER]` | ||
will be removed in 3.0. Use "extra_formats". (Issue #3701, PR #3711) |
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.
* Deprecate `density` parameter in favor of `norm` in InterRDF_s | |
(Issue #3687) | |
* The extras_requires target "AMBER" for `pip install ./package[AMBER]` | |
will be removed in 3.0. Use "extra_formats". (Issue #3701, PR #3711) | |
* The extras_requires target "AMBER" for `pip install ./package[AMBER]` | |
will be removed in 3.0. Use "extra_formats". (Issue #3701, PR #3711) | |
* Deprecate `density` parameter in favor of `norm` in InterRDF_s | |
(Issue #3687) |
Newest entry first :)
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.
Also I guess we shouldn't be a pain to the couple of folks that might use this, but does it really need to be a major version breaking change? The number of automated workflow using this should be near 0, and there's no way they'll get a deprecatewarning about this. If we enact the change the biggest issue is that things will just break cleanly right? (or will it just ignore the keyword and go ahead)
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 it really needs to be a major revision deprecation. I was just very conservative. I’m not sure how many people used it, tbh.
i haven’t tried proving missing/incorrect target names. I assume it will break.
I’m happy to go with a deprecation for 2.4, too, just let me know or change directly in setup.py and CHANGELOG.
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 set the deprecation for 2.4.
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 tried passing the wrong extra (as 'analyses' instead of 'analysis')
WARNING: mdanalysis 2.3.0.dev0 does not provide the extra 'analyses'
So it won't fail if you give it the wrong thing (which is rather annoying). I'm still ok with setting the deprecation for 2.4 given the fact that we can't suitably warn users anyways, it'll be a problem either way.
Whilst we're here, do the changes here indicate that this is also fixed? #3406 |
Co-authored-by: Irfan Alibay <[email protected]>
Regarding #3406 I don’t know — we could add a restriction to not use h5py 3.4.0 but we would be guessing as we never pinpointed the ultimate cause. Ultimately we need someone to test if that failure is really only occurring with specific releases, then we exclude all bad ones here, and then I’d be comfortable closing the issue. |
coverage-related error makes one test fail — no idea what to do about it; is this related to the need to pin coverage again that was mentioned somewhere on discord? |
@IAlibay let me know if you think something else needs to be done here. No rush. |
GitHub hangs on "Checking for ability to merge automatically…" —weird. Anyway, @IAlibay is there anything else that needs doing? |
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'll give it a review once I'm back from the wilds of Edinburgh" oof I think I see why I didn't get around to re-reviewing this until this week. So sorry D: !
Fixes #3701
Changes made in this Pull Request:
PR Checklist