Omit tests on EL-8
This commit is contained in:
parent
2ebe4bb723
commit
01b24c5a07
@ -3,9 +3,15 @@
|
||||
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
%if 0%{?rhel} >= 8
|
||||
%bcond_with pytests
|
||||
%else
|
||||
%bcond_without pytests
|
||||
%endif
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 3.0.0
|
||||
Release: 9%{?dist}
|
||||
Release: 10%{?dist}
|
||||
Summary: Simple python library to deal with URI Templates (RFC 6570)
|
||||
|
||||
License: BSD
|
||||
@ -24,7 +30,9 @@ Conflicts: python3-uri-templates
|
||||
%{?python_provide:%python_provide python3-%{altname}}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%if %{with pytests}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
|
||||
%description -n python3-%{modname}
|
||||
%{summary}.
|
||||
@ -40,9 +48,11 @@ Python 3 version.
|
||||
%install
|
||||
%py3_install
|
||||
|
||||
%if %{with pytests}
|
||||
%check
|
||||
#py.test-%{python3_version} -v
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||
%endif
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
@ -51,6 +61,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||
%{python3_sitelib}/%{modname}/
|
||||
|
||||
%changelog
|
||||
* Wed Jan 15 2020 Gwyn Ciesla <gwync@protonmail.com> - 3.0.0-10
|
||||
- Don't test on EL-8
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-9
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user