Don't run tests when building as a module

This commit is contained in:
Stephen Gallagher 2017-05-14 13:46:01 -04:00
parent 92f3747faf
commit 52b5430773
No known key found for this signature in database
GPG Key ID: 7A25556236BAA3A3

View File

@ -11,7 +11,7 @@
Name: python-requests
Version: 2.13.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: HTTP library, written in Python, for human beings
License: ASL 2.0
@ -157,12 +157,16 @@ ln -s ../../idna %{buildroot}/%{python2_sitelib}/requests/packages/idna
%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
%if 0%{?_with_python3}
pushd %{py3dir}
PYTHONPATH=./ py.test-%{python3_pkgversion}
popd
%endif
%endif #_module_build
%files -n python2-requests
@ -184,6 +188,9 @@ popd
%endif
%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
- Update to 2.13.0 (#1418138)