Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-acme for openSUSE:Factory checked in at 2021-08-11 11:47:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-acme (Old) and /work/SRC/openSUSE:Factory/.python-acme.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-acme" Wed Aug 11 11:47:33 2021 rev:54 rq:911356 version:1.18.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-acme/python-acme.changes 2021-07-30 23:22:45.423598155 +0200 +++ /work/SRC/openSUSE:Factory/.python-acme.new.1899/python-acme.changes 2021-08-11 11:49:27.129585202 +0200 @@ -1,0 +2,8 @@ +Tue Aug 10 13:21:44 UTC 2021 - Danilo Spinella <[email protected]> + +- update to version 1.18.0 + * sync with main certbot package + * the .client.Client and .client.BackwardsCompatibleClientV2 classes + are now deprecated in favor of .client.ClientV2 + +------------------------------------------------------------------- Old: ---- acme-1.17.0.tar.gz acme-1.17.0.tar.gz.asc New: ---- acme-1.18.0.tar.gz acme-1.18.0.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-acme.spec ++++++ --- /var/tmp/diff_new_pack.MAmwT3/_old 2021-08-11 11:49:27.569584673 +0200 +++ /var/tmp/diff_new_pack.MAmwT3/_new 2021-08-11 11:49:27.569584673 +0200 @@ -20,7 +20,7 @@ %define skip_python2 1 %define libname acme Name: python-%{libname} -Version: 1.17.0 +Version: 1.18.0 Release: 0 Summary: Python library for the ACME protocol License: Apache-2.0 @@ -34,7 +34,7 @@ BuildRequires: %{python_module pyRFC3339} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} -BuildRequires: %{python_module requests >= 2.6.0} +BuildRequires: %{python_module requests >= 2.14.2} BuildRequires: %{python_module requests-toolbelt >= 0.3.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -44,7 +44,7 @@ Requires: python-pyOpenSSL >= 17.3.0 Requires: python-pyRFC3339 Requires: python-pytz -Requires: python-requests >= 2.6.0 +Requires: python-requests >= 2.14.2 Requires: python-requests-toolbelt >= 0.3.0 BuildArch: noarch %if %{?suse_version} < 1500 ++++++ acme-1.17.0.tar.gz -> acme-1.18.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/PKG-INFO new/acme-1.18.0/PKG-INFO --- old/acme-1.17.0/PKG-INFO 2021-07-06 17:41:23.313219500 +0200 +++ new/acme-1.18.0/PKG-INFO 2021-08-03 22:13:30.525709000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: acme -Version: 1.17.0 +Version: 1.18.0 Summary: ACME protocol implementation in Python Home-page: https://github.com/letsencrypt/letsencrypt Author: Certbot Project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/acme/challenges.py new/acme-1.18.0/acme/challenges.py --- old/acme-1.17.0/acme/challenges.py 2021-07-06 17:41:15.000000000 +0200 +++ new/acme-1.18.0/acme/challenges.py 2021-08-03 22:12:58.000000000 +0200 @@ -314,6 +314,15 @@ except requests.exceptions.RequestException as error: logger.error("Unable to reach %s: %s", uri, error) return False + # By default, http_response.text will try to guess the encoding to use + # when decoding the response to Python unicode strings. This guesswork + # is error prone. RFC 8555 specifies that HTTP-01 responses should be + # key authorizations with possible trailing whitespace. Since key + # authorizations must be composed entirely of the base64url alphabet + # plus ".", we tell requests that the response should be ASCII. See + # https://datatracker.ietf.org/doc/html/rfc8555#section-8.3 for more + # info. + http_response.encoding = "ascii" logger.debug("Received %s: %s. Headers: %s", http_response, http_response.text, http_response.headers) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/acme/client.py new/acme-1.18.0/acme/client.py --- old/acme-1.17.0/acme/client.py 2021-07-06 17:41:15.000000000 +0200 +++ new/acme-1.18.0/acme/client.py 2021-08-03 22:12:58.000000000 +0200 @@ -14,6 +14,7 @@ from typing import Set from typing import Text from typing import Union +import warnings import josepy as jose import OpenSSL @@ -224,6 +225,9 @@ class Client(ClientBase): """ACME client for a v1 API. + .. deprecated:: 1.18.0 + Use :class:`ClientV2` instead. + .. todo:: Clean up raised error types hierarchy, document, and handle (wrap) instances of `.DeserializationError` raised in `from_json()`. @@ -246,6 +250,8 @@ URI from which the resource will be downloaded. """ + warnings.warn("acme.client.Client (ACMEv1) is deprecated, " + "use acme.client.ClientV2 instead.", PendingDeprecationWarning) self.key = key if net is None: net = ClientNetwork(key, alg=alg, verify_ssl=verify_ssl) @@ -805,6 +811,9 @@ """ACME client wrapper that tends towards V2-style calls, but supports V1 servers. + .. deprecated:: 1.18.0 + Use :class:`ClientV2` instead. + .. note:: While this class handles the majority of the differences between versions of the ACME protocol, if you need to support an ACME server based on version 3 or older of the IETF ACME draft @@ -821,6 +830,8 @@ """ def __init__(self, net, key, server): + warnings.warn("acme.client.BackwardsCompatibleClientV2 is deprecated, use " + "acme.client.ClientV2 instead.", PendingDeprecationWarning) directory = messages.Directory.from_json(net.get(server).json()) self.acme_version = self._acme_version_from_directory(directory) self.client: Union[Client, ClientV2] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/acme/messages.py new/acme-1.18.0/acme/messages.py --- old/acme-1.17.0/acme/messages.py 2021-07-06 17:41:15.000000000 +0200 +++ new/acme-1.18.0/acme/messages.py 2021-08-03 22:12:58.000000000 +0200 @@ -114,7 +114,7 @@ :rtype: unicode """ - code = str(self.typ).split(':')[-1] + code = str(self.typ).rsplit(':', maxsplit=1)[-1] if code in ERROR_CODES: return code return None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/acme.egg-info/PKG-INFO new/acme-1.18.0/acme.egg-info/PKG-INFO --- old/acme-1.17.0/acme.egg-info/PKG-INFO 2021-07-06 17:41:23.000000000 +0200 +++ new/acme-1.18.0/acme.egg-info/PKG-INFO 2021-08-03 22:13:30.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: acme -Version: 1.17.0 +Version: 1.18.0 Summary: ACME protocol implementation in Python Home-page: https://github.com/letsencrypt/letsencrypt Author: Certbot Project diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/acme.egg-info/requires.txt new/acme-1.18.0/acme.egg-info/requires.txt --- old/acme-1.17.0/acme.egg-info/requires.txt 2021-07-06 17:41:23.000000000 +0200 +++ new/acme-1.18.0/acme.egg-info/requires.txt 2021-08-03 22:13:30.000000000 +0200 @@ -1,9 +1,10 @@ +chardet cryptography>=2.1.4 josepy>=1.1.0 PyOpenSSL>=17.3.0 pyrfc3339 pytz -requests>=2.6.0 +requests>=2.14.2 requests-toolbelt>=0.3.0 setuptools>=39.0.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-1.17.0/setup.py new/acme-1.18.0/setup.py --- old/acme-1.17.0/setup.py 2021-07-06 17:41:17.000000000 +0200 +++ new/acme-1.18.0/setup.py 2021-08-03 22:12:59.000000000 +0200 @@ -3,9 +3,13 @@ from setuptools import find_packages from setuptools import setup -version = '1.17.0' +version = '1.18.0' install_requires = [ + # This dependency just exists to ensure that chardet is installed along + # with requests so it will use it instead of charset_normalizer. See + # https://github.com/certbot/certbot/issues/8964 for more info. + 'chardet', 'cryptography>=2.1.4', # formerly known as acme.jose: # 1.1.0+ is required to avoid the warnings described at @@ -14,7 +18,7 @@ 'PyOpenSSL>=17.3.0', 'pyrfc3339', 'pytz', - 'requests>=2.6.0', + 'requests>=2.14.2', 'requests-toolbelt>=0.3.0', 'setuptools>=39.0.1', ]
