-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
MAINT: Bumping minimum required astropy version #2602
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2602 +/- ##
==========================================
+ Coverage 64.21% 64.34% +0.13%
==========================================
Files 130 130
Lines 16885 16838 -47
==========================================
- Hits 10842 10835 -7
+ Misses 6043 6003 -40
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Unfortunately with both astropy 4.1 and 4.2 I run into errors like the ones below, so I went ahead and bumped the versions a little bit further to astropy 4.2.1 and numpy 1.18 (the latter is only for good measures):
|
cc @keflavich @andamian @jespinosaar @imbasimba @tomdonaldson @mkelley @pllim - do you have any users you know who is stuck on astropy 4.0 series, or this can be a go-ahead? |
2544f63
to
c626d8b
Compare
Good by me. |
@bsipocz , we will ask around to check if our users are stuck in that specific version for some reason. Just to know how much time we have to collect this feedback, what is your deadline to merge this? Thanks in advance! |
@bsipocz I don't foresee any issues with this PR for the ESASky module. |
@bsipocz - I'm not aware of any such users. |
@jespinosaar - There is no imminent rush, this is more into the generic maintenance remit than to address anything broken. |
The minimum Furthermore, the title of this pull request should be updated. |
It's not how it works, a minimum dependency requirement of a dependency mustn't set our minimum dependencies. E.g. we aim to follow NEP29/SPEC0 not what astropy supports for the minimum version we do. With that approach we should still support old python versions as some of the oldest deps we declare still supports them (just think about it, if we support 2 years old package X that has a mutual dependency of Y, if they follow NEP29, that would mean a support for 4 year old Y for us, which is not how this all was designed). |
AFAIK, no, unless @tomdonaldson knows otherwise. |
I don't mind bumping the minimum required |
Again, the minimum dependencies are independent. It's irrelevant what astropy does, np 1.18 was released |
According to the NEP 29 drop schedule we could even require |
The calendar in that document is a bit off, I'm looking at the actual release dates on PyPI. Anyway, I'm not looking into being super strict about the 24 months for most dependencies, and therefore not willing to go newer than 1.18 without an actual technical reason at this time. |
I was wondering if there was some technical reason for preferring some particular version of |
There are reasons to drop astropy 4.0, namely to finally get rid of the workarounds due to the changes in io.votable, as well as the unit supports for table initialization (e.g. to be used in #2358). My reading for NEP29 here is to be more on the on demand case, rather than being proactive (astroquery is used in a lot of research code and not primarily in up-to-date CI-ed downstream libraries). So we could keep living with these workarounds, but think it's time to move on instead given all pinged above gives the thumbs up. |
Hi @bsipocz , after some tests we do not foresee any issues changing the astropy versions. Many thanks! |
Thanks all for the thumbs ups, and yay for doing this cleanup! |
Time to bump the minimum astropy (we've reached the 2 year window) so we can rely on its newer features.