diff --git a/Pyro4-4.81.tar.gz b/Pyro4-4.81.tar.gz deleted file mode 100644 index bf04f1d..0000000 --- a/Pyro4-4.81.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e130da06478b813173b959f7013d134865e07fbf58cc5f1a2598f99479cdac5f -size 514678 diff --git a/Pyro4-4.82.tar.gz b/Pyro4-4.82.tar.gz new file mode 100644 index 0000000..ffa453b --- /dev/null +++ b/Pyro4-4.82.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:511f5b0804e92dd77dc33adf9c947787e3f9e9c5a96b12162f0557a7c4ce21fb +size 516110 diff --git a/Pyro4-pr238-py310-cmethod-smethod.patch b/Pyro4-pr238-py310-cmethod-smethod.patch deleted file mode 100644 index a442025..0000000 --- a/Pyro4-pr238-py310-cmethod-smethod.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: Pyro4-4.81/src/Pyro4/core.py -=================================================================== ---- Pyro4-4.81.orig/src/Pyro4/core.py -+++ Pyro4-4.81/src/Pyro4/core.py -@@ -987,7 +987,7 @@ def expose(method_or_class): - func._pyroExposed = True - return method_or_class - attrname = getattr(method_or_class, "__name__", None) -- if not attrname: -+ if not attrname or isinstance(method_or_class, (classmethod, staticmethod)): - # we could be dealing with a descriptor (classmethod/staticmethod), this means the order of the decorators is wrong - if inspect.ismethoddescriptor(method_or_class): - attrname = method_or_class.__get__(None, dict).__name__ diff --git a/python-Pyro4.changes b/python-Pyro4.changes index 91c91a8..ca04815 100644 --- a/python-Pyro4.changes +++ b/python-Pyro4.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Feb 21 11:43:49 UTC 2023 - Daniel Garcia + +- Delete Pyro4-pr238-py310-cmethod-smethod.patch +- Skip python 3.11, it's not supported and won't be supported. It's + recommended to use Pyro5, gh#irmen/Pyro4#246 +- Update to v4.82 + * fixed @expose issue on static method/classmethod due to API change in Python 3.10 + * switched from travis to using github actions for CI builds and tests + * Python 3.10 is now included in the unit test runs + ------------------------------------------------------------------- Tue Dec 21 18:29:33 UTC 2021 - Ben Greiner diff --git a/python-Pyro4.spec b/python-Pyro4.spec index e747eb4..5ff8f69 100644 --- a/python-Pyro4.spec +++ b/python-Pyro4.spec @@ -1,7 +1,7 @@ # # spec file for package python-Pyro4 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Do not support pyhon 3.11, and will never support it, it recommends +# to use Pyro5, gh#irmen/Pyro4#246 +%define skip_python311 1 %bcond_without python2 Name: python-Pyro4 -Version: 4.81 +Version: 4.82 Release: 0 Summary: Distributed object middleware for Python (RPC) License: MIT URL: https://github.com/irmen/Pyro4 Source: https://files.pythonhosted.org/packages/source/P/Pyro4/Pyro4-%{version}.tar.gz BuildRequires: %{python_module setuptools} -# PATCH-FIX-UPSTREAM Pyro4-pr238-py310-cmethod-smethod.patch gh#irmen/Pyro4#238 -Patch0: Pyro4-pr238-py310-cmethod-smethod.patch BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-serpent >= 1.27