ralph pushed to python-requests (f20). "Try a super basic test in %check."
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri May 15 13:51:53 UTC 2015
From ffa5143cf048a4a86ea62740c422d920aa97ec04 Mon Sep 17 00:00:00 2001
From: Ralph Bean <rbean at redhat.com>
Date: Thu, 11 Dec 2014 21:55:50 -0500
Subject: Try a super basic test in %check.
diff --git a/python-requests.spec b/python-requests.spec
index a5c7db0..3285ee0 100644
--- a/python-requests.spec
+++ b/python-requests.spec
@@ -6,7 +6,7 @@
Name: python-requests
Version: 2.5.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: HTTP library, written in Python, for human beings
License: ASL 2.0
@@ -103,7 +103,8 @@ ln -s ../../urllib3 %{buildroot}/%{python_sitelib}/requests/packages/urllib3
## The tests succeed if run locally, but fail in koji.
## They require an active network connection to query httpbin.org
-#%%check
+%check
+
#%%{__python} test_requests.py
#%%if 0%%{?_with_python3}
#pushd %%{py3dir}
@@ -111,6 +112,16 @@ ln -s ../../urllib3 %{buildroot}/%{python_sitelib}/requests/packages/urllib3
#popd
#%%endif
+# At very, very least, we'll try to start python and import requests
+PYTHONPATH=. %{__python} -c "import requests"
+
+%if 0%{?_with_python3}
+pushd %{py3dir}
+PYTHONPATH=. %{__python3} -c "import requests"
+popd
+%endif
+
+
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
@@ -130,6 +141,9 @@ ln -s ../../urllib3 %{buildroot}/%{python_sitelib}/requests/packages/urllib3
%endif
%changelog
+* Thu Dec 11 2014 Ralph Bean <rbean at redhat.com> - 2.5.0-2
+- Do the most basic of tests in the check section.
+
* Thu Dec 11 2014 Ralph Bean <rbean at redhat.com> - 2.5.0-1
- Latest upstream, 2.5.0 for #1171068
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-requests.git/commit/?h=f20&id=ffa5143cf048a4a86ea62740c422d920aa97ec04
More information about the scm-commits
mailing list