Hello community, here is the log from the commit of package python-py for openSUSE:Factory checked in at 2019-06-27 15:52:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-py (Old) and /work/SRC/openSUSE:Factory/.python-py.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-py" Thu Jun 27 15:52:18 2019 rev:33 rq:710865 version:1.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-py/python-py.changes 2019-03-01 20:26:21.938055560 +0100 +++ /work/SRC/openSUSE:Factory/.python-py.new.4615/python-py.changes 2019-06-27 15:52:19.579835018 +0200 @@ -1,0 +2,5 @@ +Wed Jun 19 10:08:47 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Switch to multibuild to avoid cycle bsc#1138666 + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-py.spec ++++++ --- /var/tmp/diff_new_pack.aQGHWC/_old 2019-06-27 15:52:20.195836005 +0200 +++ /var/tmp/diff_new_pack.aQGHWC/_new 2019-06-27 15:52:20.199836011 +0200 @@ -18,7 +18,15 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-py +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-py%{psuffix} Version: 1.8.0 Release: 0 Summary: Library with cross-python path, ini-parsing, io, code, log facilities @@ -26,13 +34,15 @@ Group: Development/Languages/Python URL: https://github.com/pytest-dev/py Source: https://files.pythonhosted.org/packages/source/p/py/py-%{version}.tar.gz -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Obsoletes: %{oldpython}-py-docs BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module pytest} +%endif %python_subpackages %description @@ -57,19 +67,25 @@ %python_build %install +%if !%{with test} %python_install %python_exec %fdupes %{buildroot}%{$python_sitelib} +%endif %check +%if %{with test} export LANG=en_US.UTF-8 # the passing is because upstream does not care about the results for now and # pinned pytest 3 in the repo (as this module is deprecated) # https://github.com/pytest-dev/py/issues/209 -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest || : +%pytest || : +%endif +%if !%{with test} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
