From c5a77051d4b098ba004dc22d556ed01a808195bb Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 26 Mar 2019 16:07:30 +0100 Subject: [PATCH] Enable tests (but keep a few skipped on Python 2) Also: - Add explicit dependency on python3-sphinx_rtd_theme - Remove test dependency on python2-hypothesis --- python-dateutil.spec | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/python-dateutil.spec b/python-dateutil.spec index b044b88..37d409b 100644 --- a/python-dateutil.spec +++ b/python-dateutil.spec @@ -2,7 +2,7 @@ Name: python-%{modname} Version: 2.8.0 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Summary: Powerful extensions to the standard datetime module @@ -12,6 +12,7 @@ Source: %{pypi_source} BuildArch: noarch BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme %global _description \ The dateutil module provides powerful extensions to the standard datetime\ @@ -23,7 +24,6 @@ module available in Python. Summary: %summary BuildRequires: python2-devel BuildRequires: python2-freezegun -BuildRequires: python2-hypothesis BuildRequires: python2-pytest BuildRequires: python2-six BuildRequires: python2-setuptools @@ -68,9 +68,17 @@ make -C docs html %py2_install %py3_install -#%%check -#%%{__python2} -m pytest -#%%{__python3} -m pytest +%check +%{__python3} -m pytest + +# Tests skipped on Python 2: +# dateutil/test/property: Tests using python2-hypothesis are skipped to break +# up dependency loops as the Python 2 stack is being removed form Fedora. +# gettz_badzone_unicode: "os.path.isfile" raises the wrong error on non-UTF-8 +# locales. Probably not worth worrying about. +%{__python2} -m pytest \ + --ignore dateutil/test/property \ + -k 'not gettz_badzone_unicode' %files -n python2-%{modname} %license LICENSE @@ -89,6 +97,11 @@ make -C docs html %doc docs/_build/html %changelog +* Tue Mar 06 2019 Petr Viktorin - 1:2.8.0-2 +- Enable tests (but keep a few skipped on Python 2) +- Add explicit dependency on python3-sphinx_rtd_theme +- Remove test dependency on python2-hypothesis + * Wed Feb 06 2019 Gwyn Ciesla - 1:2.8.0-1 - 2.8.0