Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-google-auth-httplib2 for 
openSUSE:Factory checked in at 2023-09-20 13:27:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-auth-httplib2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-google-auth-httplib2.new.16627 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-google-auth-httplib2"

Wed Sep 20 13:27:03 2023 rev:5 rq:1112018 version:0.1.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-google-auth-httplib2/python-google-auth-httplib2.changes
  2023-07-03 17:42:57.340778722 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-google-auth-httplib2.new.16627/python-google-auth-httplib2.changes
       2023-09-20 13:28:54.138027841 +0200
@@ -1,0 +2,8 @@
+Mon Sep 18 14:42:19 UTC 2023 - [email protected]
+
+- version update to 0.1.1
+  * remove six, update python versions
+- modified patches
+  % python-google-auth-httplib2-no-mock.patch (refreshed)
+
+-------------------------------------------------------------------

Old:
----
  google-auth-httplib2-0.1.0.tar.gz

New:
----
  google-auth-httplib2-0.1.1.tar.gz

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

Other differences:
------------------
++++++ python-google-auth-httplib2.spec ++++++
--- /var/tmp/diff_new_pack.WMnjAl/_old  2023-09-20 13:28:55.442074560 +0200
+++ /var/tmp/diff_new_pack.WMnjAl/_new  2023-09-20 13:28:55.446074702 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-google-auth-httplib2
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-google-auth-httplib2
-Version:        0.1.0
+Version:        0.1.1
 Release:        0
 Summary:        Google Authentication Library: httplib2 transport
 License:        Apache-2.0
@@ -33,12 +33,10 @@
 BuildRequires:  %{python_module pytest-localserver}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-google-auth
 Requires:       python-httplib2 >= 0.15.0
-Requires:       python-six
 BuildArch:      noarch
 %python_subpackages
 
@@ -46,8 +44,7 @@
 This library provides an `httplib2`_ transport for `google-auth`_.
 
 %prep
-%setup -q -n google-auth-httplib2-%{version}
-%patch0 -p1
+%autosetup -p1 -n google-auth-httplib2-%{version}
 
 %build
 %python_build
@@ -62,5 +59,6 @@
 %files %{python_files}
 %license LICENSE
 %doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/__pycache__
+%{python_sitelib}/google_auth_httplib2*
 

++++++ google-auth-httplib2-0.1.0.tar.gz -> google-auth-httplib2-0.1.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-auth-httplib2-0.1.0/PKG-INFO 
new/google-auth-httplib2-0.1.1/PKG-INFO
--- old/google-auth-httplib2-0.1.0/PKG-INFO     2021-03-04 19:27:18.528247000 
+0100
+++ new/google-auth-httplib2-0.1.1/PKG-INFO     2023-09-11 21:16:43.542072800 
+0200
@@ -1,54 +1,19 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: google-auth-httplib2
-Version: 0.1.0
+Version: 0.1.1
 Summary: Google Authentication Library: httplib2 transport
 Home-page: 
https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2
 Author: Google Cloud Platform
 Author-email: [email protected]
 License: Apache 2.0
-Description: ``httplib2`` Transport for Google Auth
-        ======================================
-        
-        |pypi|
-        
-        This library provides an `httplib2`_ transport for `google-auth`_.
-        
-        .. note:: ``httplib`` has lots of problems such as lack of threadsafety
-            and insecure usage of TLS. Using it is highly discouraged. This
-            library is intended to help existing users of ``oauth2client`` 
migrate to
-            ``google-auth``.
-        
-        .. |pypi| image:: 
https://img.shields.io/pypi/v/google-auth-httplib2.svg
-           :target: https://pypi.python.org/pypi/google-auth-httplib2
-        
-        .. _httplib2: https://github.com/httplib2/httplib2
-        .. _google-auth: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/
-        
-        Installing
-        ----------
-        
-        You can install using `pip`_::
-        
-            $ pip install google-auth-httplib2
-        
-        .. _pip: https://pip.pypa.io/en/stable/
-        
-        License
-        -------
-        
-        Apache 2.0 - See `the LICENSE`_ for more information.
-        
-        .. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/master/LICENSE
-        
 Keywords: google auth oauth client
-Platform: UNKNOWN
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Development Status :: 3 - Alpha
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: Apache Software License
@@ -57,3 +22,38 @@
 Classifier: Operating System :: MacOS :: MacOS X
 Classifier: Operating System :: OS Independent
 Classifier: Topic :: Internet :: WWW/HTTP
