-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
When Astropy is installed a minimum version of astropy-iers-data
is specified as a requirement. However, given that a typical install involving pip
or conda
will by default select the most recent version of astropy-iers-data
, and that a typical installation will end up automatically downloading the IERS_A table after about 30 days, why is a minimum version constraint required on astropy-iers-data
?
Furthermore, below is a table of important recent tags and the minimum astropy-iers-data
version specified in the pyproject.toml
file. Because there is some variation in the time period between the minimum astropy-iers-data
version and the associated Astropy tag date, we were wondering if this was driven by a deliberate policy. If so, is that policy documented?
Tag | Tag Date | Minimum astropy-iers-data | Comment |
---|---|---|---|
6.0.0 | 2023-11-27 | 0.2023.10.30.0.29.53 | Minimum version is about 1 month in the past. |
6.1.0 | 2024-05-04 | 0.2024.4.29.0.28.48 | Minimum version is about 1 week in the past. |
7.0.0 | 2024-11-24 | 0.2024.10.28.0.34.7 | Minimum version is about 1 month in the past. |
7.1.0 | 2025-05-20 | 0.2025.4.28.0.37.27 | Minimum version is less than 1 month but more than 1 week in the past. |
In our use case (DESI), we would prefer to update astropy-iers-data
only when we have assured the reproducibility of certain data products, rather than automatically, even if that means accepting that some amount of extrapolation past the default 30 days will be involved. Therefore, if we need to pin astropy-iers-data==0.2023.10.30.0.29.53
, it would appear that it is impossible for us to install Astropy 7, or even 6.1.0. Certainly there could be workarounds, which is fine, but what is the recommended best practice for this situation?
To review our questions:
- What is the motivation for the minimum required version?
- How is the minimum required version for a given Astropy release actually set?
- What is the best practice if we need to pin a much earlier version of
astropy-iers-data
? - Are there gotchas that we haven't considered?
CC: @sbailey