From 97192bfc42ea8c54c7acaf99aa413f135c9ef371a465cd618995af5eee7df4b3 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 18 May 2015 13:37:34 +0000 Subject: [PATCH] Accepting request 307136 from home:benoit_monin:branches:devel:languages:python - update to version 0.10.0 - refresh wsgi_intercept-disable-testbogusdomain.patch - update project URL - skip tests trying to access google.com with command line option OBS-URL: https://build.opensuse.org/request/show/307136 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=17 --- python-wsgi_intercept.changes | 9 ++++++++ python-wsgi_intercept.spec | 9 ++++---- wsgi_intercept-0.10.0.tar.gz | 3 +++ wsgi_intercept-0.6.1.tar.gz | 3 --- wsgi_intercept-disable-testbogusdomain.patch | 22 ++++++++++---------- 5 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 wsgi_intercept-0.10.0.tar.gz delete mode 100644 wsgi_intercept-0.6.1.tar.gz diff --git a/python-wsgi_intercept.changes b/python-wsgi_intercept.changes index 7ab5816..bfb07a4 100644 --- a/python-wsgi_intercept.changes +++ b/python-wsgi_intercept.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu May 14 14:50:24 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.10.0: + * no changelog available +- refresh wsgi_intercept-disable-testbogusdomain.patch +- update project URL +- skip tests trying to access google.com with command line option + ------------------------------------------------------------------- Wed Feb 5 11:02:07 UTC 2014 - speilicke@suse.com diff --git a/python-wsgi_intercept.spec b/python-wsgi_intercept.spec index f178351..c9c7046 100644 --- a/python-wsgi_intercept.spec +++ b/python-wsgi_intercept.spec @@ -1,7 +1,7 @@ # # spec file for package python-wsgi_intercept # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ Name: python-wsgi_intercept -Version: 0.6.1 +Version: 0.10.0 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/ +Url: https://github.com/cdent/python3-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 @@ -61,7 +61,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} rm -rf %{buildroot}%{python_sitelib}/test %check -py.test build/ +# skip tests trying to access google.com +py.test -k "not not_intercepted" build/ %files %defattr(-,root,root,-) diff --git a/wsgi_intercept-0.10.0.tar.gz b/wsgi_intercept-0.10.0.tar.gz new file mode 100644 index 0000000..7e40904 --- /dev/null +++ b/wsgi_intercept-0.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f2eb4757c6cdefa4499aff4b6b080e223d416fa9c535634b2891e916ea45161 +size 30017 diff --git a/wsgi_intercept-0.6.1.tar.gz b/wsgi_intercept-0.6.1.tar.gz deleted file mode 100644 index c6512a0..0000000 --- a/wsgi_intercept-0.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:656d6cea9c513e1a5db963d5210d579846cca166b47a3c4fcdd0633ce01516e9 -size 9869 diff --git a/wsgi_intercept-disable-testbogusdomain.patch b/wsgi_intercept-disable-testbogusdomain.patch index 9fead56..c9e7737 100644 --- a/wsgi_intercept-disable-testbogusdomain.patch +++ b/wsgi_intercept-disable-testbogusdomain.patch @@ -1,16 +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() +--- wsgi_intercept-0.10.0.orig/test/test_httplib2.py ++++ wsgi_intercept-0.10.0/test/test_httplib2.py +@@ -40,13 +40,6 @@ def test_http_other_port(): + assert environ['wsgi.url_scheme'] == 'http' -def test_bogus_domain(): -- install() -- py.test.raises(gaierror, +- with InstalledApp(wsgi_app.simple_app, host=HOST, port=80): +- py.test.raises( +- gaierror, - 'httplib2_intercept.HTTP_WSGIInterceptorWithTimeout("_nonexistant_domain_").connect()') -- uninstall() - - - def test_https_success(): - install(443) +- + def test_https(): + with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app: + http = httplib2.Http()