forked from pool/python-pytest-astropy-header
Accepting request 827225 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/827225 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-astropy-header?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 16 12:25:00 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix test failures by testing the source directory in multibuild
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 10 08:26:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Fri Jan 10 08:26:04 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define modname pytest-astropy-header
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
@@ -26,14 +27,14 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-pytest-astropy-header%{psuffix}
|
Name: python-%{modname}%{psuffix}
|
||||||
Version: 0.1.2
|
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/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools >= 30.3.0}
|
BuildRequires: %{python_module setuptools >= 30.3.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -52,7 +53,7 @@ running pytest. It can be used with packages that are not affiliated with the
|
|||||||
Astropy project, but is optimized for use with astropy-related projects.
|
Astropy project, but is optimized for use with astropy-related projects.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytest-astropy-header-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -65,6 +66,8 @@ Astropy project, but is optimized for use with astropy-related projects.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
|
# multibuild: nothing has been installed, test the source directory
|
||||||
|
export PYTHONPATH=$(pwd)
|
||||||
%pytest
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user