Repository navigation
Added workflow and script to regularly update the minimum required version of astropy-iers-data - #15051
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.
|
|
@nstarman - how do I tell ruff to ignore the following error in this case? |
We should probably add a per-file-ignore for the whole workflows folder. In the |
|
We aren't (yet) using cascading per-file-ignores, so the |
| fi | ||
| - name: Create Pull Request | ||
| uses: peter-evans/create-pull-request@v5 | ||
| with: |
There was a problem hiding this comment.
I see above that you only make a commit if there is an actual change. But if there is no change, will there still be a PR created?
There was a problem hiding this comment.
If there are no commits different compared to the PR base, no PR is opened
09bf460 to
9d3c21d
Compare
9d3c21d to
632a07a
Compare
|
I've now rebased this and hopefully the CI will pass - if it does and we can merge it in today, then the cron job should run tomorrow. |
|
|
||
| last_version = metadata["info"]["version"] | ||
|
|
||
| with open("setup.cfg") as f: |
There was a problem hiding this comment.
If we ever get rid of setup.* (e.g., #14361 would get rid of setup.py and someone had mentioned that we should move everything to pyproject.toml but I cannot find the issue), this will need to be updated.
There was a problem hiding this comment.
I believe @WilliamJamieson and I were the primary advocates for the pyproject.toml everything.
Python 3.11 has a batteries-included TOML library, so we can use that!
There was a problem hiding this comment.
It would be easy to switch this over to pyproject.toml once we need to
| numpy>=1.22 | ||
| pyerfa>=2.0 | ||
| astropy-iers-data | ||
| astropy-iers-data>=0.2023.7.10.0.36.50 |
There was a problem hiding this comment.
Why not the latest release from 2 days ago?
| astropy-iers-data>=0.2023.7.10.0.36.50 | |
| astropy-iers-data>=0.2023.07.31.00.32.45 |
There was a problem hiding this comment.
If we leave this as a slightly older version it will be a good test that the cron job works tomorrow?
There was a problem hiding this comment.
OKay but you are still missing a leading zero. .7 should be .07
There was a problem hiding this comment.
There is no leading zeros in the current versions: https://pypi.org/project/astropy-iers-data/
There was a problem hiding this comment.
Also leading zeros shouldn't be needed in version numbers for 2023.12 to evaluate as more recent than 2023.7 - I'm not opposed to adding leading zeros if people want but they aren't needed
There was a problem hiding this comment.
Hmm ok so the PyPI version is inconsistent with GitHub tags.
pllim
left a comment
There was a problem hiding this comment.
Let's merge then and see if cron job works. Thanks!
Also set the initial pin. Currently I have set this to run monthly as that is probably enough, I don't think we need to actually update it weekly as soon as there is an astropy-iers-data release - but happy to adjust.
Fixes #15046
Fixes #14951
Example PR in my fork: astrofrog#125