[packages/python-httpretty] update test BR

glen glen at pld-linux.org
Tue Sep 6 18:30:01 CEST 2016


commit 4ad898a11de770f96edf568aa8a0dd48baa885ca
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 6 19:18:44 2016 +0300

    update test BR
    
    - python-nose -- ImportError: No module named nose
    - python-requests -- ImportError: No module named requests
    - python-tornado -- ImportError: No module named tornado.web
    - python3-httplib2 -- ImportError: No module named httplib2
    
    note: tests do not pass because mismatched captured packets
    
    FAILED (failures=6, errors=10)

 python-httpretty.spec | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/python-httpretty.spec b/python-httpretty.spec
index 633466a..646e822 100644
--- a/python-httpretty.spec
+++ b/python-httpretty.spec
@@ -26,11 +26,23 @@ BuildRequires:	rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires:	python-distribute
 BuildRequires:	python-sure >= 1.2.24
+%if %{with tests}
+BuildRequires:	python-httplib2
+BuildRequires:	python-nose
+BuildRequires:	python-requests
+BuildRequires:	python-tornado
+%endif
 %endif
 %if %{with python3}
 BuildRequires:	python3-distribute
 BuildRequires:	python3-modules
 BuildRequires:	python3-sure >= 1.2.24
+%if %{with tests}
+BuildRequires:	python3-httplib2
+BuildRequires:	python3-nose
+BuildRequires:	python3-requests
+BuildRequires:	python3-tornado
+%endif
 %endif
 Requires:	python-modules
 BuildArch:	noarch
@@ -57,16 +69,13 @@ HTTP client mock for Python.
 %endif
 
 %if %{with python3}
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 %py3_build %{?with_tests:test}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %if %{with python2}
 %py_install
-
 %py_postclean
 %endif
 
@@ -83,10 +92,8 @@ rm -rf $RPM_BUILD_ROOT
 %doc README*
 %dir %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}/*.py[co]
-%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-httpretty.git/commitdiff/3ed73992846d8f0106c967cce3fc8e6a90917097



More information about the pld-cvs-commit mailing list