Hello community,

here is the log from the commit of package python-acme for openSUSE:Factory 
checked in at 2019-11-15 00:20:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-acme (Old)
 and      /work/SRC/openSUSE:Factory/.python-acme.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-acme"

Fri Nov 15 00:20:17 2019 rev:38 rq:748663 version:0.40.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-acme/python-acme.changes  2019-10-31 
18:13:57.961929798 +0100
+++ /work/SRC/openSUSE:Factory/.python-acme.new.26869/python-acme.changes       
2019-11-15 00:20:22.743948462 +0100
@@ -1,0 +2,7 @@
+Thu Nov 14 12:00:47 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- update to version 0.40.1
+  * acme.standalone.BaseRequestHandlerWithLogging and 
acme.standalone.simple_tls_sni_01_server 
+    have been deprecated and will be removed in a future release of the 
library.
+
+-------------------------------------------------------------------

Old:
----
  acme-0.39.0.tar.gz
  acme-0.39.0.tar.gz.asc

New:
----
  acme-0.40.1.tar.gz
  acme-0.40.1.tar.gz.asc

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

Other differences:
------------------
++++++ python-acme.spec ++++++
--- /var/tmp/diff_new_pack.gZDlBG/_old  2019-11-15 00:20:23.323948261 +0100
+++ /var/tmp/diff_new_pack.gZDlBG/_new  2019-11-15 00:20:23.327948259 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-acme
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define libname acme
 Name:           python-%{libname}
-Version:        0.39.0
+Version:        0.40.1
 Release:        0
 Summary:        Python library for the ACME protocol
 License:        Apache-2.0

++++++ acme-0.39.0.tar.gz -> acme-0.40.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/PKG-INFO new/acme-0.40.1/PKG-INFO
--- old/acme-0.39.0/PKG-INFO    2019-10-01 21:48:48.000000000 +0200
+++ new/acme-0.40.1/PKG-INFO    2019-11-06 03:24:55.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: acme
-Version: 0.39.0
+Version: 0.40.1
 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.39.0/acme/__init__.py 
new/acme-0.40.1/acme/__init__.py
--- old/acme-0.39.0/acme/__init__.py    2019-10-01 21:48:40.000000000 +0200
+++ new/acme-0.40.1/acme/__init__.py    2019-11-06 03:24:51.000000000 +0100
@@ -35,7 +35,7 @@
         self.__dict__['_module'] = module
 
     def __getattr__(self, attr):
