From 52ae739e6d9a98f12d28b24bd5ec2e34e55b61b8bff896fd61c1bb65911203ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 20 Dec 2019 23:46:04 +0000 Subject: [PATCH] Accepting request 758291 from home:bnavigator:branches:devel:languages:python:pytest - update to version 0.1.2 - Handle the case where the astropy version is 'unknown'. [#11] - Fix declaration of test dependencies. [#9] - changes on version 0.1.1: - Make plugin not crash if astropy is not installed. [#1] - remove obsolete pytest-astropy-header-pr2.patch - require astropy >= 3.0 because astropy-helpers is not found [#12] OBS-URL: https://build.opensuse.org/request/show/758291 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-astropy-header?expand=0&rev=2 --- pytest-astropy-header-0.1.2.tar.gz | 3 ++ pytest-astropy-header-0.1.tar.gz | 3 -- pytest-astropy-header-pr2.patch | 44 ---------------------------- python-pytest-astropy-header.changes | 11 +++++++ python-pytest-astropy-header.spec | 6 ++-- 5 files changed, 16 insertions(+), 51 deletions(-) create mode 100644 pytest-astropy-header-0.1.2.tar.gz delete mode 100644 pytest-astropy-header-0.1.tar.gz delete mode 100644 pytest-astropy-header-pr2.patch diff --git a/pytest-astropy-header-0.1.2.tar.gz b/pytest-astropy-header-0.1.2.tar.gz new file mode 100644 index 0000000..ebac87a --- /dev/null +++ b/pytest-astropy-header-0.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afdc79650b24d175d54da459fc88f597144e65af3e7eb85fe9e61231f25307f9 +size 9260 diff --git a/pytest-astropy-header-0.1.tar.gz b/pytest-astropy-header-0.1.tar.gz deleted file mode 100644 index da7f786..0000000 --- a/pytest-astropy-header-0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a75eb13a0616ca4ab1849530a11d535e0ec433e1ac6dd9111e487f54b64d92fd -size 8553 diff --git a/pytest-astropy-header-pr2.patch b/pytest-astropy-header-pr2.patch deleted file mode 100644 index 7239c9e..0000000 --- a/pytest-astropy-header-pr2.patch +++ /dev/null @@ -1,44 +0,0 @@ -From fc763d07d7f6c81aa4eec58daddcb89ce8894a15 Mon Sep 17 00:00:00 2001 -From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> -Date: Fri, 25 Oct 2019 09:29:47 -0400 -Subject: [PATCH 1/2] TST: See why test_modify_in_conftest failed - ---- - tests/test_display.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tests/test_display.py b/tests/test_display.py -index 351f988..d9636f5 100644 ---- a/tests/test_display.py -+++ b/tests/test_display.py -@@ -186,6 +186,7 @@ def pytest_configure(config): - """) - testdir.inline_run() - out, err = capsys.readouterr() -+ assert err == '' - lines = extract_package_version_lines(out) - assert len(lines) == 6 - assert lines[0].startswith('Numpy: ') - -From 0311f70dff87370a1f0e78546dc01fa354ecadd0 Mon Sep 17 00:00:00 2001 -From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> -Date: Fri, 25 Oct 2019 09:42:16 -0400 -Subject: [PATCH 2/2] 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 d9636f5..0525a35 100644 ---- a/tests/test_display.py -+++ b/tests/test_display.py -@@ -176,7 +176,7 @@ def pytest_configure(config): - - 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 --git a/python-pytest-astropy-header.changes b/python-pytest-astropy-header.changes index 62d19d5..a8457b0 100644 --- a/python-pytest-astropy-header.changes +++ b/python-pytest-astropy-header.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Dec 19 16:06:15 UTC 2019 - Benjamin Greiner + +- update to version 0.1.2 + - Handle the case where the astropy version is 'unknown'. [#11] + - Fix declaration of test dependencies. [#9] +- changes on version 0.1.1: + - Make plugin not crash if astropy is not installed. [#1] +- remove obsolete pytest-astropy-header-pr2.patch +- require astropy >= 3.0 because astropy-helpers is not found + ------------------------------------------------------------------- Wed Dec 11 18:49:53 UTC 2019 - code@bnavigator.de diff --git a/python-pytest-astropy-header.spec b/python-pytest-astropy-header.spec index 60a6b16..8fd263a 100644 --- a/python-pytest-astropy-header.spec +++ b/python-pytest-astropy-header.spec @@ -19,14 +19,13 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-astropy-header -Version: 0.1 +Version: 0.1.2 Release: 0 Summary: Pytest plugin to add diagnostic information to the header of the test output License: BSD-3-Clause Group: Productivity/Scientific/Astronomy URL: https://github.com/astropy/pytest-astropy-header Source: https://files.pythonhosted.org/packages/source/p/pytest-astropy-header/pytest-astropy-header-%{version}.tar.gz -Patch0: pytest-astropy-header-pr2.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pytest >= 2.8} @@ -34,7 +33,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pytest >= 2.8 # SECTION test requirements -BuildRequires: %{python_module astropy >= 2.0} +BuildRequires: %{python_module astropy >= 3.0} BuildRequires: %{python_module codecov} BuildRequires: %{python_module coverage} BuildRequires: %{python_module numpy-devel} @@ -50,7 +49,6 @@ Astropy project, but is optimized for use with astropy-related projects. %prep %setup -q -n pytest-astropy-header-%{version} -%patch0 -p1 %build export CFLAGS="%{optflags}"