forked from pool/python-jaraco.functools
- enable tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.functools?expand=0&rev=2
This commit is contained in:
parent
ae33a0dc9e
commit
ae3d311210
@ -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
|
Thu Aug 23 10:57:21 UTC 2018 - dheidler@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_with test
|
|
||||||
Name: python-jaraco.functools
|
Name: python-jaraco.functools
|
||||||
Version: 1.20
|
Version: 1.20
|
||||||
Release: 0
|
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
|
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.functools/jaraco.functools-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module jaraco.base}
|
BuildRequires: %{python_module jaraco.base}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module jaraco.classes}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module pytest-sugar}
|
BuildRequires: %{python_module pytest-sugar}
|
||||||
BuildRequires: %{python_module collective.checkdocs}
|
|
||||||
BuildRequires: %{python_module pytest-flake8}
|
|
||||||
BuildRequires: %{python_module pytest}
|
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
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -57,10 +58,10 @@ rm -rf jaraco.functools.egg-info
|
|||||||
%python_install
|
%python_install
|
||||||
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.functools-%{version}-py*-nspkg.pth}
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.functools-%{version}-py*-nspkg.pth}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
|
# remove flake8 / doc tests
|
||||||
|
sed -i "s,addopts=--doctest-modules --flake8.*,," pytest.ini
|
||||||
%python_expand py.test-%{$python_bin_suffix}
|
%python_expand py.test-%{$python_bin_suffix}
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user