diff -Nru lazr.restfulclient-0.14.5/NEWS.rst lazr.restfulclient-0.14.6/NEWS.rst --- lazr.restfulclient-0.14.5/NEWS.rst 2022-10-15 13:50:44.000000000 +0000 +++ lazr.restfulclient-0.14.6/NEWS.rst 2024-01-05 14:50:31.000000000 +0000 @@ -2,6 +2,12 @@ NEWS for lazr.restfulclient =========================== +0.14.6 (2024-01-03) +=================== + + - Add ``Read the Docs`` configuration + - Add Python 3.12 compatibility + 0.14.5 (2022-10-15) =================== diff -Nru lazr.restfulclient-0.14.5/PKG-INFO lazr.restfulclient-0.14.6/PKG-INFO --- lazr.restfulclient-0.14.5/PKG-INFO 2022-10-15 13:51:16.700074000 +0000 +++ lazr.restfulclient-0.14.6/PKG-INFO 2024-01-05 17:40:51.321114000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: lazr.restfulclient -Version: 0.14.5 +Version: 0.14.6 Summary: A programmable client library that takes advantage of the commonalities among Home-page: https://launchpad.net/lazr.restfulclient Download-URL: https://launchpad.net/lazr.restfulclient/+download @@ -17,9 +17,26 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 +License-File: COPYING.txt +Requires-Dist: distro +Requires-Dist: httplib2; python_version < "3" +Requires-Dist: httplib2>=0.7.7; python_version >= "3" +Requires-Dist: importlib-metadata; python_version < "3.8" +Requires-Dist: oauthlib +Requires-Dist: setuptools +Requires-Dist: six +Requires-Dist: wadllib>=1.1.4 Provides-Extra: docs +Requires-Dist: Sphinx; extra == "docs" Provides-Extra: test -License-File: COPYING.txt +Requires-Dist: fixtures>=1.3.0; extra == "test" +Requires-Dist: lazr.authentication; extra == "test" +Requires-Dist: lazr.restful>=0.11.0; extra == "test" +Requires-Dist: mock; python_version < "3" and extra == "test" +Requires-Dist: oauth; extra == "test" +Requires-Dist: testtools; extra == "test" +Requires-Dist: wsgi_intercept; extra == "test" +Requires-Dist: zope.testrunner; extra == "test" .. This file is part of lazr.restfulclient. @@ -51,6 +68,12 @@ NEWS for lazr.restfulclient =========================== +0.14.6 (2024-01-03) +=================== + + - Add ``Read the Docs`` configuration + - Add Python 3.12 compatibility + 0.14.5 (2022-10-15) =================== diff -Nru lazr.restfulclient-0.14.5/debian/changelog lazr.restfulclient-0.14.6/debian/changelog --- lazr.restfulclient-0.14.5/debian/changelog 2023-12-07 14:21:22.000000000 +0000 +++ lazr.restfulclient-0.14.6/debian/changelog 2024-01-10 01:04:33.000000000 +0000 @@ -1,3 +1,12 @@ +lazr.restfulclient (0.14.6-1) unstable; urgency=medium + + * Team Upload + * New upstream version 0.14.6 + * remove Python 3.12 patch applied upstream + * add a patch to remove usage of python3-six + + -- Alexandre Detiste Wed, 10 Jan 2024 02:04:33 +0100 + lazr.restfulclient (0.14.5-2) unstable; urgency=medium * Patch: Python 3.12 support. (LP: #2045169) diff -Nru lazr.restfulclient-0.14.5/debian/patches/python3.12 lazr.restfulclient-0.14.6/debian/patches/python3.12 --- lazr.restfulclient-0.14.5/debian/patches/python3.12 2023-12-07 14:21:22.000000000 +0000 +++ lazr.restfulclient-0.14.6/debian/patches/python3.12 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -From: Mateus Rodrigues de Morais -Date: Wed, 6 Dec 2023 11:45:46 -0300 -Subject: Test for read_file before falling back to readfp using hasattr. - -Since the fallback parameter in getattr() isn't lazily loaded, we get -an AttributeError when readfp() isn't available (e.g. Python 3.12). - -With hasattr(), we are able to check for the presence of read_file(). -If not there, we safely fallback to readfp() instead. - -Forwarded: https://code.launchpad.net/~mateus-morais/lazr.restfulclient/+git/lazr.restfulclient/+merge/456978 ---- - src/lazr/restfulclient/authorize/oauth.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/src/lazr/restfulclient/authorize/oauth.py b/src/lazr/restfulclient/authorize/oauth.py -index 09abf0b..c8dfc6b 100644 ---- a/src/lazr/restfulclient/authorize/oauth.py -+++ b/src/lazr/restfulclient/authorize/oauth.py -@@ -191,7 +191,10 @@ class OAuthAuthorizer(HttpAuthorizer): - """ - # Attempt to load the access token from the file. - parser = SafeConfigParser() -- reader = getattr(parser, "read_file", parser.readfp) -+ if hasattr(parser, "read_file"): -+ reader = parser.read_file -+ else: -+ reader = parser.readfp - reader(readable_file) - # Check the version number and extract the access token and - # secret. Then convert these to the appropriate instances. diff -Nru lazr.restfulclient-0.14.5/debian/patches/remove-six lazr.restfulclient-0.14.6/debian/patches/remove-six --- lazr.restfulclient-0.14.5/debian/patches/remove-six 1970-01-01 00:00:00.000000000 +0000 +++ lazr.restfulclient-0.14.6/debian/patches/remove-six 2024-01-10 00:56:38.000000000 +0000 @@ -0,0 +1,45 @@ +From: Alexandre Detiste +Subject: remove usage of python3-six + +--- a/setup.py ++++ b/setup.py +@@ -72,7 +72,6 @@ + 'importlib-metadata; python_version < "3.8"', + "oauthlib", + "setuptools", +- "six", + "wadllib>=1.1.4", + ], + url="https://launchpad.net/lazr.restfulclient", +--- a/src/lazr/restfulclient/authorize/oauth.py ++++ b/src/lazr/restfulclient/authorize/oauth.py +@@ -30,9 +30,8 @@ + import socket + import stat + +-import six + from oauthlib import oauth1 +-from six.moves.urllib.parse import parse_qs, urlencode ++from urllib.parse import parse_qs, urlencode + + from lazr.restfulclient.authorize import HttpAuthorizer + from lazr.restfulclient.errors import CredentialsFileError +@@ -95,7 +94,7 @@ + return cls(key, secret) + + +-class TruthyString(six.text_type): ++class TruthyString(str): + """A Unicode string which is always true.""" + + def __bool__(self): +@@ -296,9 +295,4 @@ + client.resource_owner_key = TruthyString(client.resource_owner_key) + _, signed_headers, _ = client.sign(absolute_uri) + for key, value in signed_headers.items(): +- # client.sign returns Unicode headers; convert these to native +- # strings. +- if six.PY2: +- key = key.encode("UTF-8") +- value = value.encode("UTF-8") + headers[key] = value diff -Nru lazr.restfulclient-0.14.5/debian/patches/series lazr.restfulclient-0.14.6/debian/patches/series --- lazr.restfulclient-0.14.5/debian/patches/series 2023-12-07 14:21:22.000000000 +0000 +++ lazr.restfulclient-0.14.6/debian/patches/series 2024-01-10 00:54:30.000000000 +0000 @@ -1 +1 @@ -python3.12 +remove-six diff -Nru lazr.restfulclient-0.14.5/setup.py lazr.restfulclient-0.14.6/setup.py --- lazr.restfulclient-0.14.5/setup.py 2022-10-15 13:50:50.000000000 +0000 +++ lazr.restfulclient-0.14.6/setup.py 2024-01-05 14:50:31.000000000 +0000 @@ -52,7 +52,7 @@ setup( name="lazr.restfulclient", - version="0.14.5", + version="0.14.6", namespace_packages=["lazr"], packages=find_packages("src"), package_dir={"": "src"}, diff -Nru lazr.restfulclient-0.14.5/src/lazr/restfulclient/authorize/oauth.py lazr.restfulclient-0.14.6/src/lazr/restfulclient/authorize/oauth.py --- lazr.restfulclient-0.14.5/src/lazr/restfulclient/authorize/oauth.py 2021-11-17 10:38:41.000000000 +0000 +++ lazr.restfulclient-0.14.6/src/lazr/restfulclient/authorize/oauth.py 2024-01-02 12:36:02.000000000 +0000 @@ -191,7 +191,10 @@ """ # Attempt to load the access token from the file. parser = SafeConfigParser() - reader = getattr(parser, "read_file", parser.readfp) + if hasattr(parser, "read_file"): + reader = parser.read_file + else: + reader = parser.readfp reader(readable_file) # Check the version number and extract the access token and # secret. Then convert these to the appropriate instances. diff -Nru lazr.restfulclient-0.14.5/src/lazr.restfulclient.egg-info/PKG-INFO lazr.restfulclient-0.14.6/src/lazr.restfulclient.egg-info/PKG-INFO --- lazr.restfulclient-0.14.5/src/lazr.restfulclient.egg-info/PKG-INFO 2022-10-15 13:51:16.000000000 +0000 +++ lazr.restfulclient-0.14.6/src/lazr.restfulclient.egg-info/PKG-INFO 2024-01-05 17:40:51.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: lazr.restfulclient -Version: 0.14.5 +Version: 0.14.6 Summary: A programmable client library that takes advantage of the commonalities among Home-page: https://launchpad.net/lazr.restfulclient Download-URL: https://launchpad.net/lazr.restfulclient/+download @@ -17,9 +17,26 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 +License-File: COPYING.txt +Requires-Dist: distro +Requires-Dist: httplib2; python_version < "3" +Requires-Dist: httplib2>=0.7.7; python_version >= "3" +Requires-Dist: importlib-metadata; python_version < "3.8" +Requires-Dist: oauthlib +Requires-Dist: setuptools +Requires-Dist: six +Requires-Dist: wadllib>=1.1.4 Provides-Extra: docs +Requires-Dist: Sphinx; extra == "docs" Provides-Extra: test -License-File: COPYING.txt +Requires-Dist: fixtures>=1.3.0; extra == "test" +Requires-Dist: lazr.authentication; extra == "test" +Requires-Dist: lazr.restful>=0.11.0; extra == "test" +Requires-Dist: mock; python_version < "3" and extra == "test" +Requires-Dist: oauth; extra == "test" +Requires-Dist: testtools; extra == "test" +Requires-Dist: wsgi_intercept; extra == "test" +Requires-Dist: zope.testrunner; extra == "test" .. This file is part of lazr.restfulclient. @@ -51,6 +68,12 @@ NEWS for lazr.restfulclient =========================== +0.14.6 (2024-01-03) +=================== + + - Add ``Read the Docs`` configuration + - Add Python 3.12 compatibility + 0.14.5 (2022-10-15) ===================