[packages/python-requests] - more testing
arekm
arekm at pld-linux.org
Thu Dec 4 12:00:09 CET 2014
commit 40323c10aee843ba0e8b6bdc389020037bd2b504
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Dec 4 11:59:50 2014 +0100
- more testing
python-requests.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/python-requests.spec b/python-requests.spec
index 85c9c75..5402b0b 100644
--- a/python-requests.spec
+++ b/python-requests.spec
@@ -28,6 +28,7 @@ BuildRequires: python-modules >= 1:2.6
BuildRequires: python-charade
BuildRequires: python-urllib3 >= 1.9.1
%endif
+%{?with_tests:BuildRequires: python-pytest}
%endif
%if %{with python3}
BuildRequires: python3-modules >= 1:3.2
@@ -35,6 +36,7 @@ BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-charade
BuildRequires: python3-urllib3 >= 1.9.1
%endif
+%{?with_tests:BuildRequires: python3-pytest}
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
@@ -116,10 +118,12 @@ Ten pakiet zawiera moduł dla Pythona 3.x.
%build
%if %{with python2}
%{__python} setup.py build -b py2 %{?with_tests:test}
+%{?with_tests:cp requirements.txt test_requests.py py2; cd py2; PYTHONPATH=$(pwd)/lib %{__python} test_requests.py; cd ..}
%endif
%if %{with python3}
%{__python3} setup.py build -b py3 %{?with_tests:test}
+%{?with_tests:cp requirements.txt test_requests.py py3; cd py3; PYTHONPATH=$(pwd)/lib %{__python3} test_requests.py; cd ..}
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-requests.git/commitdiff/40323c10aee843ba0e8b6bdc389020037bd2b504
More information about the pld-cvs-commit
mailing list