Accepting request 941983 from home:bnavigator:python-rpm-macros

- Update to v4.81
  * fix some typo's in docs
  * corrected some minor other things in docs
  * Python 3.9 is now included in the unit test runs
  * No actual code changes.
- (update just to satisfy the weekly report on d:l:python* scripts)
- Add patch Pyro4-pr238-py310-cmethod-smethod.patch
  * gh#irmen/Pyro4#238

OBS-URL: https://build.opensuse.org/request/show/941983
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro4?expand=0&rev=23
This commit is contained in:
2021-12-21 22:57:18 +00:00
committed by Git OBS Bridge
parent f28fa4b602
commit 6385ef2ce5
5 changed files with 35 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:46847ca703de3f483fbd0b2d22622f36eff03e6ef7ec7704d4ecaa3964cb2220
size 515103

3
Pyro4-4.81.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e130da06478b813173b959f7013d134865e07fbf58cc5f1a2598f99479cdac5f
size 514678

View File

@@ -0,0 +1,13 @@
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__

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Dec 21 18:29:33 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to v4.81
* fix some typo's in docs
* corrected some minor other things in docs
* Python 3.9 is now included in the unit test runs
* No actual code changes.
- (update just to satisfy the weekly report on d:l:python* scripts)
- Add patch Pyro4-pr238-py310-cmethod-smethod.patch
* gh#irmen/Pyro4#238
-------------------------------------------------------------------
Fri Feb 26 05:42:18 UTC 2021 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -19,18 +19,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-Pyro4
Version: 4.80
Version: 4.81
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
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
Recommends: ca-certificates
Recommends: python-cloudpickle >= 0.4.0
Recommends: python-dill >= 0.2.6
@@ -64,7 +66,7 @@ building distributed applications. Pyro is a pure Python library and
runs on many different platforms and Python versions.
%prep
%setup -q -n Pyro4-%{version}
%autosetup -p1 -n Pyro4-%{version}
%build
%python_build
@@ -80,7 +82,6 @@ runs on many different platforms and Python versions.
%python_clone -a %{buildroot}%{_bindir}/pyro4-test-echoserver
%check
# testContextAndSock missing cert fixtures https://github.com/irmen/Pyro4/issues/216
# socket tests require at least lo interface thus skip them
skip="testContextAndSock"
skip+=" or testGetIP or testAutoClean"
@@ -115,6 +116,7 @@ export PYTHONPATH=${PWD}/tests/PyroTests
%python_alternative %{_bindir}/pyro4-ns
%python_alternative %{_bindir}/pyro4-nsc
%python_alternative %{_bindir}/pyro4-test-echoserver
%{python_sitelib}/*
%{python_sitelib}/Pyro4
%{python_sitelib}/Pyro4-%{version}*-info
%changelog