astropy: FTBFS due to missing slow and hugemem definitions

Maximiliano Curia <[email protected]>
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
Package: src:astropy
Version: 8.0.1-2
User: [email protected]
Usertags: python3.15
Tags: patch
Severity: serious

Hi!

While rebuilding the python related packages against the python version
3.15rc1 we found that astropy could not be built from source.

I think this is due to a change in the way the strictness of the tests.
But I haven't followed that to be sure. In any case, as packaged
astropy's tests either require the python module pytest-skip-slow which
is not packaged in Debian, or explicitly define the slow and hugemem
markers.

The attached debdiff implements the later approach. Please consider
applying these changes, or consider packaging the missing test
dependency.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1044991/
-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
astropy_8.0.1-2.1.debdiff (text/plain, 2.6 KB)
diff -Nru astropy-8.0.1/debian/changelog astropy-8.0.1/debian/changelog
--- astropy-8.0.1/debian/changelog	2026-08-04 08:55:48.000000000 +0200
+++ astropy-8.0.1/debian/changelog	2026-08-19 23:51:28.000000000 +0200
@@ -1,3 +1,10 @@
+astropy (8.0.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Avoid running slow and hugemem tests
+
+ -- Maximiliano Curia <[email protected]>  Wed, 19 Aug 2026 23:51:28 +0200
+
 astropy (8.0.1-2) unstable; urgency=medium
 
   * Remove doc dependency from dask
diff -Nru astropy-8.0.1/debian/patches/Register-slow-and-hugemem-pytest-markers.patch astropy-8.0.1/debian/patches/Register-slow-and-hugemem-pytest-markers.patch
--- astropy-8.0.1/debian/patches/Register-slow-and-hugemem-pytest-markers.patch	1970-01-01 01:00:00.000000000 +0100
+++ astropy-8.0.1/debian/patches/Register-slow-and-hugemem-pytest-markers.patch	2026-08-19 23:51:28.000000000 +0200
@@ -0,0 +1,19 @@
+Author: Maximiliano Curia <[email protected]>
+Description: Register slow and hugemem pytest markers in pyproject.toml
+ Without pytest-skip-slow installed in Debian, pytest fails with
+ --strict-markers because 'slow' and 'hugemem' markers are not recognized.
+---
+ pyproject.toml | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -290,6 +290,8 @@ doctest_subpackage_requires = [
+ ]
+ markers = [
+     "mpl_image_compare",
++    "slow: mark test as slow",
++    "hugemem: mark test as memory intensive",
+ ]
+ 
+ [tool.cibuildwheel]
diff -Nru astropy-8.0.1/debian/patches/series astropy-8.0.1/debian/patches/series
--- astropy-8.0.1/debian/patches/series	2026-08-04 08:55:48.000000000 +0200
+++ astropy-8.0.1/debian/patches/series	2026-08-19 23:51:28.000000000 +0200
@@ -16,3 +16,4 @@
 Remove-sphinx-9-pinning-for-docs.patch
 Attempt-to-fix-test_get_coord_range_nan_regression-on-mip.patch
 Remove-doc-dependency-from-dask.patch
+Register-slow-and-hugemem-pytest-markers.patch
diff -Nru astropy-8.0.1/debian/rules astropy-8.0.1/debian/rules
--- astropy-8.0.1/debian/rules	2026-08-04 08:55:48.000000000 +0200
+++ astropy-8.0.1/debian/rules	2026-08-19 23:51:28.000000000 +0200
@@ -20,8 +20,8 @@
 # Generate PLY files
 export PYBUILD_AFTER_BUILD=cd {build_dir}; python{version} -c 'import astropy.units.format; astropy.units.format.CDS.parse("m/s"); astropy.units.format.Generic.parse("m"); astropy.units.format.OGIP.parse("m/s")'
 
-# Don't run hypothesis tests
-export PYBUILD_TEST_ARGS=--astropy-header --color=no -m "not hypothesis"
+# Don't run hypothesis, slow, or hugemem tests
+export PYBUILD_TEST_ARGS=--astropy-header --color=no -m "not hypothesis and not slow and not hugemem"
 
 export NO_COLOR=1
 export PY_COLORS=0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.