Don't run tests when building as a module
This commit is contained in:
parent
92f3747faf
commit
52b5430773
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: python-requests
|
Name: python-requests
|
||||||
Version: 2.13.0
|
Version: 2.13.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: HTTP library, written in Python, for human beings
|
Summary: HTTP library, written in Python, for human beings
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -157,12 +157,16 @@ ln -s ../../idna %{buildroot}/%{python2_sitelib}/requests/packages/idna
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
|
|
||||||
|
%if 0%{?_module_build}
|
||||||
|
# Don't run tests on module-build for now
|
||||||
|
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608
|
||||||
PYTHONPATH=./ py.test
|
PYTHONPATH=./ py.test
|
||||||
%if 0%{?_with_python3}
|
%if 0%{?_with_python3}
|
||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
PYTHONPATH=./ py.test-%{python3_pkgversion}
|
PYTHONPATH=./ py.test-%{python3_pkgversion}
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
|
%endif #_module_build
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-requests
|
%files -n python2-requests
|
||||||
@ -184,6 +188,9 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 14 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.13.0-2
|
||||||
|
- Don't run tests when building as a module
|
||||||
|
|
||||||
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.13.0-1
|
* Thu Feb 09 2017 Jeremy Cline <jeremy@jcline.org> - 2.13.0-1
|
||||||
- Update to 2.13.0 (#1418138)
|
- Update to 2.13.0 (#1418138)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user