Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2021-10-20 20:23:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and      /work/SRC/openSUSE:Factory/.python-mocket.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mocket"

Wed Oct 20 20:23:13 2021 rev:16 rq:922650 version:3.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes      
2021-09-16 23:16:57.447940286 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.1890/python-mocket.changes    
2021-10-20 20:23:50.341361583 +0200
@@ -1,0 +2,10 @@
+Fri Sep 24 19:50:05 UTC 2021 - Sebastian Wagner <[email protected]>
+
+- update to version 3.10.0:
+ - Fix for version number
+ - Testing out Python 3.10 (#156)
+   * Adding support for Python 3.10
+ - Update LICENSE
+ - Update main.yml
+
+-------------------------------------------------------------------

Old:
----
  mocket-3.9.44.tar.gz

New:
----
  mocket-3.10.0.tar.gz

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

Other differences:
------------------
++++++ python-mocket.spec ++++++
--- /var/tmp/diff_new_pack.NaV9oz/_old  2021-10-20 20:23:50.721361818 +0200
+++ /var/tmp/diff_new_pack.NaV9oz/_new  2021-10-20 20:23:50.721361818 +0200
@@ -26,7 +26,7 @@
 %bcond_with test
 %endif
 Name:           python-mocket%{psuffix}
-Version:        3.9.44
+Version:        3.10.0
 Release:        0
 Summary:        Python socket mock framework
 License:        BSD-3-Clause

++++++ mocket-3.9.44.tar.gz -> mocket-3.10.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/LICENSE new/mocket-3.10.0/LICENSE
--- old/mocket-3.9.44/LICENSE   2021-03-20 19:51:56.000000000 +0100
+++ new/mocket-3.10.0/LICENSE   2021-09-11 12:18:09.000000000 +0200
@@ -1,3 +1,4 @@
+Copyright (c) 2017-2021 Giorgio Salluzzo and individual contributors. All 
rights reserved.
 Copyright (c) 2013-2017 Andrea de Marco, Giorgio Salluzzo and individual 
contributors.
 All rights reserved.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/PKG-INFO new/mocket-3.10.0/PKG-INFO
--- old/mocket-3.9.44/PKG-INFO  2021-08-31 12:59:25.871479700 +0200
+++ new/mocket-3.10.0/PKG-INFO  2021-09-23 11:06:41.487060500 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mocket
-Version: 3.9.44
+Version: 3.10.0
 Summary: Socket Mock Framework - for all kinds of socket animals, web-clients 
included -         with gevent/asyncio/SSL support
 Home-page: https://github.com/mindflayer/python-mocket
 Author: Giorgio Salluzzo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/mocket/__init__.py 
new/mocket-3.10.0/mocket/__init__.py
--- old/mocket-3.9.44/mocket/__init__.py        2021-08-31 12:59:11.000000000 
+0200
+++ new/mocket-3.10.0/mocket/__init__.py        2021-09-23 11:01:03.000000000 
+0200
@@ -2,4 +2,4 @@
 
 __all__ = ("mocketize", "Mocket", "MocketEntry", "Mocketizer")
 
-__version__ = "3.9.44"
+__version__ = "3.10.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/mocket/async_mocket.py 
new/mocket-3.10.0/mocket/async_mocket.py
--- old/mocket-3.9.44/mocket/async_mocket.py    2021-08-31 12:41:08.000000000 
+0200
+++ new/mocket-3.10.0/mocket/async_mocket.py    2021-09-23 11:01:03.000000000 
+0200
@@ -1,6 +1,5 @@
-import decorator
-
 from mocket import Mocketizer
+from mocket.utils import get_mocketize
 
 
 async def wrapper(test, cls=Mocketizer, truesocket_recording_dir=None, *args, 
**kwargs):
@@ -22,10 +21,7 @@
         return await test(*args, **kwargs)
 
 
-if decorator.__version__ < "5":
-    async_mocketize = decorator.decorator(wrapper)
-else:
-    async_mocketize = decorator.decorator(wrapper, kwsyntax=True)
+async_mocketize = get_mocketize(wrapper_=wrapper)
 
 
 __all__ = ("async_mocketize",)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/mocket/mocket.py 
new/mocket-3.10.0/mocket/mocket.py
--- old/mocket-3.9.44/mocket/mocket.py  2021-08-31 12:41:08.000000000 +0200
+++ new/mocket-3.10.0/mocket/mocket.py  2021-09-23 11:01:03.000000000 +0200
@@ -12,14 +12,13 @@
 from datetime import datetime, timedelta
 from json.decoder import JSONDecodeError
 
-import decorator
 import urllib3
 from urllib3.connection import match_hostname as urllib3_match_hostname
 from urllib3.util.ssl_ import ssl_wrap_socket as urllib3_ssl_wrap_socket
 from urllib3.util.ssl_ import wrap_socket as urllib3_wrap_socket
 
 from .compat import basestring, byte_type, decode_from_bytes, encode_to_bytes, 
text_type
-from .utils import SSL_PROTOCOL, MocketSocketCore, hexdump, hexload
+from .utils import SSL_PROTOCOL, MocketSocketCore, get_mocketize, hexdump, 
hexload
 
 xxh32 = None
 try:
@@ -65,6 +64,11 @@
 
 
 class FakeSSLContext(SuperFakeSSLContext):
+    DUMMY_METHODS = (
+        "load_default_certs",
+        "load_verify_locations",
+        "set_alpn_protocols",
+    )
     sock = None
     post_handshake_auth = None
     _check_hostname = False
@@ -78,6 +82,8 @@
         self._check_hostname = False
 
     def __init__(self, sock=None, server_hostname=None, _context=None, *args, 
**kwargs):
+        self._set_dummy_methods()
+
         if isinstance(sock, MocketSocket):
             self.sock = sock
             self.sock._host = server_hostname
@@ -89,13 +95,12 @@
         elif isinstance(sock, int) and true_ssl_context:
             self.context = true_ssl_context(sock)
 
-    @staticmethod
-    def load_default_certs(*args, **kwargs):
-        pass
+    def _set_dummy_methods(self):
+        def dummy_method(*args, **kwargs):
+            pass
 
-    @staticmethod
-    def load_verify_locations(*args, **kwargs):
-        pass
+        for m in self.DUMMY_METHODS:
+            setattr(self, m, dummy_method)
 
     @staticmethod
     def wrap_socket(sock=sock, *args, **kwargs):
@@ -640,7 +645,4 @@
         return test(*args, **kwargs)
 
 
-if decorator.__version__ < "5":
-    mocketize = decorator.decorator(wrapper)
-else:
-    mocketize = decorator.decorator(wrapper, kwsyntax=True)
+mocketize = get_mocketize(wrapper_=wrapper)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/mocket/utils.py 
new/mocket-3.10.0/mocket/utils.py
--- old/mocket-3.9.44/mocket/utils.py   2021-08-31 12:37:51.000000000 +0200
+++ new/mocket-3.10.0/mocket/utils.py   2021-09-23 11:01:03.000000000 +0200
@@ -34,3 +34,12 @@
     """
     string_no_spaces = "".join(string.split())
     return encode_to_bytes(binascii.unhexlify(string_no_spaces))
+
+
+def get_mocketize(wrapper_):
+    import decorator
+
+    if decorator.__version__ < "5":
+        return decorator.decorator(wrapper_)
+    else:
+        return decorator.decorator(wrapper_, kwsyntax=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/mocket.egg-info/PKG-INFO 
new/mocket-3.10.0/mocket.egg-info/PKG-INFO
--- old/mocket-3.9.44/mocket.egg-info/PKG-INFO  2021-08-31 12:59:25.000000000 
+0200
+++ new/mocket-3.10.0/mocket.egg-info/PKG-INFO  2021-09-23 11:06:41.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mocket
-Version: 3.9.44
+Version: 3.10.0
 Summary: Socket Mock Framework - for all kinds of socket animals, web-clients 
included -         with gevent/asyncio/SSL support
 Home-page: https://github.com/mindflayer/python-mocket
 Author: Giorgio Salluzzo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.9.44/setup.py new/mocket-3.10.0/setup.py
--- old/mocket-3.9.44/setup.py  2021-03-20 19:51:56.000000000 +0100
+++ new/mocket-3.10.0/setup.py  2021-09-23 11:01:03.000000000 +0200
@@ -49,7 +49,6 @@
         "dev": [],
         "pook": pook_requires,  # plugins version supporting 
mocket.plugins.pook.MocketEngine
     },
-    test_suite="run_tests.main",
     license="BSD",
     classifiers=[
         "Development Status :: 6 - Mature",

Reply via email to