forked from pool/python-wsgi_intercept
Accepting request 220400 from devel:languages:python
- Added wsgi_intercept-disable-testbogusdomain.patch: Disable some tests on 12.3 where patching fails - Update to version 0.6.1: + Better testing dependency structure - Dropped patches: + 0001-Depend-on-requests-2.0.1.patch (merged upstream) - Added 0001-Depend-on-requests-2.0.1.patch: Require requests>=2.0.1. Really a requirement OBS-URL: https://build.opensuse.org/request/show/220400 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wsgi_intercept?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 16:44:30 UTC 2014 - speilicke@suse.com
|
||||
|
||||
- Added wsgi_intercept-disable-testbogusdomain.patch: Disable some tests
|
||||
on 12.3 where patching fails
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 15:22:14 UTC 2014 - speilicke@suse.com
|
||||
|
||||
- Update to version 0.6.1:
|
||||
+ Better testing dependency structure
|
||||
- Dropped patches:
|
||||
+ 0001-Depend-on-requests-2.0.1.patch (merged upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 14:01:10 UTC 2014 - speilicke@suse.com
|
||||
|
||||
- Added 0001-Depend-on-requests-2.0.1.patch: Require requests>=2.0.1.
|
||||
Really a requirement
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 15:47:55 UTC 2014 - speilicke@suse.com
|
||||
|
||||
|
@@ -17,21 +17,23 @@
|
||||
|
||||
|
||||
Name: python-wsgi_intercept
|
||||
Version: 0.6.0
|
||||
Version: 0.6.1
|
||||
Release: 0
|
||||
Summary: Installs a WSGI application in place of a real URI for testing
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://code.google.com/p/wsgi-intercept/
|
||||
Source: http://pypi.python.org/packages/source/w/wsgi_intercept/wsgi_intercept-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE speilicke@suse.com -- Patching fails
|
||||
Patch0: wsgi_intercept-disable-testbogusdomain.patch
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
# Test requirements:
|
||||
BuildRequires: python-httplib2
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-pytest >= 2.4
|
||||
BuildRequires: python-requests
|
||||
Recommends: python-requests
|
||||
BuildRequires: python-requests >= 2.0.1
|
||||
Recommends: python-requests >= 2.0.1
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
@@ -48,6 +50,9 @@ can avoid spawning multiple processes or threads to test your Web app.
|
||||
|
||||
%prep
|
||||
%setup -q -n wsgi_intercept-%{version}
|
||||
%if 0%{?suse_version} == 1230
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fbee9bb0fe6aace0c6297d217bf9910a5099faa173e7e26f69246f5f59dc8754
|
||||
size 9830
|
3
wsgi_intercept-0.6.1.tar.gz
Normal file
3
wsgi_intercept-0.6.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:656d6cea9c513e1a5db963d5210d579846cca166b47a3c4fcdd0633ce01516e9
|
||||
size 9869
|
16
wsgi_intercept-disable-testbogusdomain.patch
Normal file
16
wsgi_intercept-disable-testbogusdomain.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff -ruN a/test/test_httplib2.py b/test/test_httplib2.py
|
||||
--- a/test/test_httplib2.py 2013-11-05 21:55:09.000000000 +0100
|
||||
+++ b/test/test_httplib2.py 2014-01-30 17:27:27.499618248 +0100
|
||||
@@ -28,12 +28,6 @@
|
||||
uninstall()
|
||||
|
||||
|
||||
-def test_bogus_domain():
|
||||
- install()
|
||||
- py.test.raises(gaierror,
|
||||
- 'httplib2_intercept.HTTP_WSGIInterceptorWithTimeout("_nonexistant_domain_").connect()')
|
||||
- uninstall()
|
||||
-
|
||||
|
||||
def test_https_success():
|
||||
install(443)
|
Reference in New Issue
Block a user