-        if 'TLSSNI01' in attr:
+        if 'TLSSNI01' in attr or attr == 'BaseRequestHandlerWithLogging':
             warnings.warn('{0} attribute is deprecated, and will be removed 
soon.'.format(attr),
                           DeprecationWarning, stacklevel=2)
         return getattr(self._module, attr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/acme/client.py 
new/acme-0.40.1/acme/client.py
--- old/acme-0.39.0/acme/client.py      2019-10-01 21:48:40.000000000 +0200
+++ new/acme-0.40.1/acme/client.py      2019-11-06 03:24:51.000000000 +0100
@@ -136,7 +136,8 @@
         """
         body = messages.UpdateAuthorization(status='deactivated')
         response = self._post(authzr.uri, body)
-        return self._authzr_from_response(response)
+        return self._authzr_from_response(response,
+            authzr.body.identifier, authzr.uri)
 
     def _authzr_from_response(self, response, identifier=None, uri=None):
         authzr = messages.AuthorizationResource(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/acme/standalone.py 
new/acme-0.40.1/acme/standalone.py
--- old/acme-0.39.0/acme/standalone.py  2019-10-01 21:48:40.000000000 +0200
+++ new/acme-0.40.1/acme/standalone.py  2019-11-06 03:24:51.000000000 +0100
@@ -7,6 +7,7 @@
 import socket
 import sys
 import threading
+import warnings
 
 from six.moves import BaseHTTPServer  # type: ignore  # pylint: 
disable=import-error
 from six.moves import http_client  # pylint: disable=import-error
@@ -267,6 +268,9 @@
 
 def simple_tls_sni_01_server(cli_args, forever=True):
     """Run simple standalone TLSSNI01 server."""
+    warnings.warn(
+        'simple_tls_sni_01_server is deprecated and will be removed soon.',
+        DeprecationWarning, stacklevel=2)
     logging.basicConfig(level=logging.DEBUG)
 
     parser = argparse.ArgumentParser()
@@ -299,7 +303,3 @@
 
 # Patching ourselves to warn about TLS-SNI challenge deprecation and removal.
 sys.modules[__name__] = _TLSSNI01DeprecationModule(sys.modules[__name__])
-
-
-if __name__ == "__main__":
-    sys.exit(simple_tls_sni_01_server(sys.argv))  # pragma: no cover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/acme/standalone_test.py 
new/acme-0.40.1/acme/standalone_test.py
--- old/acme-0.39.0/acme/standalone_test.py     2019-10-01 21:48:40.000000000 
+0200
+++ new/acme-0.40.1/acme/standalone_test.py     2019-11-06 03:24:51.000000000 
+0100
@@ -6,6 +6,7 @@
 import threading
 import tempfile
 import unittest
+import warnings
 import time
 from contextlib import closing
 
@@ -67,6 +68,18 @@
                          jose.ComparableX509(self.certs[b'localhost'][1]))
 
 
+class BaseRequestHandlerWithLoggingTest(unittest.TestCase):
+    """Test for acme.standalone.BaseRequestHandlerWithLogging."""
+
+    def test_it(self):
+        with mock.patch('acme.standalone.warnings.warn') as mock_warn:
+            # pylint: disable=unused-variable
+            from acme.standalone import BaseRequestHandlerWithLogging
+        self.assertTrue(mock_warn.called)
+        msg = mock_warn.call_args[0][0]
+        self.assertTrue(msg.startswith('BaseRequestHandlerWithLogging'))
+
+
 class HTTP01ServerTest(unittest.TestCase):
     """Tests for acme.standalone.HTTP01Server."""
 
@@ -266,8 +279,7 @@
             sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
             self.port = sock.getsockname()[1]
 
-        from acme.standalone import simple_tls_sni_01_server
-        self.process = multiprocessing.Process(target=simple_tls_sni_01_server,
+        self.process = 
multiprocessing.Process(target=_simple_tls_sni_01_server_no_warnings,
                                                args=(['path', '-p', 
str(self.port)],))
         self.old_cwd = os.getcwd()
         os.chdir(self.test_cwd)
@@ -284,8 +296,8 @@
 
     @mock.patch('acme.standalone.TLSSNI01Server.handle_request')
     def test_mock(self, handle):
-        from acme.standalone import simple_tls_sni_01_server
-        simple_tls_sni_01_server(cli_args=['path', '-p', str(self.port)], 
forever=False)
+        _simple_tls_sni_01_server_no_warnings(cli_args=['path', '-p', 
str(self.port)],
+                                              forever=False)
         self.assertEqual(handle.call_count, 1)
 
     def test_live(self):
@@ -302,5 +314,12 @@
                          test_util.load_comparable_cert('rsa2048_cert.pem'))
 
 
+def _simple_tls_sni_01_server_no_warnings(*args, **kwargs):
+    with warnings.catch_warnings():
+        warnings.filterwarnings('ignore', 'simple_tls.*')
+        from acme.standalone import simple_tls_sni_01_server
+        return simple_tls_sni_01_server(*args, **kwargs)
+
+
 if __name__ == "__main__":
     unittest.main()  # pragma: no cover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/acme/test_util.py 
new/acme-0.40.1/acme/test_util.py
--- old/acme-0.39.0/acme/test_util.py   2019-10-01 21:48:40.000000000 +0200
+++ new/acme-0.40.1/acme/test_util.py   2019-11-06 03:24:51.000000000 +0100
@@ -4,7 +4,6 @@
 
 """
 import os
-import unittest
 import pkg_resources
 
 from cryptography.hazmat.backends import default_backend
@@ -73,23 +72,3 @@
     loader = _guess_loader(
         names[-1], crypto.FILETYPE_PEM, crypto.FILETYPE_ASN1)
     return crypto.load_privatekey(loader, load_vector(*names))
-
-
-def skip_unless(condition, reason):  # pragma: no cover
-    """Skip tests unless a condition holds.
-
-    This implements the basic functionality of unittest.skipUnless
-    which is only available on Python 2.7+.
-
-    :param bool condition: If ``False``, the test will be skipped
-    :param str reason: the reason for skipping the test
-
-    :rtype: callable
-    :returns: decorator that hides tests unless condition is ``True``
-
-    """
-    if hasattr(unittest, "skipUnless"):
-        return unittest.skipUnless(condition, reason)
-    elif condition:
-        return lambda cls: cls
-    return lambda cls: None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/acme-0.39.0/acme.egg-info/PKG-INFO 
new/acme-0.40.1/acme.egg-info/PKG-INFO
--- old/acme-0.39.0/acme.egg-info/PKG-INFO      2019-10-01 21:48:48.000000000 
+0200
+++ new/acme-0.40.1/acme.egg-info/PKG-INFO      2019-11-06 03:24:55.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: acme
-Version: 0.39.0
+Version: 0.40.1
 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.39.0/setup.py new/acme-0.40.1/setup.py
--- old/acme-0.39.0/setup.py    2019-10-01 21:48:41.000000000 +0200
+++ new/acme-0.40.1/setup.py    2019-11-06 03:24:52.000000000 +0100
@@ -3,7 +3,7 @@
 from setuptools.command.test import test as TestCommand
 import sys
 
-version = '0.39.0'
+version = '0.40.1'
 
 # Please update tox.ini when modifying dependency version requirements
 install_requires = [



Reply via email to