+License-File: LICENSE
+
+``httplib2`` Transport for Google Auth
+======================================
+
+|pypi|
+
+This library provides an `httplib2`_ transport for `google-auth`_.
+
+.. note:: ``httplib`` has lots of problems such as lack of threadsafety
+    and insecure usage of TLS. Using it is highly discouraged. This
+    library is intended to help existing users of ``oauth2client`` migrate to
+    ``google-auth``.
+
+.. |pypi| image:: https://img.shields.io/pypi/v/google-auth-httplib2.svg
+   :target: https://pypi.python.org/pypi/google-auth-httplib2
+
+.. _httplib2: https://github.com/httplib2/httplib2
+.. _google-auth: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/
+
+Installing
+----------
+
+You can install using `pip`_::
+
+    $ pip install google-auth-httplib2
+
+.. _pip: https://pip.pypa.io/en/stable/
+
+License
+-------
+
+Apache 2.0 - See `the LICENSE`_ for more information.
+
+.. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/main/LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-auth-httplib2-0.1.0/README.rst 
new/google-auth-httplib2-0.1.1/README.rst
--- old/google-auth-httplib2-0.1.0/README.rst   2021-03-04 19:24:25.000000000 
+0100
+++ new/google-auth-httplib2-0.1.1/README.rst   2023-09-11 21:14:11.000000000 
+0200
@@ -30,4 +30,4 @@
 
 Apache 2.0 - See `the LICENSE`_ for more information.
 
-.. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/master/LICENSE
+.. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/main/LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-auth-httplib2-0.1.0/google_auth_httplib2.egg-info/PKG-INFO 
new/google-auth-httplib2-0.1.1/google_auth_httplib2.egg-info/PKG-INFO
--- old/google-auth-httplib2-0.1.0/google_auth_httplib2.egg-info/PKG-INFO       
2021-03-04 19:27:18.000000000 +0100
+++ new/google-auth-httplib2-0.1.1/google_auth_httplib2.egg-info/PKG-INFO       
2023-09-11 21:16:43.000000000 +0200
@@ -1,54 +1,19 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: google-auth-httplib2
-Version: 0.1.0
+Version: 0.1.1
 Summary: Google Authentication Library: httplib2 transport
 Home-page: 
https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2
 Author: Google Cloud Platform
 Author-email: [email protected]
 License: Apache 2.0
-Description: ``httplib2`` Transport for Google Auth
-        ======================================
-        
-        |pypi|
-        
-        This library provides an `httplib2`_ transport for `google-auth`_.
-        
-        .. note:: ``httplib`` has lots of problems such as lack of threadsafety
-            and insecure usage of TLS. Using it is highly discouraged. This
-            library is intended to help existing users of ``oauth2client`` 
migrate to
-            ``google-auth``.
-        
-        .. |pypi| image:: 
https://img.shields.io/pypi/v/google-auth-httplib2.svg
-           :target: https://pypi.python.org/pypi/google-auth-httplib2
-        
-        .. _httplib2: https://github.com/httplib2/httplib2
-        .. _google-auth: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/
-        
-        Installing
-        ----------
-        
-        You can install using `pip`_::
-        
-            $ pip install google-auth-httplib2
-        
-        .. _pip: https://pip.pypa.io/en/stable/
-        
-        License
-        -------
-        
-        Apache 2.0 - See `the LICENSE`_ for more information.
-        
-        .. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/master/LICENSE
-        
 Keywords: google auth oauth client
-Platform: UNKNOWN
-Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
 Classifier: Development Status :: 3 - Alpha
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: Apache Software License
@@ -57,3 +22,38 @@
 Classifier: Operating System :: MacOS :: MacOS X
 Classifier: Operating System :: OS Independent
 Classifier: Topic :: Internet :: WWW/HTTP
