diff --git a/python-jaraco.functools.changes b/python-jaraco.functools.changes index 5de10b1..f24c748 100644 --- a/python-jaraco.functools.changes +++ b/python-jaraco.functools.changes @@ -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 diff --git a/python-jaraco.functools.spec b/python-jaraco.functools.spec index ef6cbe5..7339ca0 100644 --- a/python-jaraco.functools.spec +++ b/python-jaraco.functools.spec @@ -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)