Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: [email protected], [email protected]
Control: affects -1 + src:astropy
User: [email protected]
Usertags: pu
Please pre-approve the upload of astropy/5.2.1-2+deb12u1
[ Reason ]
The new release will fix #1137044: astropy: FTBFS in bookworm.
[ Tests ]
The automated tests failed as a cause of #1137044; with the change the
tests pass.
[ Risks ]
The change only weakens the existing automated tests; there are no known
risks for other packages. The resulting package is the same as before.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
This is a backport of fixes introduces in trixie and later.
The change makes a few more Python tests skip and ignores a warning that
the erfa package emits when the package considers itself as too old.
[ Other info ]
Astropy takes many efforts to ensure that the time and earth data are
not too old when tested. Because the package remains unchanged in Debian
stable, this is regulary the case. There has already been few leap
second tests disabled in Bookworm, but other such problems were
identified only later.
diff -Nru astropy-5.2.1/debian/changelog astropy-5.2.1/debian/changelog
--- astropy-5.2.1/debian/changelog 2023-02-02 09:06:27.000000000 +0100
+++ astropy-5.2.1/debian/changelog 2026-05-21 16:29:29.000000000 +0200
@@ -1,3 +1,9 @@
+astropy (5.2.1-2+deb12u1) bookworm-proposed-updates; urgency=medium
+
+ * Ignore IERS warnings in tests (Closes: #1137044)
+
+ -- Ole Streicher <[email protected]> Thu, 21 May 2026 16:29:29 +0200
+
astropy (5.2.1-2) unstable; urgency=medium
* Mark LevMarLSQFitter test xfail (Closes: #1030012)
diff -Nru astropy-5.2.1/debian/patches/Don-t-rely-on-sphinx_changelog.patch
astropy-5.2.1/debian/patches/Don-t-rely-on-sphinx_changelog.patch
--- astropy-5.2.1/debian/patches/Don-t-rely-on-sphinx_changelog.patch
2023-02-02 09:06:27.000000000 +0100
+++ astropy-5.2.1/debian/patches/Don-t-rely-on-sphinx_changelog.patch
2026-05-21 16:25:19.000000000 +0200
@@ -22,7 +22,7 @@
setup_cfg = configparser.ConfigParser()
setup_cfg.read(os.path.join(os.path.pardir, "setup.cfg"))
diff --git a/setup.cfg b/setup.cfg
-index 71cccf3..174e508 100644
+index abece3d..ecf1ff9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -100,7 +100,6 @@ docs =
diff -Nru
astropy-5.2.1/debian/patches/Ignore-invalid-value-warnings-that-happen-on-mips64el.patch
astropy-5.2.1/debian/patches/Ignore-invalid-value-warnings-that-happen-on-mips64el.patch
---
astropy-5.2.1/debian/patches/Ignore-invalid-value-warnings-that-happen-on-mips64el.patch
2023-02-02 09:06:27.000000000 +0100
+++
astropy-5.2.1/debian/patches/Ignore-invalid-value-warnings-that-happen-on-mips64el.patch
2026-05-21 16:25:19.000000000 +0200
@@ -7,13 +7,13 @@
1 file changed, 1 insertion(+)
diff --git a/setup.cfg b/setup.cfg
-index 174e508..72a5802 100644
+index ecf1ff9..e079edf 100644
--- a/setup.cfg
+++ b/setup.cfg
-@@ -131,6 +131,7 @@ filterwarnings =
- error
+@@ -132,6 +132,7 @@ filterwarnings =
ignore::DeprecationWarning
ignore::astropy.utils.iers.iers.IERSStaleWarning
+ ignore::erfa.core.ErfaWarning
+ ignore:invalid value encountered*:RuntimeWarning
ignore:unclosed <socket:ResourceWarning
ignore:unclosed <ssl.SSLSocket:ResourceWarning
diff -Nru
astropy-5.2.1/debian/patches/Ignore-warnings-about-distutils-setuptools-import-order.patch
astropy-5.2.1/debian/patches/Ignore-warnings-about-distutils-setuptools-import-order.patch
---
astropy-5.2.1/debian/patches/Ignore-warnings-about-distutils-setuptools-import-order.patch
2023-02-02 09:06:27.000000000 +0100
+++
astropy-5.2.1/debian/patches/Ignore-warnings-about-distutils-setuptools-import-order.patch
2026-05-21 16:25:19.000000000 +0200
@@ -7,12 +7,12 @@
1 file changed, 2 insertions(+)
diff --git a/setup.cfg b/setup.cfg
-index c779e12..d955bdc 100644
+index 58b370f..5abfae6 100644
--- a/setup.cfg
+++ b/setup.cfg
-@@ -132,6 +132,8 @@ filterwarnings =
- ignore::DeprecationWarning
+@@ -133,6 +133,8 @@ filterwarnings =
ignore::astropy.utils.iers.iers.IERSStaleWarning
+ ignore::erfa.core.ErfaWarning
ignore:invalid value encountered*:RuntimeWarning
+ ignore:Distutils was imported before Setuptools:UserWarning
+ ignore: Setuptools is replacing distutils:UserWarning
diff -Nru
astropy-5.2.1/debian/patches/Temporarily-disable-restriction-for-matplotlib-version.patch
astropy-5.2.1/debian/patches/Temporarily-disable-restriction-for-matplotlib-version.patch
---
astropy-5.2.1/debian/patches/Temporarily-disable-restriction-for-matplotlib-version.patch
2023-02-02 09:06:27.000000000 +0100
+++
astropy-5.2.1/debian/patches/Temporarily-disable-restriction-for-matplotlib-version.patch
2026-05-21 16:25:19.000000000 +0200
@@ -8,7 +8,7 @@
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/setup.cfg b/setup.cfg
-index 72a5802..c779e12 100644
+index e079edf..58b370f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -70,10 +70,10 @@ test_all = # Required for testing, plus packages used by
particular tests.
diff -Nru
astropy-5.2.1/debian/patches/Weaken-leap-second-validity-requirement-for-tests.patch
astropy-5.2.1/debian/patches/Weaken-leap-second-validity-requirement-for-tests.patch
---
astropy-5.2.1/debian/patches/Weaken-leap-second-validity-requirement-for-tests.patch
2023-02-02 09:06:27.000000000 +0100
+++
astropy-5.2.1/debian/patches/Weaken-leap-second-validity-requirement-for-tests.patch
2026-05-21 16:25:19.000000000 +0200
@@ -3,10 +3,38 @@
Subject: Weaken leap second validity requirement for tests
---
+ astropy/time/tests/test_ut1.py | 2 +-
+ astropy/utils/iers/tests/test_iers.py | 2 ++
astropy/utils/iers/tests/test_leap_second.py | 4 +---
- setup.cfg | 1 +
- 2 files changed, 2 insertions(+), 3 deletions(-)
+ setup.cfg | 2 ++
+ 4 files changed, 6 insertions(+), 4 deletions(-)
+diff --git a/astropy/time/tests/test_ut1.py b/astropy/time/tests/test_ut1.py
+index 0a488bc..df18fee 100644
+--- a/astropy/time/tests/test_ut1.py
++++ b/astropy/time/tests/test_ut1.py
+@@ -140,7 +140,7 @@ class TestTimeUT1:
+
+
+ class TestTimeUT1SpecificIERSTable:
+- @pytest.mark.skipif(not HAS_IERS_A, reason="requires IERS_A")
++ @pytest.mark.skip(reason="requires actual IERS_A")
+ def test_ut1_iers_A(self):
+ do_ut1_prediction_tst(iers.IERS_A)
+
+diff --git a/astropy/utils/iers/tests/test_iers.py
b/astropy/utils/iers/tests/test_iers.py
+index 14d14af..d1a8c3c 100644
+--- a/astropy/utils/iers/tests/test_iers.py
++++ b/astropy/utils/iers/tests/test_iers.py
+@@ -187,6 +187,8 @@ class TestIERS_AExcerpt:
+
+ @pytest.mark.skipif(not HAS_IERS_A, reason="requires IERS_A")
+ class TestIERS_A:
++
++ @pytest.mark.skip(reason="requires actual IERS_A")
+ def test_simple(self):
+ """Test that open() by default reads a 'finals2000A.all' file."""
+ # Ensure we remove any cached table (gh-5131).
diff --git a/astropy/utils/iers/tests/test_leap_second.py
b/astropy/utils/iers/tests/test_leap_second.py
index 16c52a6..a2107e5 100644
--- a/astropy/utils/iers/tests/test_leap_second.py
@@ -23,14 +51,15 @@
def teardown_method(self):
diff --git a/setup.cfg b/setup.cfg
-index cb731a1..71cccf3 100644
+index cb731a1..abece3d 100644
--- a/setup.cfg
+++ b/setup.cfg
-@@ -131,6 +131,7 @@ qt_no_exception_capture = 1
+@@ -131,6 +131,8 @@ qt_no_exception_capture = 1
filterwarnings =
error
ignore::DeprecationWarning
+ ignore::astropy.utils.iers.iers.IERSStaleWarning
++ ignore::erfa.core.ErfaWarning
ignore:unclosed <socket:ResourceWarning
ignore:unclosed <ssl.SSLSocket:ResourceWarning
ignore:unclosed transport <asyncio.sslproto