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
This commit is contained in:
parent
3de46bab79
commit
c5a77051d4
@ -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 <pviktori@redhat.com> - 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 <limburgher@gmail.com> - 1:2.8.0-1
|
||||
- 2.8.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user