1
0
Dirk Mueller 2018-08-28 10:06:20 +00:00 committed by Git OBS Bridge
parent ae33a0dc9e
commit ae3d311210
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 28 10:05:54 UTC 2018 - dmueller@suse.com
- enable tests
-------------------------------------------------------------------
Thu Aug 23 10:57:21 UTC 2018 - dheidler@suse.de

View File

@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-jaraco.functools
Version: 1.20
Release: 0
@ -28,14 +27,16 @@ Url: https://github.com/jaraco/jaraco.functools
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.functools/jaraco.functools-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module jaraco.base}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module jaraco.classes}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module collective.checkdocs}
BuildRequires: %{python_module pytest-flake8}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: python2-backports.functools_lru_cache
BuildRequires: python2-backports.unittest_mock
%ifpython2
Requires: python-backports.functools_lru_cache
%endif
BuildArch: noarch
@ -57,10 +58,10 @@ rm -rf jaraco.functools.egg-info
%python_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.functools-%{version}-py*-nspkg.pth}
%if %{with test}
%check
# remove flake8 / doc tests
sed -i "s,addopts=--doctest-modules --flake8.*,," pytest.ini
%python_expand py.test-%{$python_bin_suffix}
%endif
%files %{python_files}
%defattr(-,root,root)