Bug#1013078: New astropy breaks pyregion autopkgtest

2022-06-18 Thread Vincent Prat
Control: found -1 2.1.1-1



Bug#1013078: New astropy breaks pyregion autopkgtest

2022-06-18 Thread Vincent Prat
Control: reassign -1 python3-pyregion



Bug#1013078: New astropy breaks pyregion autopkgtest

2022-06-18 Thread Vincent Prat
reassign -1 python3-pyregion



Bug#1013078: New astropy breaks pyregion autopkgtest

2022-06-16 Thread Ole Streicher

Package: python3-pydl
Version: 2.1.1-1
Severity: serious
Control: affects -1 src:astropy

Dear maintainer,

with the upload of astropy 5.1, the autopkgtest of pyregion starts to
fail. Currently this regression is blocking the migration of astropy to
testing.

The failure is

ImportError while loading conftest 
'/usr/lib/python3/dist-packages/pyregion/conftest.py'.
/usr/lib/python3/dist-packages/pyregion/conftest.py:15: in 
from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, 
TESTED_VERSIONS
E   ModuleNotFoundError: No module named 'astropy.tests.plugins'


This can be fixed with the attached patch.


Best

OleFrom: Ole Streicher 
Date: Thu, 16 Jun 2022 15:33:56 +0200
Subject: Import PYTEST_HEADER_MODULES and TESTED_VERSIONS from
 astropy_pytest_header

The import from astropy was removed in astropy 5.1.
---
 pyregion/conftest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyregion/conftest.py b/pyregion/conftest.py
index 1b2e2b2..68357e4 100644
--- a/pyregion/conftest.py
+++ b/pyregion/conftest.py
@@ -12,7 +12,8 @@ else:
 # automatically made available when Astropy is installed. This means it's
 # not necessary to import them here, but we still need to import global
 # variables that are used for configuration.
-from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
+from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
+   TESTED_VERSIONS)
 
 from astropy.tests.helper import enable_deprecations_as_exceptions