Hello community, here is the log from the commit of package python-acme for openSUSE:Factory checked in at 2019-08-28 16:03:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-acme (Old) and /work/SRC/openSUSE:Factory/.python-acme.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-acme" Wed Aug 28 16:03:41 2019 rev:34 rq:726139 version:0.37.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-acme/python-acme.changes 2019-07-29 17:27:33.490276296 +0200 +++ /work/SRC/openSUSE:Factory/.python-acme.new.7948/python-acme.changes 2019-08-28 16:03:49.626779350 +0200 @@ -1,0 +2,6 @@ +Mon Aug 26 10:39:42 UTC 2019 - Marketa Calabkova <mcalabk...@suse.com> + +- update to version 0.37.2 + * acme: Authz deactivation added to acme module. + +------------------------------------------------------------------- Old: ---- acme-0.36.0.tar.gz acme-0.36.0.tar.gz.asc New: ---- acme-0.37.2.tar.gz acme-0.37.2.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-acme.spec ++++++ --- /var/tmp/diff_new_pack.xktTWA/_old 2019-08-28 16:03:50.826779170 +0200 +++ /var/tmp/diff_new_pack.xktTWA/_new 2019-08-28 16:03:50.830779169 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define libname acme Name: python-%{libname} -Version: 0.36.0 +Version: 0.37.2 Release: 0 Summary: Python library for the ACME protocol License: Apache-2.0 ++++++ acme-0.36.0.tar.gz -> acme-0.37.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.36.0/PKG-INFO new/acme-0.37.2/PKG-INFO --- old/acme-0.36.0/PKG-INFO 2019-07-11 21:12:30.000000000 +0200 +++ new/acme-0.37.2/PKG-INFO 2019-08-21 23:48:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: acme -Version: 0.36.0 +Version: 0.37.2 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-0.36.0/acme/client.py new/acme-0.37.2/acme/client.py --- old/acme-0.36.0/acme/client.py 2019-07-11 21:12:24.000000000 +0200 +++ new/acme-0.37.2/acme/client.py 2019-08-21 23:48:40.000000000 +0200 @@ -123,6 +123,21 @@ """ return self.update_registration(regr, update={'status': 'deactivated'}) + def deactivate_authorization(self, authzr): + # type: (messages.AuthorizationResource) -> messages.AuthorizationResource + """Deactivate authorization. + + :param messages.AuthorizationResource authzr: The Authorization resource + to be deactivated. + + :returns: The Authorization resource that was deactivated. + :rtype: `.AuthorizationResource` + + """ + body = messages.UpdateAuthorization(status='deactivated') + response = self._post(authzr.uri, body) + return self._authzr_from_response(response) + def _authzr_from_response(self, response, identifier=None, uri=None): authzr = messages.AuthorizationResource( body=messages.Authorization.from_json(response.json()), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.36.0/acme/client_test.py new/acme-0.37.2/acme/client_test.py --- old/acme-0.36.0/acme/client_test.py 2019-07-11 21:12:24.000000000 +0200 +++ new/acme-0.37.2/acme/client_test.py 2019-08-21 23:48:40.000000000 +0200 @@ -637,6 +637,14 @@ errors.PollError, self.client.poll_and_request_issuance, csr, authzrs, mintime=mintime, max_attempts=2) + def test_deactivate_authorization(self): + authzb = self.authzr.body.update(status=messages.STATUS_DEACTIVATED) + self.response.json.return_value = authzb.to_json() + authzr = self.client.deactivate_authorization(self.authzr) + self.assertEqual(authzb, authzr.body) + self.assertEqual(self.client.net.post.call_count, 1) + self.assertTrue(self.authzr.uri in self.net.post.call_args_list[0][0]) + def test_check_cert(self): self.response.headers['Location'] = self.certr.uri self.response.content = CERT_DER diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.36.0/acme/messages.py new/acme-0.37.2/acme/messages.py --- old/acme-0.36.0/acme/messages.py 2019-07-11 21:12:24.000000000 +0200 +++ new/acme-0.37.2/acme/messages.py 2019-08-21 23:48:40.000000000 +0200 @@ -168,6 +168,7 @@ STATUS_INVALID = Status('invalid') STATUS_REVOKED = Status('revoked') STATUS_READY = Status('ready') +STATUS_DEACTIVATED = Status('deactivated') class IdentifierType(_Constant): @@ -471,7 +472,7 @@ :ivar datetime.datetime expires: """ - identifier = jose.Field('identifier', decoder=Identifier.from_json) + identifier = jose.Field('identifier', decoder=Identifier.from_json, omitempty=True) challenges = jose.Field('challenges', omitempty=True) combinations = jose.Field('combinations', omitempty=True) @@ -501,6 +502,12 @@ resource = fields.Resource(resource_type) +class UpdateAuthorization(Authorization): + """Update authorization.""" + resource_type = 'authz' + resource = fields.Resource(resource_type) + + class AuthorizationResource(ResourceWithURI): """Authorization Resource. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/acme-0.36.0/acme.egg-info/PKG-INFO new/acme-0.37.2/acme.egg-info/PKG-INFO --- old/acme-0.36.0/acme.egg-info/PKG-INFO 2019-07-11 21:12:30.000000000 +0200 +++ new/acme-0.37.2/acme.egg-info/PKG-INFO 2019-08-21 23:48:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: acme -Version: 0.36.0 +Version: 0.37.2 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-0.36.0/setup.py new/acme-0.37.2/setup.py --- old/acme-0.36.0/setup.py 2019-07-11 21:12:25.000000000 +0200 +++ new/acme-0.37.2/setup.py 2019-08-21 23:48:41.000000000 +0200 @@ -3,7 +3,7 @@ from setuptools.command.test import test as TestCommand import sys -version = '0.36.0' +version = '0.37.2' # Please update tox.ini when modifying dependency version requirements install_requires = [