MAINT: bump min versions to match SPEC 0#16023
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
pllim
left a comment
There was a problem hiding this comment.
Whatever you do here needs to match the minversions stated in https://github.com/astropy/astropy/blob/main/pyproject.toml . That is the point of oldestdeps. Thanks!
Does it make sense to have a script to control this? I really like to have a single source of truth and we can have a pre-commit action that runs the script which updates tox.ini and other places wherever these min/max bounds are present. |
|
This probably should be folded into #15603 but I would like to test out some CI stuff here :) |
Indeed, it does. @WilliamJamieson even wrote a script somewhere, I think. But no one had the time to try it out here. Appreciate you cleaning this up. Thanks! |
| ] | ||
| dependencies = [ | ||
| "numpy>=1.23", | ||
| "numpy>=1.23", # SPEC 0 |
There was a problem hiding this comment.
What is even nicer is that if Scientific Python has a script for downstream to spit out what are the expected versions of stuff that complies to SPEC 0. 👀
|
Also, if you want to push this forward, either here or in another PR, another thing that needs to go with the bump is removing old compatibility code that we no longer needs. Usually we have checks like https://github.com/astropy/astropy/blob/main/astropy/utils/compat/optional_deps.py Example usage: |
|
Now that #15603 is merged maybe we can look/discuss this? Maybe this requires a APE (maybe not?) |
|
APE on optional dependencies would be overkill, so no need, I think. Yes, we can definitely review this now after a rebase. 😉 Thanks! |
|
Oh nvm... You did rebase, but you changed the job name to |
|
And also update https://docs.astropy.org/en/latest/development/testguide.html#image-tests-with-pytest-mpl (oh nvm, you did... I should have looked at the diff first 😅 ) |
|
Once the jobs are passing, we can email this PR to astropy-dev , so the community have a chance to support/object to this. I can override branch protection at merge time because of the name change in a required job. Thanks! |
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
|
Hash might need updating too but if @larrybradley or @astrofrog can actually confirm that the "failures" are nothing to worry about, that would be best. |
|
I don't think bumping the version requirements for the sake of bumping the requirements is very helpful. It would be helpful to remove compatibility code for obsolete versions of dependencies. Sometimes such code is difficult to find (if it is not using the |
|
For the packages in "core Scientific Python" that already follow SPEC 0, there is no harm to adopt their policy in this respect. This would ensure we don't accidentally claim we support a very old version when that is not the case. For pandas, we currently does not mention a minversion, so we're only really testing against latest stable. By setting a minversion, it is actually an improvement than not at all. |
|
I haven't looked at our code that interfaces with |
|
Re: IPython -- Yes, does seem some code clean-up is needed if we want to keep the bump: astropy/astropy/utils/console.py Lines 118 to 122 in 476358b I don't see anyone being tied to very old IPython though, so the bump itself isn't controversial to me. |
|
Hi humans 👋 - this pull request hasn't had any new commits for approximately 4 months. I plan to close this in 30 days if the pull request doesn't have any new commits by then. In lieu of a stalled pull request, please consider closing this and open an issue instead if a reminder is needed to revisit in the future. Maintainers may also choose to add keep-open label to keep this PR open but it is discouraged unless absolutely necessary. If this PR still needs to be reviewed, as an author, you can rebase it to reset the clock. If you believe I commented on this pull request incorrectly, please report this here. |
|
Sorry this went stale and now too many conflicts. I have superseded this with #16820 |
Description
This pull request is to just test out the testing infrastructure with bumps to min supported versions according to SPEC 0