Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-cov for 
openSUSE:Factory checked in at 2021-09-16 23:14:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-cov (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-cov.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-cov"

Thu Sep 16 23:14:40 2021 rev:22 rq:918856 version:2.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-cov/python-pytest-cov.changes      
2021-02-11 12:47:47.309523915 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-cov.new.1899/python-pytest-cov.changes
    2021-09-16 23:17:09.435952696 +0200
@@ -1,0 +2,5 @@
+Tue Sep 14 08:45:47 UTC 2021 - Steve Kowalik <[email protected]>
+
+- Inject multibuild to avoid build cycles. 
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-cov.spec ++++++
--- /var/tmp/diff_new_pack.vkPeTI/_old  2021-09-16 23:17:09.855953131 +0200
+++ /var/tmp/diff_new_pack.vkPeTI/_new  2021-09-16 23:17:09.859953135 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package python-pytest-cov
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -17,7 +17,15 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:           python-pytest-cov
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%bcond_without test
+%define psuffix -%{flavor}
+%else
+%bcond_with test
+%define psuffix %{nil}
+%endif
+Name:           python-pytest-cov%{psuffix}
 Version:        2.11.1
 Release:        0
 Summary:        Pytest plugin for coverage reporting
@@ -29,11 +37,13 @@
 BuildRequires:  %{python_module coverage >= 5.2.1}
 BuildRequires:  %{python_module fields}
 BuildRequires:  %{python_module process-tests}
+%if %{with test}
 BuildRequires:  %{python_module pytest >= 4.6.0}
 BuildRequires:  %{python_module pytest-xdist}
+BuildRequires:  %{python_module virtualenv}
+%endif
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
-BuildRequires:  %{python_module virtualenv}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-coverage >= 5.2.1
@@ -56,21 +66,27 @@
 %python_build
 
 %install
+%if ! %{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}/
+%endif
 
 %check
+%if %{with test}
 # test_dist_missing_data - needs internet access
 # test_central_subprocess_change_cwd_with_pythonpath - needs pytest cov in 
venv which is not doable in OBS build
 export PYTHONDONTWRITEBYTECODE=1
 echo "import site;site.addsitedir(\"$(pwd)/src\")" > tests/sitecustomize.py
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:$PWD/tests 
py.test-%{$python_bin_suffix} -v -k 'not (test_dist_missing_data or 
test_central_subprocess_change_cwd_with_pythonpath)'
+%endif
 
+%if ! %{with test}
 %files %{python_files}
 %license LICENSE
 %doc AUTHORS.rst CHANGELOG.rst README.rst
 %{python_sitelib}/pytest-cov.pth
 %{python_sitelib}/pytest_cov
 %{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to