Hello community,
here is the log from the commit of package python-pytest-astropy-header for
openSUSE:Factory checked in at 2020-08-17 12:07:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-astropy-header (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-astropy-header.new.3399
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-astropy-header"
Mon Aug 17 12:07:19 2020 rev:4 rq:827225 version:0.1.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-astropy-header/python-pytest-astropy-header.changes
2020-01-10 17:49:50.658131775 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-astropy-header.new.3399/python-pytest-astropy-header.changes
2020-08-17 12:08:39.854804066 +0200
@@ -1,0 +2,5 @@
+Thu Aug 16 12:25:00 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Fix test failures by testing the source directory in multibuild
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-astropy-header.spec ++++++
--- /var/tmp/diff_new_pack.yQVSdH/_old 2020-08-17 12:08:43.626806168 +0200
+++ /var/tmp/diff_new_pack.yQVSdH/_new 2020-08-17 12:08:43.630806171 +0200
@@ -16,6 +16,7 @@
#
+%define modname pytest-astropy-header
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
@@ -26,14 +27,14 @@
%define psuffix %{nil}
%bcond_with test
%endif
-Name: python-pytest-astropy-header%{psuffix}
+Name: python-%{modname}%{psuffix}
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
+Source:
https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 30.3.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -52,7 +53,7 @@
Astropy project, but is optimized for use with astropy-related projects.
%prep
-%setup -q -n pytest-astropy-header-%{version}
+%setup -q -n %{modname}-%{version}
%build
%python_build
@@ -65,6 +66,8 @@
%check
%if %{with test}
+# multibuild: nothing has been installed, test the source directory
+export PYTHONPATH=$(pwd)
%pytest
%endif