[packages/python-httpretty] loosen test deps

glen glen at pld-linux.org
Tue Sep 6 18:03:51 CEST 2016


commit bb7daafe63c6c94b7962f07257c335974dc8c3f8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 6 19:03:28 2016 +0300

    loosen test deps
    
    altho doesn't seem worth to enable as the tests require network?

 python-httpretty.spec |  6 ++++--
 test-deps.patch       | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 2 deletions(-)
---
diff --git a/python-httpretty.spec b/python-httpretty.spec
index cb48e87..633466a 100644
--- a/python-httpretty.spec
+++ b/python-httpretty.spec
@@ -19,17 +19,18 @@ License:	MIT
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz
 # Source0-md5:	2a6bbf270fafc77647b0479d95d0544c
+Patch0:		test-deps.patch
 URL:		http://httpretty.readthedocs.io/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
 %if %{with python2}
 BuildRequires:	python-distribute
-BuildRequires:	python-sure
+BuildRequires:	python-sure >= 1.2.24
 %endif
 %if %{with python3}
 BuildRequires:	python3-distribute
 BuildRequires:	python3-modules
-BuildRequires:	python3-sure
+BuildRequires:	python3-sure >= 1.2.24
 %endif
 Requires:	python-modules
 BuildArch:	noarch
@@ -48,6 +49,7 @@ HTTP client mock for Python.
 
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/test-deps.patch b/test-deps.patch
new file mode 100644
index 0000000..8902ccd
--- /dev/null
+++ b/test-deps.patch
@@ -0,0 +1,37 @@
+test deps are too conrete or irrelevant (doc build deps)
+
+--- httpretty-0.8.14/development.txt	2016-09-06 18:59:59.745675091 +0300
++++ httpretty-0.8.14/development.txt	2016-09-06 19:01:36.844074805 +0300
+@@ -2,16 +2,16 @@
+-flake8==2.5.1
+-httplib2==0.9.2
+-ipdb==0.8.1
+-misaka==2.0.0
+-mock==1.3.0
+-nose==1.3.7
+-nose-randomly==1.2.0
+-rednose==0.4.3
+-requests==2.8.1
+-steadymark==0.7.2
+-sure==1.2.24
+-urllib3==1.12
+-tornado==4.3
+-coverage==4.0.3
+-Sphinx==1.3.3
+-sphinx-rtd-theme==0.1.9
++#flake8==2.5.1
++#httplib2==0.9.2
++#ipdb==0.8.1
++#misaka==2.0.0
++#mock==1.3.0
++#nose==1.3.7
++#nose-randomly==1.2.0
++#rednose==0.4.3
++#requests==2.8.1
++#steadymark==0.7.2
++sure>=1.2.24
++#urllib3==1.12
++#tornado==4.3
++#coverage==4.0.3
++#Sphinx==1.3.3
++#sphinx-rtd-theme==0.1.9
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list