forked from pool/python-Pyro5
Accepting request 1137817 from devel:languages:python
- 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/request/show/1137817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pyro5?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:64fdce137b0fe532e88614d246b7c98bbe0a4f426786c524539acdc5e694086a
|
||||
size 447725
|
||||
3
Pyro5-5.15.tar.gz
Normal file
3
Pyro5-5.15.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:82c3dfc9860b49f897b28ff24fe6716c841672c600af8fe40d0e3a7fac9a3f5e
|
||||
size 447559
|
||||
@@ -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)
|
||||
@@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 9 21:39:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <ecsos@opensuse.org>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user