Hello community,

here is the log from the commit of package python3-httplib2 for 
openSUSE:Factory checked in at 2015-04-13 20:30:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-httplib2 (Old)
 and      /work/SRC/openSUSE:Factory/.python3-httplib2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-httplib2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-httplib2/python3-httplib2.changes        
2015-01-26 16:47:14.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-httplib2.new/python3-httplib2.changes   
2015-04-13 20:30:21.000000000 +0200
@@ -1,0 +2,9 @@
+Sun Apr 12 05:22:35 UTC 2015 - [email protected]
+
+- update to version 0.9.1:
+  * #296: There was a problem with headers when a binary string is
+    passed (like b'Authorization').
+  * #276: Default to doing DNS resolution through a proxy server if
+     present.
+
+-------------------------------------------------------------------

Old:
----
  httplib2-0.9.tar.gz

New:
----
  httplib2-0.9.1.tar.gz

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

Other differences:
------------------
++++++ python3-httplib2.spec ++++++
--- /var/tmp/diff_new_pack.ltuKqd/_old  2015-04-13 20:30:22.000000000 +0200
+++ /var/tmp/diff_new_pack.ltuKqd/_new  2015-04-13 20:30:22.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-httplib2
 #
-# Copyright (c) 2015 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,7 +17,7 @@
 
 
 Name:           python3-httplib2
-Version:        0.9
+Version:        0.9.1
 Release:        0
 Url:            https://github.com/jcgregorio/httplib2
 Summary:        A Python HTTP client library

++++++ httplib2-0.9.tar.gz -> httplib2-0.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/PKG-INFO new/httplib2-0.9.1/PKG-INFO
--- old/httplib2-0.9/PKG-INFO   2014-04-14 15:07:38.000000000 +0200
+++ new/httplib2-0.9.1/PKG-INFO 2015-04-11 15:56:57.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: httplib2
-Version: 0.9
+Version: 0.9.1
 Summary: A comprehensive HTTP client library.
-Home-page: http://code.google.com/p/httplib2/
+Home-page: https://github.com/jcgregorio/httplib2
 Author: Joe Gregorio
 Author-email: [email protected]
 License: MIT
-Download-URL: http://httplib2.googlecode.com/files/httplib2-0.9.tar.gz
 Description: 
         
         A comprehensive HTTP client library, ``httplib2`` supports many 
features left out of other HTTP libraries.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/python2/httplib2/__init__.py 
new/httplib2-0.9.1/python2/httplib2/__init__.py
--- old/httplib2-0.9/python2/httplib2/__init__.py       2014-04-14 
14:52:57.000000000 +0200
+++ new/httplib2-0.9.1/python2/httplib2/__init__.py     2015-04-11 
15:56:56.000000000 +0200
@@ -22,7 +22,7 @@
                     "Sam Ruby",
                     "Louis Nyffenegger"]
 __license__ = "MIT"
-__version__ = "0.9"
+__version__ = "0.9.1"
 
 import re
 import sys
@@ -749,12 +749,27 @@
     bypass_hosts = ()
 
     def __init__(self, proxy_type, proxy_host, proxy_port,
-                 proxy_rdns=None, proxy_user=None, proxy_pass=None):
-        """The parameter proxy_type must be set to one of socks.PROXY_TYPE_XXX
-        constants. For example:
+                 proxy_rdns=True, proxy_user=None, proxy_pass=None):
+        """
+        Args:
+          proxy_type: The type of proxy server.  This must be set to one of
+          socks.PROXY_TYPE_XXX constants.  For example:
+
+            p = ProxyInfo(proxy_type=socks.PROXY_TYPE_HTTP,
+              proxy_host='localhost', proxy_port=8000)
+
+          proxy_host: The hostname or IP address of the proxy server.
+
+          proxy_port: The port that the proxy server is running on.
 
