- add test requirements, run tests conditionally
(not BuildRequiring pytest fixes bsc#1073845) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=10
This commit is contained in:
parent
344f664198
commit
edd7db6fd9
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 21 16:10:47 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- add test requirements, run tests conditionally
|
||||||
|
(not BuildRequiring pytest fixes bsc#1073845)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 9 18:50:46 UTC 2017 - arun@gmx.de
|
Thu Nov 9 18:50:46 UTC 2017 - arun@gmx.de
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_with tests
|
||||||
|
|
||||||
Name: python-attrs
|
Name: python-attrs
|
||||||
Version: 17.3.0
|
Version: 17.3.0
|
||||||
@ -27,10 +28,14 @@ Group: Development/Languages/Python
|
|||||||
Url: https://github.com/hynek/attrs/
|
Url: https://github.com/hynek/attrs/
|
||||||
Source: https://pypi.io/packages/source/a/attrs/attrs-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/a/attrs/attrs-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -66,6 +71,11 @@ python-attrs is the successor to python-characterstic
|
|||||||
%python_install
|
%python_install
|
||||||
%fdupes %{buildroot}%{_prefix}
|
%fdupes %{buildroot}%{_prefix}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
%check
|
||||||
|
%python_exec -m pytest tests
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGELOG.rst LICENSE README.rst
|
%doc CHANGELOG.rst LICENSE README.rst
|
||||||
|
Loading…
Reference in New Issue
Block a user