Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-arraydiff for openSUSE:Factory checked in at 2021-04-27 21:34:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-arraydiff (Old) and /work/SRC/openSUSE:Factory/.python-pytest-arraydiff.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-arraydiff" Tue Apr 27 21:34:19 2021 rev:3 rq:888760 version:0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-arraydiff/python-pytest-arraydiff.changes 2019-05-06 21:17:07.681053492 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-arraydiff.new.12324/python-pytest-arraydiff.changes 2021-04-27 21:34:26.859962603 +0200 @@ -1,0 +2,12 @@ +Tue Apr 27 09:52:52 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Do not build the package for python36 either + (installcheck failure, numpy is a runtime requirement) +- Test astropy functionality for python3 + +------------------------------------------------------------------- +Mon Apr 19 05:19:34 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com> + +- Do not build :test on Python 3.6, due to no NumPy. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-arraydiff.spec ++++++ --- /var/tmp/diff_new_pack.LpO7PZ/_old 2021-04-27 21:34:27.311963348 +0200 +++ /var/tmp/diff_new_pack.LpO7PZ/_new 2021-04-27 21:34:27.315963355 +0200 @@ -1,7 +1,7 @@ # -# spec file for package python-pytest-arraydiff +# spec file for package python-pytest-arraydiff-test # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -25,13 +24,15 @@ %define psuffix %{nil} %bcond_with test %endif + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python36 1 Name: python-pytest-arraydiff%{psuffix} Version: 0.3 Release: 0 Summary: Pytest plugin to help with comparing array output from tests License: BSD-2-Clause -Group: Development/Languages/Python -URL: https://github.com/astrofrog/pytest-arraydiff +URL: https://github.com/astropy/pytest-arraydiff Source: https://files.pythonhosted.org/packages/source/p/pytest-arraydiff/pytest-arraydiff-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -41,6 +42,7 @@ Requires: python-six BuildArch: noarch %if %{with test} +BuildRequires: %{python_module astropy if %python-base > 3} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} @@ -77,15 +79,24 @@ %if %{with test} %check +%{python_expand # u-a controlled pytest executable for nested pytest calls within tests +mkdir -p build/bin +ln -sf %{_bindir}/pytest-%{$python_bin_suffix} build/bin/pytest +} +export PATH="$PWD/build/bin:$PATH" +# not installed in :test multiflavor +export PYTHONPATH="$PWD" # generate, default_format, test_fails, test_succeeds_func_fits_hdu tests need astropy that is python3 only, so skip -%pytest -k 'not (test_generate or test_default_format or test_fails or test_succeeds_func_fits_hdu)' +python2_donttest=" or test_generate or test_default_format or test_fails or test_succeeds_func_fits_hdu" +%pytest -k "not (donttestdummyprefix ${$python_donttest})" %endif %if !%{with test} %files %{python_files} %doc CHANGES.md README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_arraydiff +%{python_sitelib}/pytest_arraydiff-%{version}*-info %endif %changelog