-        p = ProxyInfo(proxy_type=socks.PROXY_TYPE_HTTP,
-            proxy_host='localhost', proxy_port=8000)
+          proxy_rdns: If True (default), DNS queries will not be performed
+          locally, and instead, handed to the proxy to resolve.  This is useful
+          if the network does not allow resolution of non-local names.  In
+          httplib2 0.9 and earlier, this defaulted to False.
+
+          proxy_user: The username used to authenticate with the proxy server.
+
+          proxy_pass: The password used to authenticate with the proxy server.
         """
         self.proxy_type = proxy_type
         self.proxy_host = proxy_host
@@ -871,12 +886,12 @@
         if self.proxy_info and self.proxy_info.isgood():
             use_proxy = True
             proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, 
proxy_pass = self.proxy_info.astuple()
-        else:
-            use_proxy = False
-        if use_proxy and proxy_rdns:
+
             host = proxy_host
             port = proxy_port
         else:
+            use_proxy = False
+
             host = self.host
             port = self.port
 
@@ -993,12 +1008,12 @@
         if self.proxy_info and self.proxy_info.isgood():
             use_proxy = True
             proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, 
proxy_pass = self.proxy_info.astuple()
-        else:
-            use_proxy = False
-        if use_proxy and proxy_rdns:
+
             host = proxy_host
             port = proxy_port
         else:
+            use_proxy = False
+
             host = self.host
             port = self.port
 
@@ -1481,7 +1496,7 @@
             info = email.Message.Message()
             cached_value = None
             if self.cache:
-                cachekey = defrag_uri
+                cachekey = defrag_uri.encode('utf-8')
                 cached_value = self.cache.get(cachekey)
                 if cached_value:
                     # info = email.message_from_string(cached_value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/python2/httplib2.egg-info/PKG-INFO 
new/httplib2-0.9.1/python2/httplib2.egg-info/PKG-INFO
--- old/httplib2-0.9/python2/httplib2.egg-info/PKG-INFO 2014-04-14 
15:07:38.000000000 +0200
+++ new/httplib2-0.9.1/python2/httplib2.egg-info/PKG-INFO       2015-04-11 
15:56:56.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: httplib2
-Version: 0.9
+Version: 0.9.1
 Summary: A comprehensive HTTP client library.
-Home-page: http://code.google.com/p/httplib2/
+Home-page: https://github.com/jcgregorio/httplib2
 Author: Joe Gregorio
 Author-email: [email protected]
 License: MIT
-Download-URL: http://httplib2.googlecode.com/files/httplib2-0.9.tar.gz
 Description: 
         
         A comprehensive HTTP client library, ``httplib2`` supports many 
features left out of other HTTP libraries.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/python3/httplib2/__init__.py 
new/httplib2-0.9.1/python3/httplib2/__init__.py
--- old/httplib2-0.9/python3/httplib2/__init__.py       2014-04-14 
14:52:57.000000000 +0200
+++ new/httplib2-0.9.1/python3/httplib2/__init__.py     2015-04-11 
15:56:56.000000000 +0200
@@ -24,7 +24,7 @@
     "Louis Nyffenegger",
     "Mark Pilgrim"]
 __license__ = "MIT"
-__version__ = "0.9"
+__version__ = "0.9.1"
 
 import re
 import sys
@@ -192,8 +192,13 @@
 
 NORMALIZE_SPACE = re.compile(r'(?:\r\n)?[ \t]+')
 def _normalize_headers(headers):
-    return dict([ (key.lower(), NORMALIZE_SPACE.sub(value, ' ').strip())  for 
(key, value) in headers.items()])
+    return dict([ (_convert_byte_str(key).lower(), 
NORMALIZE_SPACE.sub(_convert_byte_str(value), ' ').strip())  for (key, value) 
in headers.items()])
 
+def _convert_byte_str(s):
+    if not isinstance(s, str):
+        return str(s, 'utf-8')
+    return s
+    
 def _parse_cache_control(headers):
     retval = {}
     if 'cache-control' in headers:
@@ -714,11 +719,27 @@
 
 class ProxyInfo(object):
   """Collect information required to use a proxy."""
-  def __init__(self, proxy_type, proxy_host, proxy_port, proxy_rdns=None, 
proxy_user=None, proxy_pass=None):
-      """The parameter proxy_type must be set to one of socks.PROXY_TYPE_XXX
-      constants. For example:
+  def __init__(self, proxy_type, proxy_host, proxy_port, proxy_rdns=True, 
proxy_user=None, proxy_pass=None):
+      """
+        Args:
+          proxy_type: The type of proxy server.  This must be set to one of
+          socks.PROXY_TYPE_XXX constants.  For example:
+
+            p = ProxyInfo(proxy_type=socks.PROXY_TYPE_HTTP,
+              proxy_host='localhost', proxy_port=8000)
+
+          proxy_host: The hostname or IP address of the proxy server.
+
+          proxy_port: The port that the proxy server is running on.
+
+          proxy_rdns: If True (default), DNS queries will not be performed
+          locally, and instead, handed to the proxy to resolve.  This is useful
+          if the network does not allow resolution of non-local names.  In
+          httplib2 0.9 and earlier, this defaulted to False.
+
+          proxy_user: The username used to authenticate with the proxy server.
 
-p = ProxyInfo(proxy_type=socks.PROXY_TYPE_HTTP, proxy_host='localhost', 
proxy_port=8000)
+          proxy_pass: The password used to authenticate with the proxy server.
       """
       self.proxy_type, self.proxy_host, self.proxy_port, self.proxy_rdns, 
self.proxy_user, self.proxy_pass = proxy_type, proxy_host, proxy_port, 
proxy_rdns, proxy_user, proxy_pass
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/python3/httplib2test.py 
new/httplib2-0.9.1/python3/httplib2test.py
--- old/httplib2-0.9/python3/httplib2test.py    2014-04-14 14:52:57.000000000 
+0200
+++ new/httplib2-0.9.1/python3/httplib2test.py  2015-04-11 15:56:56.000000000 
+0200
@@ -1235,6 +1235,12 @@
         self.assertTrue('cache-control' in h)
         self.assertTrue('other' in h)
         self.assertEqual('Stuff', h['other'])
+    
+    def testConvertByteStr(self):
+        with self.assertRaises(TypeError):
+            httplib2._convert_byte_str(4)
+        self.assertEqual('Hello World', httplib2._convert_byte_str(b'Hello 
World'))
+        self.assertEqual('Bye World', httplib2._convert_byte_str('Bye World'))
 
     def testExpirationModelTransparent(self):
         # Test that no-cache makes our request TRANSPARENT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/httplib2-0.9/setup.py new/httplib2-0.9.1/setup.py
--- old/httplib2-0.9/setup.py   2014-04-14 14:52:57.000000000 +0200
+++ new/httplib2-0.9.1/setup.py 2015-04-11 15:56:56.000000000 +0200
@@ -5,14 +5,13 @@
 import sys
 
 pkgdir = {'': 'python%s' % sys.version_info[0]}
-VERSION = '0.9'
+VERSION = '0.9.1'
 
 setup(name='httplib2',
         version=VERSION,
         author='Joe Gregorio',
         author_email='[email protected]',
-        url='http://code.google.com/p/httplib2/',
-        download_url='http://httplib2.googlecode.com/files/httplib2-%s.tar.gz' 
% VERSION,
+        url='https://github.com/jcgregorio/httplib2',
         description='A comprehensive HTTP client library.',
         license='MIT',
         long_description="""


Reply via email to