Hello community,

here is the log from the commit of package python-urllib3 for openSUSE:Factory 
checked in at 2019-01-03 18:04:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old)
 and      /work/SRC/openSUSE:Factory/.python-urllib3.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-urllib3"

Thu Jan  3 18:04:48 2019 rev:25 rq:662088 version:1.24.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes    
2018-11-06 15:35:09.543632497 +0100
+++ /work/SRC/openSUSE:Factory/.python-urllib3.new.28833/python-urllib3.changes 
2019-01-03 18:04:49.292236716 +0100
@@ -1,0 +2,9 @@
+Sun Dec 30 18:20:59 CET 2018 - [email protected]
+
+- Update to 1.24.1:
+  * Remove quadratic behavior within GzipDecoder.decompress()
+    (Issue #1467)
+  * Restored functionality of ciphers parameter for
+    create_urllib3_context(). (Issue #1462)
+
+-------------------------------------------------------------------

Old:
----
  urllib3-1.24.tar.gz

New:
----
  urllib3-1.24.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-urllib3.spec ++++++
--- /var/tmp/diff_new_pack.aNJ8S5/_old  2019-01-03 18:04:50.024236065 +0100
+++ /var/tmp/diff_new_pack.aNJ8S5/_new  2019-01-03 18:04:50.028236062 +0100
@@ -31,7 +31,7 @@
 %else
 Name:           python-urllib3
 %endif
-Version:        1.24
+Version:        1.24.1
 Release:        0
 Summary:        HTTP library with thread-safe connection pooling, file post, 
and more
 License:        MIT

++++++ python-urllib3-recent-date.patch ++++++
--- /var/tmp/diff_new_pack.aNJ8S5/_old  2019-01-03 18:04:50.060236033 +0100
+++ /var/tmp/diff_new_pack.aNJ8S5/_new  2019-01-03 18:04:50.060236033 +0100
@@ -13,11 +13,9 @@
  src/urllib3/connection.py | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
-Index: urllib3-1.23/urllib3/connection.py
-===================================================================
---- urllib3-1.23.orig/src/urllib3/connection.py
-+++ urllib3-1.23/src/urllib3/connection.py
-@@ -60,7 +60,7 @@ port_by_scheme = {
+--- a/src/urllib3/connection.py
++++ b/src/urllib3/connection.py
+@@ -59,7 +59,7 @@ port_by_scheme = {
  # and not less than 6 months ago.
  # Example: if Today is 2018-01-01, then RECENT_DATE should be any date on or
  # after 2016-01-01 (today - 2 years) AND before 2017-07-01 (today - 6 months)

++++++ urllib3-1.24.tar.gz -> urllib3-1.24.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/CHANGES.rst 
new/urllib3-1.24.1/CHANGES.rst
--- old/urllib3-1.24/CHANGES.rst        2018-10-16 19:46:06.000000000 +0200
+++ new/urllib3-1.24.1/CHANGES.rst      2018-11-02 20:08:50.000000000 +0100
@@ -1,6 +1,14 @@
 Changes
 =======
 
+1.24.1 (2018-11-02)
+-------------------
+
+* Remove quadratic behavior within ``GzipDecoder.decompress()`` (Issue #1467)
+
+* Restored functionality of `ciphers` parameter for 
`create_urllib3_context()`. (Issue #1462)
+
+
 1.24 (2018-10-16)
 -----------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/PKG-INFO new/urllib3-1.24.1/PKG-INFO
--- old/urllib3-1.24/PKG-INFO   2018-10-16 19:48:33.000000000 +0200
+++ new/urllib3-1.24.1/PKG-INFO 2018-11-02 20:11:08.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: urllib3
-Version: 1.24
+Version: 1.24.1
 Summary: HTTP library with thread-safe connection pooling, file post, and more.
 Home-page: https://urllib3.readthedocs.io/
 Author: Andrey Petrov
@@ -119,6 +119,14 @@
         Changes
         =======
         
+        1.24.1 (2018-11-02)
+        -------------------
+        
+        * Remove quadratic behavior within ``GzipDecoder.decompress()`` (Issue 
#1467)
+        
+        * Restored functionality of `ciphers` parameter for 
`create_urllib3_context()`. (Issue #1462)
+        
+        
         1.24 (2018-10-16)
         -----------------
         
@@ -1089,5 +1097,5 @@
 Classifier: Topic :: Internet :: WWW/HTTP
 Classifier: Topic :: Software Development :: Libraries
 Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
-Provides-Extra: secure
 Provides-Extra: socks
+Provides-Extra: secure
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/dev-requirements.txt 
new/urllib3-1.24.1/dev-requirements.txt
--- old/urllib3-1.24/dev-requirements.txt       2018-10-16 19:45:39.000000000 
+0200
+++ new/urllib3-1.24.1/dev-requirements.txt     2018-11-02 20:07:12.000000000 
+0100
@@ -7,7 +7,8 @@
 PySocks==1.6.8
 pkginfo==1.4.2
 pytest-timeout==1.3.1
-pytest==3.6.4
+pytest==3.8.2
 # https://github.com/GoogleCloudPlatform/python-repo-tools/issues/23
 pylint<2.0;python_version<="2.7"
 gcp-devrel-py-tools==0.0.15
+pluggy==0.8.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/src/urllib3/__init__.py 
new/urllib3-1.24.1/src/urllib3/__init__.py
--- old/urllib3-1.24/src/urllib3/__init__.py    2018-10-16 19:47:52.000000000 
+0200
+++ new/urllib3-1.24.1/src/urllib3/__init__.py  2018-11-02 20:09:02.000000000 
+0100
@@ -27,7 +27,7 @@
 
 __author__ = 'Andrey Petrov ([email protected])'
 __license__ = 'MIT'
-__version__ = '1.24'
+__version__ = '1.24.1'
 
 __all__ = (
     'HTTPConnectionPool',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/src/urllib3/response.py 
new/urllib3-1.24.1/src/urllib3/response.py
--- old/urllib3-1.24/src/urllib3/response.py    2018-10-16 19:45:39.000000000 
+0200
+++ new/urllib3-1.24.1/src/urllib3/response.py  2018-11-02 20:07:12.000000000 
+0100
@@ -69,9 +69,9 @@
         return getattr(self._obj, name)
 
     def decompress(self, data):
-        ret = b''
+        ret = bytearray()
         if self._state == GzipDecoderState.SWALLOW_DATA or not data:
-            return ret
+            return bytes(ret)
         while True:
             try:
                 ret += self._obj.decompress(data)
@@ -81,11 +81,11 @@
                 self._state = GzipDecoderState.SWALLOW_DATA
                 if previous_state == GzipDecoderState.OTHER_MEMBERS:
                     # Allow trailing garbage acceptable in other gzip clients
-                    return ret
+                    return bytes(ret)
                 raise
             data = self._obj.unused_data
             if not data:
-                return ret
+                return bytes(ret)
             self._state = GzipDecoderState.OTHER_MEMBERS
             self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/src/urllib3/util/ssl_.py 
new/urllib3-1.24.1/src/urllib3/util/ssl_.py
--- old/urllib3-1.24/src/urllib3/util/ssl_.py   2018-10-16 19:45:39.000000000 
+0200
+++ new/urllib3-1.24.1/src/urllib3/util/ssl_.py 2018-11-02 20:07:12.000000000 
+0100
@@ -263,6 +263,8 @@
     """
     context = SSLContext(ssl_version or ssl.PROTOCOL_SSLv23)
 
+    context.set_ciphers(ciphers or DEFAULT_CIPHERS)
+
     # Setting the default here, as we may have no ssl module on import
     cert_reqs = ssl.CERT_REQUIRED if cert_reqs is None else cert_reqs
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/src/urllib3.egg-info/PKG-INFO 
new/urllib3-1.24.1/src/urllib3.egg-info/PKG-INFO
--- old/urllib3-1.24/src/urllib3.egg-info/PKG-INFO      2018-10-16 
19:48:32.000000000 +0200
+++ new/urllib3-1.24.1/src/urllib3.egg-info/PKG-INFO    2018-11-02 
20:11:08.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: urllib3
-Version: 1.24
+Version: 1.24.1
 Summary: HTTP library with thread-safe connection pooling, file post, and more.
 Home-page: https://urllib3.readthedocs.io/
 Author: Andrey Petrov
@@ -119,6 +119,14 @@
         Changes
         =======
         
+        1.24.1 (2018-11-02)
+        -------------------
+        
+        * Remove quadratic behavior within ``GzipDecoder.decompress()`` (Issue 
#1467)
+        
+        * Restored functionality of `ciphers` parameter for 
`create_urllib3_context()`. (Issue #1462)
+        
+        
         1.24 (2018-10-16)
         -----------------
         
@@ -1089,5 +1097,5 @@
 Classifier: Topic :: Internet :: WWW/HTTP
 Classifier: Topic :: Software Development :: Libraries
 Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
-Provides-Extra: secure
 Provides-Extra: socks
+Provides-Extra: secure
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/urllib3-1.24/test/test_ssl.py 
new/urllib3-1.24.1/test/test_ssl.py
--- old/urllib3-1.24/test/test_ssl.py   2018-10-16 19:45:39.000000000 +0200
+++ new/urllib3-1.24.1/test/test_ssl.py 2018-11-02 20:07:12.000000000 +0100
@@ -70,3 +70,21 @@
         assert SNIMissingWarning in warnings
     else:
         assert warn.call_count == 0
+
+
[email protected](
+    ["ciphers", "expected_ciphers"],
+    [(None, ssl_.DEFAULT_CIPHERS),
+     ("ECDH+AESGCM:ECDH+CHACHA20", "ECDH+AESGCM:ECDH+CHACHA20")]
+)
+def test_create_urllib3_context_set_ciphers(monkeypatch, ciphers, 
expected_ciphers):
+
+    context = mock.create_autospec(ssl_.SSLContext)
+    context.set_ciphers = mock.Mock()
+    context.options = 0
+    monkeypatch.setattr(ssl_, "SSLContext", lambda *_, **__: context)
+
+    assert ssl_.create_urllib3_context(ciphers=ciphers) is context
+
+    assert context.set_ciphers.call_count == 1
+    assert context.set_ciphers.call_args == mock.call(expected_ciphers)

++++++ urllib3-ssl-default-context.patch ++++++
--- /var/tmp/diff_new_pack.aNJ8S5/_old  2019-01-03 18:04:50.140235963 +0100
+++ /var/tmp/diff_new_pack.aNJ8S5/_new  2019-01-03 18:04:50.140235963 +0100
@@ -1,8 +1,6 @@
-Index: urllib3-1.21.1/src/urllib3/util/ssl_.py
-===================================================================
---- urllib3-1.21.1.orig/src/urllib3/util/ssl_.py
-+++ urllib3-1.21.1/src/urllib3/util/ssl_.py
-@@ -318,6 +318,8 @@ def ssl_wrap_socket(sock, keyfile=None,
+--- a/src/urllib3/util/ssl_.py
++++ b/src/urllib3/util/ssl_.py
+@@ -330,6 +330,8 @@ def ssl_wrap_socket(sock, keyfile=None,
      elif getattr(context, 'load_default_certs', None) is not None:
          # try to load OS default certs; works well on Windows (require 
Python3.4+)
          context.load_default_certs()

++++++ urllib3-test-ssl-drop-sslv3.patch ++++++
--- /var/tmp/diff_new_pack.aNJ8S5/_old  2019-01-03 18:04:50.144235958 +0100
+++ /var/tmp/diff_new_pack.aNJ8S5/_new  2019-01-03 18:04:50.148235955 +0100
@@ -1,8 +1,6 @@
-Index: urllib3-1.21.1/test/with_dummyserver/test_https.py
-===================================================================
---- urllib3-1.21.1.orig/test/with_dummyserver/test_https.py
-+++ urllib3-1.21.1/test/with_dummyserver/test_https.py
-@@ -503,7 +503,7 @@ class TestHTTPS(HTTPSDummyServerTestCase
+--- a/test/with_dummyserver/test_https.py
++++ b/test/with_dummyserver/test_https.py
+@@ -557,7 +557,7 @@ class TestHTTPS(HTTPSDummyServerTestCase
  
  class TestHTTPS_TLSv1(HTTPSDummyServerTestCase):
      certs = DEFAULT_CERTS.copy()


Reply via email to