+License-File: LICENSE
+
+``httplib2`` Transport for Google Auth
+======================================
+
+|pypi|
+
+This library provides an `httplib2`_ transport for `google-auth`_.
+
+.. note:: ``httplib`` has lots of problems such as lack of threadsafety
+    and insecure usage of TLS. Using it is highly discouraged. This
+    library is intended to help existing users of ``oauth2client`` migrate to
+    ``google-auth``.
+
+.. |pypi| image:: https://img.shields.io/pypi/v/google-auth-httplib2.svg
+   :target: https://pypi.python.org/pypi/google-auth-httplib2
+
+.. _httplib2: https://github.com/httplib2/httplib2
+.. _google-auth: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/
+
+Installing
+----------
+
+You can install using `pip`_::
+
+    $ pip install google-auth-httplib2
+
+.. _pip: https://pip.pypa.io/en/stable/
+
+License
+-------
+
+Apache 2.0 - See `the LICENSE`_ for more information.
+
+.. _the LICENSE: 
https://github.com/GoogleCloudPlatform/google-auth-library-python/blob/main/LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-auth-httplib2-0.1.0/google_auth_httplib2.egg-info/requires.txt 
new/google-auth-httplib2-0.1.1/google_auth_httplib2.egg-info/requires.txt
--- old/google-auth-httplib2-0.1.0/google_auth_httplib2.egg-info/requires.txt   
2021-03-04 19:27:18.000000000 +0100
+++ new/google-auth-httplib2-0.1.1/google_auth_httplib2.egg-info/requires.txt   
2023-09-11 21:16:43.000000000 +0200
@@ -1,3 +1,2 @@
 google-auth
-httplib2>=0.15.0
-six
+httplib2>=0.19.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-auth-httplib2-0.1.0/google_auth_httplib2.py 
new/google-auth-httplib2-0.1.1/google_auth_httplib2.py
--- old/google-auth-httplib2-0.1.0/google_auth_httplib2.py      2021-03-04 
19:24:25.000000000 +0100
+++ new/google-auth-httplib2-0.1.1/google_auth_httplib2.py      2023-09-11 
21:14:11.000000000 +0200
@@ -16,12 +16,12 @@
 
 from __future__ import absolute_import
 
+import http.client
 import logging
 
 from google.auth import exceptions
 from google.auth import transport
 import httplib2
-from six.moves import http_client
 
 
 _LOGGER = logging.getLogger(__name__)
@@ -122,7 +122,7 @@
             return _Response(response, data)
         # httplib2 should catch the lower http error, this is a bug and
         # needs to be fixed there.  Catch the error for the meanwhile.
-        except (httplib2.HttpLib2Error, http_client.HTTPException) as exc:
+        except (httplib2.HttpLib2Error, http.client.HTTPException) as exc:
             raise exceptions.TransportError(exc)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-auth-httplib2-0.1.0/setup.py 
new/google-auth-httplib2-0.1.1/setup.py
--- old/google-auth-httplib2-0.1.0/setup.py     2021-03-04 19:24:25.000000000 
+0100
+++ new/google-auth-httplib2-0.1.1/setup.py     2023-09-11 21:14:11.000000000 
+0200
@@ -16,9 +16,9 @@
 
 from setuptools import setup
 
-version = "0.1.0"
+version = "0.1.1"
 
-DEPENDENCIES = ["google-auth", "httplib2 >= 0.15.0", "six"]
+DEPENDENCIES = ["google-auth", "httplib2 >= 0.19.0"]
 
 
 with io.open("README.rst", "r") as fh:
@@ -38,13 +38,13 @@
     license="Apache 2.0",
     keywords="google auth oauth client",
     classifiers=[
-        "Programming Language :: Python :: 2",
-        "Programming Language :: Python :: 2.7",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
+        "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
         "Development Status :: 3 - Alpha",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: Apache Software License",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-auth-httplib2-0.1.0/tests/compliance.py 
new/google-auth-httplib2-0.1.1/tests/compliance.py
--- old/google-auth-httplib2-0.1.0/tests/compliance.py  2021-03-04 
19:24:25.000000000 +0100
+++ new/google-auth-httplib2-0.1.1/tests/compliance.py  2023-09-11 
21:14:11.000000000 +0200
@@ -12,11 +12,12 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import http.client
+
 import flask
 from google.auth import exceptions
 import pytest
 from pytest_localserver.http import WSGIServer
-from six.moves import http_client
 
 # .invalid will never resolve, see https://tools.ietf.org/html/rfc2606
 NXDOMAIN = "test.invalid"
@@ -40,11 +41,11 @@
         def index():
             header_value = flask.request.headers.get("x-test-header", "value")
             headers = {"X-Test-Header": header_value}
-            return "Basic Content", http_client.OK, headers
+            return "Basic Content", http.client.OK, headers
 
         @app.route("/server_error")
         def server_error():
-            return "Error", http_client.INTERNAL_SERVER_ERROR
+            return "Error", http.client.INTERNAL_SERVER_ERROR
 
         # pylint: enable=unused-variable
 
@@ -57,7 +58,7 @@
         request = self.make_request()
         response = request(url=server.url + "/basic", method="GET")
 
-        assert response.status == http_client.OK
+        assert response.status == http.client.OK
         assert response.headers["x-test-header"] == "value"
         assert response.data == b"Basic Content"
 
@@ -65,7 +66,7 @@
         request = self.make_request()
         response = request(url=server.url + "/basic", method="GET", timeout=2)
 
-        assert response.status == http_client.OK
+        assert response.status == http.client.OK
         assert response.headers["x-test-header"] == "value"
         assert response.data == b"Basic Content"
 
@@ -77,7 +78,7 @@
             headers={"x-test-header": "hello world"},
         )
 
