forked from pool/python-httplib2
- Update to version 0.8:
+ Improved App Engine behavior OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=32
This commit is contained in:
parent
8a73ff7588
commit
4f4c6e432e
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2e2ce18092c32d1ec54f8a447e14e33585e30f240b883bfeeca65f12b3bcfaf6
|
|
||||||
size 144020
|
|
3
httplib2-0.8.tar.gz
Normal file
3
httplib2-0.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cee59fdaa97a40ac505bb0629bdc8ba9ba79012d099ef11d6d3a284b7e369c9c
|
||||||
|
size 110854
|
@ -1,41 +1,42 @@
|
|||||||
Only in a/python2/httplib2: cacerts.txt
|
diff -ruN a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py
|
||||||
diff -ru a/python2/httplib2/__init__.py b/python2/httplib2/__init__.py
|
--- a/python2/httplib2/__init__.py 2013-03-06 21:45:31.000000000 +0100
|
||||||
--- a/python2/httplib2/__init__.py 2012-03-02 21:12:34.000000000 +0100
|
+++ b/python2/httplib2/__init__.py 2013-03-22 14:02:09.458410128 +0100
|
||||||
+++ b/python2/httplib2/__init__.py 2012-06-20 13:30:39.524140796 +0200
|
@@ -184,15 +184,8 @@
|
||||||
@@ -180,9 +180,8 @@
|
|
||||||
# requesting that URI again.
|
# requesting that URI again.
|
||||||
DEFAULT_MAX_REDIRECTS = 5
|
DEFAULT_MAX_REDIRECTS = 5
|
||||||
|
|
||||||
|
-try:
|
||||||
|
- # Users can optionally provide a module that tells us where the CA_CERTS
|
||||||
|
- # are located.
|
||||||
|
- import ca_certs_locater
|
||||||
|
- CA_CERTS = ca_certs_locater.get()
|
||||||
|
-except ImportError:
|
||||||
- # Default CA certificates file bundled with httplib2.
|
- # Default CA certificates file bundled with httplib2.
|
||||||
- CA_CERTS = os.path.join(
|
- CA_CERTS = os.path.join(
|
||||||
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
|
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
|
||||||
+# Use system-wide CA certificates:
|
+# Default CA certificates file bundled with httplib2.
|
||||||
+CA_CERTS = '/etc/ssl/ca-bundle.pem'
|
+CA_CERTS = '/etc/ssl/ca-bundle.pem'
|
||||||
|
|
||||||
# Which headers are hop-by-hop headers by default
|
# Which headers are hop-by-hop headers by default
|
||||||
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
|
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
|
||||||
Only in b/python2/httplib2: .__init__.py.swp
|
diff -ruN a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py
|
||||||
Only in a/python3/httplib2: cacerts.txt
|
--- a/python3/httplib2/__init__.py 2013-03-06 21:45:31.000000000 +0100
|
||||||
diff -ru a/python3/httplib2/__init__.py b/python3/httplib2/__init__.py
|
+++ b/python3/httplib2/__init__.py 2013-03-22 14:01:51.270409717 +0100
|
||||||
--- a/python3/httplib2/__init__.py 2012-03-02 21:12:34.000000000 +0100
|
@@ -124,8 +124,8 @@
|
||||||
+++ b/python3/httplib2/__init__.py 2012-06-20 13:30:22.156140376 +0200
|
|
||||||
@@ -119,9 +119,8 @@
|
|
||||||
# Which headers are hop-by-hop headers by default
|
|
||||||
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
|
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']
|
||||||
|
|
||||||
-# Default CA certificates file bundled with httplib2.
|
# Default CA certificates file bundled with httplib2.
|
||||||
-CA_CERTS = os.path.join(
|
-CA_CERTS = os.path.join(
|
||||||
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
|
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
|
||||||
+# Use system-wide CA certificates:
|
|
||||||
+CA_CERTS = '/etc/ssl/ca-bundle.pem'
|
+CA_CERTS = '/etc/ssl/ca-bundle.pem'
|
||||||
|
+
|
||||||
|
|
||||||
def _get_end2end_headers(response):
|
def _get_end2end_headers(response):
|
||||||
hopbyhop = list(HOP_BY_HOP)
|
hopbyhop = list(HOP_BY_HOP)
|
||||||
Only in b/python3/httplib2: .__init__.py.swp
|
diff -ruN a/setup.py b/setup.py
|
||||||
diff -ru a/setup.py b/setup.py
|
--- a/setup.py 2013-03-06 21:45:31.000000000 +0100
|
||||||
--- a/setup.py 2012-03-02 21:12:34.000000000 +0100
|
+++ b/setup.py 2013-03-22 14:02:33.031410660 +0100
|
||||||
+++ b/setup.py 2012-06-20 13:28:26.560137617 +0200
|
@@ -62,7 +62,6 @@
|
||||||
@@ -63,7 +63,6 @@
|
|
||||||
""",
|
""",
|
||||||
package_dir=pkgdir,
|
package_dir=pkgdir,
|
||||||
packages=['httplib2'],
|
packages=['httplib2'],
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 22 13:30:17 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.8:
|
||||||
|
+ Improved App Engine behavior
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
|
Fri Jan 11 19:51:38 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@ -15,20 +15,21 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%define mod_name httplib2
|
|
||||||
|
|
||||||
Name: python-httplib2
|
Name: python-httplib2
|
||||||
Version: 0.7.7
|
Version: 0.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://code.google.com/p/httplib2/
|
Url: http://code.google.com/p/httplib2/
|
||||||
Summary: A Python HTTP client library
|
Summary: A Python HTTP client library
|
||||||
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
|
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Source0: %{mod_name}-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
||||||
Patch0: httplib2-use-system-certs.patch
|
Patch0: httplib2-use-system-certs.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
# Test requirements (for ssl module):
|
||||||
|
#BuildRequires: python
|
||||||
%if 0%{?sles_version}
|
%if 0%{?sles_version}
|
||||||
Requires: openssl-certs
|
Requires: openssl-certs
|
||||||
%else
|
%else
|
||||||
@ -45,7 +46,7 @@ A comprehensive HTTP client library that supports many features
|
|||||||
left out of other HTTP libraries.
|
left out of other HTTP libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n httplib2-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-httplib2
|
# spec file for package python3-httplib2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -15,37 +15,34 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%define mod_name httplib2
|
|
||||||
|
|
||||||
Name: python3-httplib2
|
Name: python3-httplib2
|
||||||
Version: 0.7.7
|
Version: 0.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://code.google.com/p/httplib2/
|
Url: http://code.google.com/p/httplib2/
|
||||||
Summary: A Python HTTP client library
|
Summary: A Python HTTP client library
|
||||||
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
|
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Source0: %{mod_name}-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
||||||
Patch0: httplib2-use-system-certs.patch
|
Patch0: httplib2-use-system-certs.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
# Test requirements (for ssl module):
|
||||||
|
#BuildRequires: python3
|
||||||
%if 0%{?sles_version}
|
%if 0%{?sles_version}
|
||||||
Requires: openssl-certs
|
Requires: openssl-certs
|
||||||
%else
|
%else
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python3_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A comprehensive HTTP client library that supports many features
|
A comprehensive HTTP client library that supports many features
|
||||||
left out of other HTTP libraries.
|
left out of other HTTP libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{mod_name}-%{version}
|
%setup -q -n httplib2-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -55,7 +52,7 @@ python3 setup.py build
|
|||||||
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
#%%check
|
#%%check
|
||||||
#python python2/httplib2test.py
|
#python3 python3/httplib2test.py
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user