14
0
forked from pool/python-Pyro5
Files
python-Pyro5/python-Pyro5.spec

97 lines
3.3 KiB
RPMSpec
Raw Normal View History

- New package, in a sense, based on Pyro4. - Update to 5.14: * http gateway now also has OPTION call with CORS * fixed deprecation warning about setting threads in daemon mode * fixed more threading module deprecation warnings * proxy now correctly exposes remote __len__, __iter__ and __getitem__ etc * improved type hint for expose() * added Proxy._pyroLocalSocket property that is the local socket address used in the proxy. * serve() no longer defaults host parameter to empty string, but None. * fixed a Python 3.11 serialization issue * fixed @expose issue on static method/classmethod due to API change in Python 3.10 * introduced SERPENT_BYTES_REPR config item (and updated serpent library version requirement for this) * flush nameserver output to console before entering request loop * added optional boolean “weak” parameter to Daemon.register(), to register a weak reference to the server object that will be unregistered automatically when the server object gets deleted. * fixed error when import Pyro5.server * documented SSL_CACERTS config item * reworked the timezones example. * httpgateway message data bytearray type fix * fixed regex lookup index error in nameserver * the 4 custom class (un)register methods on the SerializerBase class are now also directly available in the api module * fixed a silent error in the server when doing error handling * fixed empty nameserver host lookup issue * added privilege-separation example * added methodcall_error_handler to Daemon that allows you to provide a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=1
2023-02-22 07:55:49 +00:00
#
# spec file for package python-Pyro5
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-Pyro5
Version: 5.14
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 FIXME
Patch0: add-network-marker.patch
- New package, in a sense, based on Pyro4. - Update to 5.14: * http gateway now also has OPTION call with CORS * fixed deprecation warning about setting threads in daemon mode * fixed more threading module deprecation warnings * proxy now correctly exposes remote __len__, __iter__ and __getitem__ etc * improved type hint for expose() * added Proxy._pyroLocalSocket property that is the local socket address used in the proxy. * serve() no longer defaults host parameter to empty string, but None. * fixed a Python 3.11 serialization issue * fixed @expose issue on static method/classmethod due to API change in Python 3.10 * introduced SERPENT_BYTES_REPR config item (and updated serpent library version requirement for this) * flush nameserver output to console before entering request loop * added optional boolean “weak” parameter to Daemon.register(), to register a weak reference to the server object that will be unregistered automatically when the server object gets deleted. * fixed error when import Pyro5.server * documented SSL_CACERTS config item * reworked the timezones example. * httpgateway message data bytearray type fix * fixed regex lookup index error in nameserver * the 4 custom class (un)register methods on the SerializerBase class are now also directly available in the api module * fixed a silent error in the server when doing error handling * fixed empty nameserver host lookup issue * added privilege-separation example * added methodcall_error_handler to Daemon that allows you to provide a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=1
2023-02-22 07:55:49 +00:00
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-serpent >= 1.41
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: ca-certificates
Recommends: python-cloudpickle >= 0.4.0
Recommends: python-dill >= 0.2.6
Recommends: python-msgpack-python >= 0.5.2
BuildArch: noarch
# SECTION test requirements
BuildRequires: sqlite3
BuildRequires: %{python_module cloudpickle >= 0.4.0}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module dill >= 0.2.6}
BuildRequires: %{python_module msgpack-python >= 0.5.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module serpent >= 1.41}
BuildRequires: ca-certificates
# /SECTION
%python_subpackages
%description
Pyro means PYthon Remote Objects.
It is a library for building applications in which objects can talk
to each other over the network. One can use normal Python method
calls, with almost every possible parameter and return value type,
and Pyro takes care of locating the right object on the right system
to execute the method. It also provides a set of features that enable
building distributed applications. Pyro is a pure Python library and
runs on many different platforms and Python versions.
%prep
%autosetup -p1 -n Pyro5-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pyro5-check-config
%python_clone -a %{buildroot}%{_bindir}/pyro5-echoserver
%python_clone -a %{buildroot}%{_bindir}/pyro5-httpgateway
%python_clone -a %{buildroot}%{_bindir}/pyro5-ns
%python_clone -a %{buildroot}%{_bindir}/pyro5-nsc
%check
%pytest -m "not network"
- New package, in a sense, based on Pyro4. - Update to 5.14: * http gateway now also has OPTION call with CORS * fixed deprecation warning about setting threads in daemon mode * fixed more threading module deprecation warnings * proxy now correctly exposes remote __len__, __iter__ and __getitem__ etc * improved type hint for expose() * added Proxy._pyroLocalSocket property that is the local socket address used in the proxy. * serve() no longer defaults host parameter to empty string, but None. * fixed a Python 3.11 serialization issue * fixed @expose issue on static method/classmethod due to API change in Python 3.10 * introduced SERPENT_BYTES_REPR config item (and updated serpent library version requirement for this) * flush nameserver output to console before entering request loop * added optional boolean “weak” parameter to Daemon.register(), to register a weak reference to the server object that will be unregistered automatically when the server object gets deleted. * fixed error when import Pyro5.server * documented SSL_CACERTS config item * reworked the timezones example. * httpgateway message data bytearray type fix * fixed regex lookup index error in nameserver * the 4 custom class (un)register methods on the SerializerBase class are now also directly available in the api module * fixed a silent error in the server when doing error handling * fixed empty nameserver host lookup issue * added privilege-separation example * added methodcall_error_handler to Daemon that allows you to provide a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=1
2023-02-22 07:55:49 +00:00
%post
%{python_install_alternative pyro5-check-config pyro5-echoserver pyro5-httpgateway pyro5-ns pyro5-nsc}
%postun
%python_uninstall_alternative pyro5-check-config
%files %{python_files}
%license LICENSE
%python_alternative %{_bindir}/pyro5-check-config
%python_alternative %{_bindir}/pyro5-echoserver
%python_alternative %{_bindir}/pyro5-httpgateway
%python_alternative %{_bindir}/pyro5-ns
%python_alternative %{_bindir}/pyro5-nsc
%{python_sitelib}/Pyro5
%{python_sitelib}/Pyro5-%{version}*-info
%changelog