From ae3d31121015507e31c160f2c8261406a31b9b22408fe001fe3a47e328d0071d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 28 Aug 2018 10:06:20 +0000 Subject: [PATCH] - enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.functools?expand=0&rev=2 --- python-jaraco.functools.changes | 5 +++++ python-jaraco.functools.spec | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) 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)