#1012719 astropy breaks astroplan autopkgtest: No module named 'astropy.tests.plugins'

#1012719#5
Date:
2022-06-12 19:27:46 UTC
From:
To:
Dear maintainer(s),

With a recent upload of astropy the autopkgtest of astroplan fails in
testing when that autopkgtest is run with the binary packages of astropy
from unstable. It passes when run with only packages from testing. In
tabular form:

                        pass            fail
astropy                from testing    5.1-1
astroplan              from testing    0.7-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of astropy to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=astropy

https://ci.debian.net/data/autopkgtest/testing/amd64/a/astroplan/22587870/log.gz

ImportError while loading conftest
'/usr/lib/python3/dist-packages/astroplan/conftest.py'.
/usr/lib/python3/dist-packages/astroplan/conftest.py:12: in <module>
     from astropy.tests.plugins.display import (TESTED_VERSIONS,
E   ModuleNotFoundError: No module named 'astropy.tests.plugins'
autopkgtest [21:11:57]: test command1

#1012719#14
Date:
2022-06-13 08:12:28 UTC
From:
To:
The backward-compatible plugin ``astropy.tests.plugins.display`` has
been removed in Astropy 5.1; use ``pytest-astropy-header`` instead.

This has been fixed in the new release astropy 0.8, which I would ask
you to upload. A quick fix for 0.7 is attached here, however.

Cheers

Ole

#1012719#25
Date:
2022-06-18 13:18:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
astroplan, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012719@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vincent Prat <vivi@debian.org> (supplier of updated astroplan package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 18 Jun 2022 12:53:38 +0200
Source: astroplan
Architecture: source
Version: 0.7-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Astro Team <debian-astro-maintainers@lists.alioth.debian.org>
Changed-By: Vincent Prat <vivi@debian.org>
Closes: 1012719
Changes:
 astroplan (0.7-3) unstable; urgency=medium
 .
   * New patch for compatibility with astropy 5.1 (Closes: #1012719)
   * Update d/copyright
Checksums-Sha1:
 bdce4f3b38b42ff03bfb74e562ff1dd6ba656b7b 2239 astroplan_0.7-3.dsc
 6da174dca978f73894c4942cacb900295b5b3d9e 7504 astroplan_0.7-3.debian.tar.xz
 83c772f5ba17fdc47cc81e8464c20b275e5bb38f 14088 astroplan_0.7-3_amd64.buildinfo
Checksums-Sha256:
 48d3d099ac454daa186e5d7b7bcb84867f0ea3dc713ecb75c0b9ef5ab55574f8 2239 astroplan_0.7-3.dsc
 67eaee2bf08773dcfc8a71075771f18de384ad999a99ee1573f6c22a84a23b48 7504 astroplan_0.7-3.debian.tar.xz
 51a49a0994cc1892cfb8dec1f17e3554bfb0c41207d777f6e1015f0ff9fba0bc 14088 astroplan_0.7-3_amd64.buildinfo
Files:
 f71be08dfac80641fedeb3845ed85fe2 2239 python optional astroplan_0.7-3.dsc
 a4e5d00b9c7c2fa5199d52f18987d0a2 7504 python optional astroplan_0.7-3.debian.tar.xz
 3a66def49d86960eb5e5d54c576413db 14088 python optional astroplan_0.7-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEwN+g0Kj2VQgeB/icBzHNjq6Fm38FAmKty4gQHHZpdmlAZGVi
aWFuLm9yZwAKCRAHMc2OroWbfzISD/0QHMHzu+DC1dS12mhQj5z/d14vJS3eMKm0
HXuU6ZhzVf13369vlxjjGxIv2lwFqa5TCHafGvsKrqlTaEziaNqQdk11NVIcCA/G
+7dQbAf8LTeJrhwc/vPRCi30nnPMEgQ+wnvIX+RWBf7Sg9gFvS1c+dhGea9rFX1T
7IUtiG26blFtgqyZOA5HDapnzcgQSXjJgDkG45QZoQn6CUTza72V719lXkogN/p8
HvWAYi648pRljXnzoAfRFlg1DTsztaBVSbhBkUjrOyIpdGq19TA7Dgf5IXw37kaS
dTnzAh4M0yB+Ib8g9FyEpCh5R6UPaQcFajyXbPSwmvyCBT+42mbxjvA9VDoqnvg6
TrKcK7oDM0svIHuSqJB5bvby83KYRK6TatMOrcp9DDTH/J9onedst5yGuc1kEAgJ
2DEdrJPejBtbnuyEx0taIkMse2bfrpPY7Cbo2uavqgdC7Ai99Yxd28sEYsOhdE7N
jRGyHBW04XtigROUW+2prAJIA7CRTdHN+1XcsgJGRc7ZOytmxvUuRBT+NVgZxvUa
Db5Ke0yIXlK5azLa3g/C+VaYncfBmSSLZkZNS/IQuvPkrAb+xhI7HIu81Li8J5M7
TsvVcKVhDOkV64/mQSX6b6JzFlrwPJbURZDbY7gARtp2/GkIQ035xg42kz6IaMqn
mzs2cka0TA==
=tY5n
-----END PGP SIGNATURE-----