forked from pool/python-pytest-astropy-header
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
This commit is contained in:
3
pytest-astropy-header-0.1.2.tar.gz
Normal file
3
pytest-astropy-header-0.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:afdc79650b24d175d54da459fc88f597144e65af3e7eb85fe9e61231f25307f9
|
||||||
|
size 9260
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a75eb13a0616ca4ab1849530a11d535e0ec433e1ac6dd9111e487f54b64d92fd
|
|
||||||
size 8553
|
|
||||||
@@ -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
|
|
||||||
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 19 16:06:15 UTC 2019 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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
|
Wed Dec 11 18:49:53 UTC 2019 - code@bnavigator.de
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,13 @@
|
|||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pytest-astropy-header
|
Name: python-pytest-astropy-header
|
||||||
Version: 0.1
|
Version: 0.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest plugin to add diagnostic information to the header of the test output
|
Summary: Pytest plugin to add diagnostic information to the header of the test output
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Scientific/Astronomy
|
Group: Productivity/Scientific/Astronomy
|
||||||
URL: https://github.com/astropy/pytest-astropy-header
|
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
|
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 devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module pytest >= 2.8}
|
BuildRequires: %{python_module pytest >= 2.8}
|
||||||
@@ -34,7 +33,7 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-pytest >= 2.8
|
Requires: python-pytest >= 2.8
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module astropy >= 2.0}
|
BuildRequires: %{python_module astropy >= 3.0}
|
||||||
BuildRequires: %{python_module codecov}
|
BuildRequires: %{python_module codecov}
|
||||||
BuildRequires: %{python_module coverage}
|
BuildRequires: %{python_module coverage}
|
||||||
BuildRequires: %{python_module numpy-devel}
|
BuildRequires: %{python_module numpy-devel}
|
||||||
@@ -50,7 +49,6 @@ Astropy project, but is optimized for use with astropy-related projects.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-astropy-header-%{version}
|
%setup -q -n pytest-astropy-header-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
|
|||||||
Reference in New Issue
Block a user