Hello community,
here is the log from the commit of package python-httplib2 for openSUSE:Factory
checked in at 2019-11-04 17:04:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-httplib2 (Old)
and /work/SRC/openSUSE:Factory/.python-httplib2.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-httplib2"
Mon Nov 4 17:04:43 2019 rev:44 rq:736453 version:0.14.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-httplib2/python-httplib2.changes
2019-08-27 10:10:18.387983845 +0200
+++
/work/SRC/openSUSE:Factory/.python-httplib2.new.2990/python-httplib2.changes
2019-11-04 17:04:44.780154718 +0100
@@ -1,0 +2,6 @@
+Wed Oct 9 10:45:30 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 0.14.0:
+ * Python3: PROXY_TYPE_SOCKS5 with str user/pass raised TypeError
+
+-------------------------------------------------------------------
Old:
----
httplib2-0.13.1.tar.gz
New:
----
httplib2-0.14.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-httplib2.spec ++++++
--- /var/tmp/diff_new_pack.3SN2eU/_old 2019-11-04 17:04:45.316155291 +0100
+++ /var/tmp/diff_new_pack.3SN2eU/_new 2019-11-04 17:04:45.324155299 +0100
@@ -16,37 +16,33 @@
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Tests require network connection
%bcond_with tests
-
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-httplib2
-Version: 0.13.1
+Version: 0.14.0
Release: 0
-Url: https://github.com/httplib2/httplib2
Summary: A Python HTTP client library
License: MIT AND Apache-2.0 AND (MPL-1.1 OR GPL-2.0-or-later OR
LGPL-2.1-or-later)
-Group: Development/Libraries/Python
+URL: https://github.com/httplib2/httplib2
Source:
https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: ca-certificates
+Requires: python-certifi
+BuildArch: noarch
%if %{with tests}
# Test requirements (for ssl module):
BuildRequires: python
BuildRequires: python3
%endif
-Requires: ca-certificates
-Requires: python-certifi
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
%python_subpackages
%description
A comprehensive HTTP client library that supports many features
left out of other HTTP libraries.
-
%prep
%setup -q -n httplib2-%{version}
@@ -59,16 +55,15 @@
%if %{with tests}
%check
-%if %have_python2
+%if %{have_python2}
python2 python2/httplib2test.py
%endif
-%if %have_python2
+%if %{have_python3}
python3 python3/httplib2test.py
%endif
%endif
%files %{python_files}
-%defattr(-,root,root)
%{python_sitelib}/httplib2-%{version}-py*.egg-info
%{python_sitelib}/httplib2
++++++ httplib2-0.13.1.tar.gz -> httplib2-0.14.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/PKG-INFO new/httplib2-0.14.0/PKG-INFO
--- old/httplib2-0.13.1/PKG-INFO 2019-07-28 13:35:41.000000000 +0200
+++ new/httplib2-0.14.0/PKG-INFO 2019-09-27 06:52:00.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: httplib2
-Version: 0.13.1
+Version: 0.14.0
Summary: A comprehensive HTTP client library.
Home-page: https://github.com/httplib2/httplib2
Author: Joe Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/python2/httplib2/__init__.py
new/httplib2-0.14.0/python2/httplib2/__init__.py
--- old/httplib2-0.13.1/python2/httplib2/__init__.py 2019-07-28
13:34:30.000000000 +0200
+++ new/httplib2-0.14.0/python2/httplib2/__init__.py 2019-09-27
06:51:36.000000000 +0200
@@ -19,7 +19,7 @@
"Alex Yu",
]
__license__ = "MIT"
-__version__ = '0.13.1'
+__version__ = '0.14.0'
import base64
import calendar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/python3/httplib2/__init__.py
new/httplib2-0.14.0/python3/httplib2/__init__.py
--- old/httplib2-0.13.1/python3/httplib2/__init__.py 2019-07-28
13:34:30.000000000 +0200
+++ new/httplib2-0.14.0/python3/httplib2/__init__.py 2019-09-27
06:51:36.000000000 +0200
@@ -15,7 +15,7 @@
"Alex Yu",
]
__license__ = "MIT"
-__version__ = '0.13.1'
+__version__ = '0.14.0'
import base64
import calendar
@@ -999,6 +999,10 @@
proxy_headers: Additional or modified headers for the proxy connect
request.
"""
+ if isinstance(proxy_user, str):
+ proxy_user = proxy_user.encode()
+ if isinstance(proxy_pass, str):
+ proxy_pass = proxy_pass.encode()
self.proxy_type, self.proxy_host, self.proxy_port, self.proxy_rdns,
self.proxy_user, self.proxy_pass, self.proxy_headers = (
proxy_type,
proxy_host,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/python3/httplib2/socks.py
new/httplib2-0.14.0/python3/httplib2/socks.py
--- old/httplib2-0.13.1/python3/httplib2/socks.py 2019-07-28
13:34:30.000000000 +0200
+++ new/httplib2-0.14.0/python3/httplib2/socks.py 2019-09-27
06:51:36.000000000 +0200
@@ -206,13 +206,7 @@
return "\r\n".join(hdrs)
def __getauthheader(self):
- username = self.__proxy[4]
- password = self.__proxy[5]
- if isinstance(username, str):
- username = username.encode()
- if isinstance(password, str):
- password = password.encode()
- auth = username + b":" + password
+ auth = self.__proxy[4] + b":" + self.__proxy[5]
return "Proxy-Authorization: Basic " + base64.b64encode(auth).decode()
def setproxy(
@@ -273,13 +267,13 @@
elif chosenauth[1:2] == chr(0x02).encode():
# Okay, we need to perform a basic username/password
# authentication.
- self.sendall(
- chr(0x01).encode()
- + chr(len(self.__proxy[4]))
- + self.__proxy[4]
- + chr(len(self.__proxy[5]))
- + self.__proxy[5]
- )
+ packet = bytearray()
+ packet.append(0x01)
+ packet.append(len(self.__proxy[4]))
+ packet.extend(self.__proxy[4])
+ packet.append(len(self.__proxy[5]))
+ packet.extend(self.__proxy[5])
+ self.sendall(packet)
authstat = self.__recvall(2)
if authstat[0:1] != chr(0x01).encode():
# Bad response
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/python3/httplib2.egg-info/PKG-INFO
new/httplib2-0.14.0/python3/httplib2.egg-info/PKG-INFO
--- old/httplib2-0.13.1/python3/httplib2.egg-info/PKG-INFO 2019-07-28
13:35:41.000000000 +0200
+++ new/httplib2-0.14.0/python3/httplib2.egg-info/PKG-INFO 2019-09-27
06:52:00.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: httplib2
-Version: 0.13.1
+Version: 0.14.0
Summary: A comprehensive HTTP client library.
Home-page: https://github.com/httplib2/httplib2
Author: Joe Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/httplib2-0.13.1/setup.py new/httplib2-0.14.0/setup.py
--- old/httplib2-0.13.1/setup.py 2019-07-28 13:34:30.000000000 +0200
+++ new/httplib2-0.14.0/setup.py 2019-09-27 06:51:36.000000000 +0200
@@ -4,7 +4,7 @@
import sys
pkgdir = {"": "python%s" % sys.version_info[0]}
-VERSION = '0.13.1'
+VERSION = '0.14.0'
# `python setup.py test` uses existing Python environment, no virtualenv, no
pip.