From cabc3070e9cd2a3e04a49a02dbd0823e6ce2410630e329b619f3d802983d51e6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 Jan 2024 21:40:08 +0000 Subject: [PATCH] - update to 5.15: * removed Python 3.7 from the support list (it is EOL). Now supported on Python 3.8 or newer. * fixed cgi.parse deprecation problem in http gateway * removed jquery dependency in http gateway * some small tweaks to setup, tests, examples, and docs. * updated the self-signed example certificates and serial numbers in the ssl example. - drop add-network-marker.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=9 --- Pyro5-5.14.tar.gz | 3 -- Pyro5-5.15.tar.gz | 3 ++ add-network-marker.patch | 112 --------------------------------------- python-Pyro5.changes | 13 +++++ python-Pyro5.spec | 6 +-- 5 files changed, 18 insertions(+), 119 deletions(-) delete mode 100644 Pyro5-5.14.tar.gz create mode 100644 Pyro5-5.15.tar.gz delete mode 100644 add-network-marker.patch diff --git a/Pyro5-5.14.tar.gz b/Pyro5-5.14.tar.gz deleted file mode 100644 index 2440991..0000000 --- a/Pyro5-5.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:64fdce137b0fe532e88614d246b7c98bbe0a4f426786c524539acdc5e694086a -size 447725 diff --git a/Pyro5-5.15.tar.gz b/Pyro5-5.15.tar.gz new file mode 100644 index 0000000..616674a --- /dev/null +++ b/Pyro5-5.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82c3dfc9860b49f897b28ff24fe6716c841672c600af8fe40d0e3a7fac9a3f5e +size 447559 diff --git a/add-network-marker.patch b/add-network-marker.patch deleted file mode 100644 index ed8e1be..0000000 --- a/add-network-marker.patch +++ /dev/null @@ -1,112 +0,0 @@ -Index: Pyro5-5.14/setup.cfg -=================================================================== ---- Pyro5-5.14.orig/setup.cfg -+++ Pyro5-5.14/setup.cfg -@@ -50,3 +50,5 @@ exclude = .git,__pycache__,.tox,docs,tes - tag_build = - tag_date = 0 - -+[tool:pytest] -+markers = network: Mark a test as requiring network access -Index: Pyro5-5.14/tests/test_socketutil.py -=================================================================== ---- Pyro5-5.14.orig/tests/test_socketutil.py -+++ Pyro5-5.14/tests/test_socketutil.py -@@ -29,6 +29,7 @@ class TestSocketutil: - def setup_class(cls): - config.POLLTIMEOUT = 0.1 - -+ @pytest.mark.network - def testGetIP(self): - config.PREFER_IP_VERSION = 4 - myip = socketutil.get_ip_address("") -@@ -231,6 +232,7 @@ class TestSocketutil: - if os.path.exists(SOCKNAME): - os.remove(SOCKNAME) - -+ @pytest.mark.network - def testBroadcast(self): - ss = socketutil.create_bc_socket((None, 0)) - port = ss.getsockname()[1] -Index: Pyro5-5.14/tests/test_naming.py -=================================================================== ---- Pyro5-5.14.orig/tests/test_naming.py -+++ Pyro5-5.14/tests/test_naming.py -@@ -36,6 +36,7 @@ class NSLoopThread(threading.Thread): - - - class TestBCSetup: -+ @pytest.mark.network - def testBCstart(self): - myIpAddress = Pyro5.socketutil.get_ip_address("", workaround127=True) - nsUri, nameserver, bcserver = Pyro5.nameserver.start_ns(host=myIpAddress, port=0, bcport=0, enableBroadcast=False) -@@ -76,11 +77,13 @@ class TestNameServer: - config.NS_PORT = self.old_nsPort - config.NS_BCPORT = self.old_bcPort - -+ @pytest.mark.network - def testLookupUnixsockParsing(self): - # this must not raise AttributeError, it did before because of a parse bug - with pytest.raises(NamingError): - Pyro5.core.locate_ns("./u:/tmp/Pyro5-naming.usock") - -+ @pytest.mark.network - def testLookupAndRegister(self): - ns = Pyro5.core.locate_ns() # broadcast lookup - assert isinstance(ns, Pyro5.client.Proxy) -@@ -107,6 +110,7 @@ class TestNameServer: - assert ns.lookup("unittest.object3") == Pyro5.core.URI("PYRO:66666@host.com:4444") - ns._pyroRelease() - -+ @pytest.mark.network - def testDaemonPyroObj(self): - uri = self.nsUri - uri.object = Pyro5.core.DAEMON_NAME -@@ -116,6 +120,7 @@ class TestNameServer: - with pytest.raises(AttributeError): - daemonobj.shutdown() - -+ @pytest.mark.network - def testMulti(self): - uristr = str(self.nsUri) - p = Pyro5.client.Proxy(uristr) -@@ -157,6 +162,7 @@ class TestNameServer: - _ = Pyro5.core.resolve(pyronameUri) - _ = Pyro5.core.resolve(pyronameUri) - -+ @pytest.mark.network - def testResolve(self): - resolved1 = Pyro5.core.resolve(Pyro5.core.URI("PYRO:12345@host.com:4444")) - resolved2 = Pyro5.core.resolve("PYRO:12345@host.com:4444") -@@ -186,6 +192,7 @@ class TestNameServer: - with pytest.raises(TypeError): - Pyro5.core.resolve(999) - -+ @pytest.mark.network - def testRefuseDottedNames(self): - with Pyro5.core.locate_ns(self.nsUri.host, self.nsUri.port) as ns: - # the name server should never have dotted names enabled -@@ -194,6 +201,7 @@ class TestNameServer: - assert ns._pyroConnection is not None - assert ns._pyroConnection is None - -+ @pytest.mark.network - def testAutoClean(self): - try: - config.NS_AUTOCLEAN = 0.0 -@@ -243,6 +251,7 @@ class TestNameServer0000: - config.NS_PORT = self.old_nsPort - config.NS_BCPORT = self.old_bcPort - -+ @pytest.mark.network - def testBCLookup0000(self): - ns = Pyro5.core.locate_ns() # broadcast lookup - assert isinstance(ns, Pyro5.client.Proxy) -@@ -388,6 +397,7 @@ class TestOfflineNameServer: - pass - ns.close() - -+ @pytest.mark.network - def testStartNSfunc(self): - myIpAddress = Pyro5.socketutil.get_ip_address("", workaround127=True) - uri1, ns1, bc1 = Pyro5.nameserver.start_ns(host=myIpAddress, port=0, bcport=0, enableBroadcast=False) diff --git a/python-Pyro5.changes b/python-Pyro5.changes index b44151c..9022a5f 100644 --- a/python-Pyro5.changes +++ b/python-Pyro5.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jan 9 21:39:34 UTC 2024 - Dirk Müller + +- update to 5.15: + * removed Python 3.7 from the support list (it is EOL). Now + supported on Python 3.8 or newer. + * fixed cgi.parse deprecation problem in http gateway + * removed jquery dependency in http gateway + * some small tweaks to setup, tests, examples, and docs. + * updated the self-signed example certificates and serial + numbers in the ssl example. +- drop add-network-marker.patch (upstream) + ------------------------------------------------------------------- Sun Jun 11 13:51:38 UTC 2023 - ecsos diff --git a/python-Pyro5.spec b/python-Pyro5.spec index a476d8d..acaffaa 100644 --- a/python-Pyro5.spec +++ b/python-Pyro5.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pyro5 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,12 @@ %{?sle15_python_module_pythons} Name: python-Pyro5 -Version: 5.14 +Version: 5.15 Release: 0 Summary: Distributed object middleware for Python (RPC) License: MIT URL: https://github.com/irmen/Pyro5 Source: https://files.pythonhosted.org/packages/source/P/Pyro5/Pyro5-%{version}.tar.gz -# PATCH-FIX-UPSTREAM gh#irmen/Pyro5#76 -Patch0: add-network-marker.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros