Hello community,

here is the log from the commit of package python-attrs for openSUSE:Factory 
checked in at 2017-12-23 12:11:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-attrs (Old)
 and      /work/SRC/openSUSE:Factory/.python-attrs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-attrs"

Sat Dec 23 12:11:40 2017 rev:4 rq:559130 version:17.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-attrs/python-attrs.changes        
2017-11-12 17:59:30.083036516 +0100
+++ /work/SRC/openSUSE:Factory/.python-attrs.new/python-attrs.changes   
2017-12-23 12:11:42.006362514 +0100
@@ -1,0 +2,6 @@
+Thu Dec 21 16:10:47 UTC 2017 - [email protected]
+
+- add test requirements, run tests conditionally
+  (not BuildRequiring pytest fixes bsc#1073845)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-attrs.spec ++++++
--- /var/tmp/diff_new_pack.vZfUKp/_old  2017-12-23 12:11:42.546336185 +0100
+++ /var/tmp/diff_new_pack.vZfUKp/_new  2017-12-23 12:11:42.550335990 +0100
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_with tests
 
 Name:           python-attrs
 Version:        17.3.0
@@ -27,10 +28,14 @@
 Url:            https://github.com/hynek/attrs/
 Source:         https://pypi.io/packages/source/a/attrs/attrs-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+%if %{with tests}
+BuildRequires:  %{python_module hypothesis}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module zope.interface}
+%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
@@ -66,6 +71,11 @@
 %python_install
 %fdupes %{buildroot}%{_prefix}
 
+%if %{with tests}
+%check
+%python_exec -m pytest tests
+%endif
+
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc CHANGELOG.rst LICENSE README.rst


Reply via email to