-        assert response.status == http_client.OK
+        assert response.status == http.client.OK
         assert response.headers["x-test-header"] == "hello world"
         assert response.data == b"Basic Content"
 
@@ -85,7 +86,7 @@
         request = self.make_request()
         response = request(url=server.url + "/server_error", method="GET")
 
-        assert response.status == http_client.INTERNAL_SERVER_ERROR
+        assert response.status == http.client.INTERNAL_SERVER_ERROR
         assert response.data == b"Error"
 
     def test_connection_error(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-auth-httplib2-0.1.0/tests/test_google_auth_httplib2.py 
new/google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py
--- old/google-auth-httplib2-0.1.0/tests/test_google_auth_httplib2.py   
2021-03-04 19:24:25.000000000 +0100
+++ new/google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py   
2023-09-11 21:14:11.000000000 +0200
@@ -12,10 +12,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import http.client
+import io
+
 import httplib2
 import mock
-import six
-from six.moves import http_client
 
 import google_auth_httplib2
 from tests import compliance
@@ -44,7 +45,7 @@
 
 
 class MockResponse(object):
-    def __init__(self, status=http_client.OK, data=b""):
+    def __init__(self, status=http.client.OK, data=b""):
         self.status = status
         self.data = data
 
@@ -180,10 +181,10 @@
 
     def test_request_refresh(self):
         mock_credentials = mock.Mock(wraps=MockCredentials())
-        mock_final_response = MockResponse(status=http_client.OK)
+        mock_final_response = MockResponse(status=http.client.OK)
         # First request will 401, second request will succeed.
         mock_http = MockHttp(
-            [MockResponse(status=http_client.UNAUTHORIZED), 
mock_final_response]
+            [MockResponse(status=http.client.UNAUTHORIZED), 
mock_final_response]
         )
 
         authed_http = google_auth_httplib2.AuthorizedHttp(
@@ -220,10 +221,10 @@
         mock_response = MockResponse()
         # Refresh is needed to cover the resetting of the body position.
         mock_http = MockHttp(
-            [MockResponse(status=http_client.UNAUTHORIZED), mock_response]
+            [MockResponse(status=http.client.UNAUTHORIZED), mock_response]
         )
 
-        body = six.StringIO("body")
+        body = io.StringIO("body")
         body.seek(1)
 
         authed_http = google_auth_httplib2.AuthorizedHttp(

++++++ python-google-auth-httplib2-no-mock.patch ++++++
--- /var/tmp/diff_new_pack.WMnjAl/_old  2023-09-20 13:28:55.506076853 +0200
+++ /var/tmp/diff_new_pack.WMnjAl/_new  2023-09-20 13:28:55.510076995 +0200
@@ -1,13 +1,14 @@
-diff -upr google-auth-httplib2-0.1.0.orig/tests/test_google_auth_httplib2.py 
google-auth-httplib2-0.1.0/tests/test_google_auth_httplib2.py
---- google-auth-httplib2-0.1.0.orig/tests/test_google_auth_httplib2.py 
2022-06-08 13:33:16.841483803 +0200
-+++ google-auth-httplib2-0.1.0/tests/test_google_auth_httplib2.py      
2022-06-08 13:33:16.845483827 +0200
-@@ -13,7 +13,7 @@
- # limitations under the License.
+Index: google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py
+===================================================================
+--- google-auth-httplib2-0.1.1.orig/tests/test_google_auth_httplib2.py
++++ google-auth-httplib2-0.1.1/tests/test_google_auth_httplib2.py
+@@ -16,7 +16,7 @@ import http.client
+ import io
  
  import httplib2
 -import mock
 +from unittest import mock
- import six
- from six.moves import http_client
  
+ import google_auth_httplib2
+ from tests import compliance
 

Reply via email to