Hello community, here is the log from the commit of package python-attrs for openSUSE:Factory checked in at 2019-08-14 11:37:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-attrs (Old) and /work/SRC/openSUSE:Factory/.python-attrs.new.9556 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-attrs" Wed Aug 14 11:37:22 2019 rev:10 rq:722713 version:19.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-attrs/python-attrs.changes 2019-03-08 13:28:39.218991147 +0100 +++ /work/SRC/openSUSE:Factory/.python-attrs.new.9556/python-attrs.changes 2019-08-14 11:37:23.664696622 +0200 @@ -1,0 +2,5 @@ +Mon Aug 12 11:20:18 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Switch to multibuild to enable tests + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-attrs.spec ++++++ --- /var/tmp/diff_new_pack.Id85Me/_old 2019-08-14 11:37:24.244696518 +0200 +++ /var/tmp/diff_new_pack.Id85Me/_new 2019-08-14 11:37:24.244696518 +0200 @@ -17,8 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with tests -Name: python-attrs +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-attrs%{psuffix} Version: 19.1.0 Release: 0 Summary: Attributes without boilerplate @@ -26,13 +33,13 @@ Group: Development/Languages/Python URL: https://github.com/hynek/attrs/ Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 40.6.0} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch -%if %{with tests} +%if %{with test} +BuildRequires: %{python_module Pympler} BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pympler} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module zope.interface} @@ -66,18 +73,22 @@ %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif -%if %{with tests} +%if %{with test} %check -%python_exec -m pytest tests +%pytest %endif +%if !%{with test} %files %{python_files} %license LICENSE %doc CHANGELOG.rst README.rst %{python_sitelib}/attr* %{python_sitelib}/attrs-%{version}-py*.egg-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
