diff -Nru pytest-astropy-header-0.1.1/CHANGES.rst pytest-astropy-header-0.1.2/CHANGES.rst --- pytest-astropy-header-0.1.1/CHANGES.rst 2019-10-25 10:53:35.000000000 +0000 +++ pytest-astropy-header-0.1.2/CHANGES.rst 2019-12-18 14:53:08.000000000 +0000 @@ -1,3 +1,10 @@ +0.1.2 (2019-12-18) +================== + +- Handle the case where the astropy version is 'unknown'. [#11] + +- Fix declaration of test dependencies. [#9] + 0.1.1 (2019-10-25) ================== diff -Nru pytest-astropy-header-0.1.1/debian/changelog pytest-astropy-header-0.1.2/debian/changelog --- pytest-astropy-header-0.1.1/debian/changelog 2019-11-13 07:38:00.000000000 +0000 +++ pytest-astropy-header-0.1.2/debian/changelog 2019-12-20 08:49:17.000000000 +0000 @@ -1,3 +1,11 @@ +pytest-astropy-header (0.1.2-1) unstable; urgency=low + + * Fix d/watch again (pkg name this time) + * New upstream version 0.1.2 + * Drop Fix-bad-import.patch: applied upstream + + -- Ole Streicher Fri, 20 Dec 2019 09:49:17 +0100 + pytest-astropy-header (0.1.1-2) unstable; urgency=low * Add astropy to recommends: this is the recommended usage diff -Nru pytest-astropy-header-0.1.1/debian/patches/Fix-bad-import.patch pytest-astropy-header-0.1.2/debian/patches/Fix-bad-import.patch --- pytest-astropy-header-0.1.1/debian/patches/Fix-bad-import.patch 2019-11-02 19:58:32.000000000 +0000 +++ pytest-astropy-header-0.1.2/debian/patches/Fix-bad-import.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> -Date: Fri, 25 Oct 2019 09:42:16 -0400 -Subject: Fix bad import - ---- - tests/test_display.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/test_display.py b/tests/test_display.py -index 351f988..260836d 100644 ---- a/tests/test_display.py -+++ b/tests/test_display.py -@@ -176,7 +176,7 @@ def test_nonexistent(testdir, capsys, method): - - def test_modify_in_conftest(testdir, capsys): - testdir.makeconftest(""" -- from pytest_astropy.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS -+ from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS - - def pytest_configure(config): - config.option.astropy_header = True diff -Nru pytest-astropy-header-0.1.1/debian/patches/series pytest-astropy-header-0.1.2/debian/patches/series --- pytest-astropy-header-0.1.1/debian/patches/series 2019-11-02 19:58:32.000000000 +0000 +++ pytest-astropy-header-0.1.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -Fix-bad-import.patch diff -Nru pytest-astropy-header-0.1.1/debian/watch pytest-astropy-header-0.1.2/debian/watch --- pytest-astropy-header-0.1.1/debian/watch 2019-11-13 07:35:39.000000000 +0000 +++ pytest-astropy-header-0.1.2/debian/watch 2019-12-11 10:35:47.000000000 +0000 @@ -1,3 +1,3 @@ version=3 opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ -https://pypi.debian.net/pytest-astropy/pytest-astropy-(\d.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +https://pypi.debian.net/pytest-astropy-header/pytest-astropy-header-(\d.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff -Nru pytest-astropy-header-0.1.1/PKG-INFO pytest-astropy-header-0.1.2/PKG-INFO --- pytest-astropy-header-0.1.1/PKG-INFO 2019-10-25 10:54:45.000000000 +0000 +++ pytest-astropy-header-0.1.2/PKG-INFO 2019-12-18 14:54:13.525991200 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-astropy-header -Version: 0.1.1 +Version: 0.1.2 Summary: pytest plugin to add diagnostic information to the header of the test output Home-page: http://astropy.org Author: The Astropy Developers diff -Nru pytest-astropy-header-0.1.1/pytest_astropy_header/display.py pytest-astropy-header-0.1.2/pytest_astropy_header/display.py --- pytest-astropy-header-0.1.1/pytest_astropy_header/display.py 2019-10-25 10:53:23.000000000 +0000 +++ pytest-astropy-header-0.1.2/pytest_astropy_header/display.py 2019-12-18 14:51:35.000000000 +0000 @@ -34,8 +34,11 @@ TESTED_VERSIONS = OrderedDict([('Astropy', astropy_version)]) - ASTROPY_LT_30 = LooseVersion(astropy_version) < '3.0' - ASTROPY_LT_40 = LooseVersion(astropy_version) < '4.0' + if astropy_version == 'unknown': # assume developer version + ASTROPY_LT_30 = ASTROPY_LT_40 = False + else: + ASTROPY_LT_30 = LooseVersion(astropy_version) < '3.0' + ASTROPY_LT_40 = LooseVersion(astropy_version) < '4.0' # If using a version of astropy that has the display plugin, we make sure that # we use those variables for listing the packages, in case we choose to let diff -Nru pytest-astropy-header-0.1.1/pytest_astropy_header/__init__.py pytest-astropy-header-0.1.2/pytest_astropy_header/__init__.py --- pytest-astropy-header-0.1.1/pytest_astropy_header/__init__.py 2019-10-25 10:53:44.000000000 +0000 +++ pytest-astropy-header-0.1.2/pytest_astropy_header/__init__.py 2019-12-18 14:53:48.000000000 +0000 @@ -1 +1 @@ -__version__ = '0.1.1' +__version__ = '0.1.2' diff -Nru pytest-astropy-header-0.1.1/pytest_astropy_header.egg-info/PKG-INFO pytest-astropy-header-0.1.2/pytest_astropy_header.egg-info/PKG-INFO --- pytest-astropy-header-0.1.1/pytest_astropy_header.egg-info/PKG-INFO 2019-10-25 10:54:45.000000000 +0000 +++ pytest-astropy-header-0.1.2/pytest_astropy_header.egg-info/PKG-INFO 2019-12-18 14:54:13.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-astropy-header -Version: 0.1.1 +Version: 0.1.2 Summary: pytest plugin to add diagnostic information to the header of the test output Home-page: http://astropy.org Author: The Astropy Developers diff -Nru pytest-astropy-header-0.1.1/pytest_astropy_header.egg-info/requires.txt pytest-astropy-header-0.1.2/pytest_astropy_header.egg-info/requires.txt --- pytest-astropy-header-0.1.1/pytest_astropy_header.egg-info/requires.txt 2019-10-25 10:54:45.000000000 +0000 +++ pytest-astropy-header-0.1.2/pytest_astropy_header.egg-info/requires.txt 2019-12-18 14:54:13.000000000 +0000 @@ -5,3 +5,5 @@ pytest-cov codecov coverage +numpy +astropy diff -Nru pytest-astropy-header-0.1.1/setup.cfg pytest-astropy-header-0.1.2/setup.cfg --- pytest-astropy-header-0.1.1/setup.cfg 2019-10-25 10:54:45.000000000 +0000 +++ pytest-astropy-header-0.1.2/setup.cfg 2019-12-18 14:54:13.526912500 +0000 @@ -28,6 +28,8 @@ pytest-cov codecov coverage + numpy + astropy [options.entry_points] pytest11 = diff -Nru pytest-astropy-header-0.1.1/tests/test_display.py pytest-astropy-header-0.1.2/tests/test_display.py --- pytest-astropy-header-0.1.1/tests/test_display.py 2019-10-07 18:13:45.000000000 +0000 +++ pytest-astropy-header-0.1.2/tests/test_display.py 2019-12-18 14:51:35.000000000 +0000 @@ -176,7 +176,7 @@ def test_modify_in_conftest(testdir, capsys): testdir.makeconftest(""" - from pytest_astropy.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS + from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS def pytest_configure(config): config.option.astropy_header = True @@ -186,6 +186,7 @@ """) testdir.inline_run() out, err = capsys.readouterr() + assert err == '' lines = extract_package_version_lines(out) assert len(lines) == 6 assert lines[0].startswith('Numpy: ')