14
0
forked from pool/python-rpyc
Files
python-rpyc/python-rpyc.spec
Daniel Garcia cb0eb843bf - update to 5.2.3:
* #503 rpyc_classic.py and rpyc_registry.py are tracked by pyproject.toml and
    should resolve now. Moreover, they can now be resolved without their file
    suffixes as well.
  * Release 5.2.0
    * Added support for using decorators to expose methods (see #292)
    * Allow BgServingThread serve and sleep intervals to be customized
    * Avoid redefining hasattr_static on every check_attr` call
    * Updated SSL context usage to avoid deprecated aspects and changes
    * Add a configurable timeout on the zero deploy close method
    * Fixed --mode CLI argument for rpyc_registry
    * Fixed propagation of AttributeErrors raised by exposed descriptors
    * Allow filtering by host on list_services
    * and #502 Improved documentation and fixed typos
    * Some work around race conditions but proper fix is rather involved (see #491)
  * Release 5.1.0
    * Added types.MappingProxyType to builtin_types #470
    * Updated documentation #469
    * Fixed spradic dealock issues from wait within AsyncResult #463 and #455
    * Fixed chained Classic RPyC connections #460
    * Added ability to list Registry services #452
    * Fixed bug that prevented RPyC from running on systems without SSL #451
    * Fixed unexpected behavior with respect to auto_register #445
    * Fixed propagation of chunk_size parameter for download_dir #433

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpyc?expand=0&rev=22
2022-09-20 16:51:37 +00:00

103 lines
3.1 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2022 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor %{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%global skip_python2 1
Name: python-rpyc%{psuffix}
Version: 5.2.3
Release: 0
Summary: Remote Python Call (RPyC), a RPC library
License: MIT
Group: Development/Languages/Python
URL: https://github.com/tomerfiliba/rpyc
Source: https://github.com/tomerfiliba/rpyc/archive/%{version}.tar.gz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-plumbum >= 1.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module gevent}
BuildRequires: %{python_module plumbum >= 1.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rpyc = %{version}}
%endif
%python_subpackages
%description
RPyC (pronounced like "are-pie-see"), or Remote Python Call, is a
transparent library for symmetrical remote procedure calls,
clustering, and distributed-computing. RPyC makes use of
object-proxying, a technique that employs python's dynamic nature, to
overcome the physical boundaries between processes and computers, so
that remote objects can be manipulated as if they were local.
%prep
%setup -q -n rpyc-%{version}
# Replace hashbangs
sed -i -e "s|env python|python%{python_bin_suffix}|" rpyc/cli/rpyc_classic.py rpyc/cli/rpyc_registry.py
%build
%pyproject_wheel
%install
%if !%{with test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mv %{buildroot}%{_bindir}/rpyc_classic.py %{buildroot}%{_bindir}/rpyc_classic
mv %{buildroot}%{_bindir}/rpyc_registry.py %{buildroot}%{_bindir}/rpyc_registry
%python_clone -a %{buildroot}%{_bindir}/rpyc_classic
%python_clone -a %{buildroot}%{_bindir}/rpyc_registry
%endif
%if %{with test}
%check
%pytest -k 'not (TestDeploy or Test_Ssh or TestUdpRegistry or win32pipes)'
%endif
%if !%{with test}
%post
%{python_install_alternative rpyc_classic rpyc_registry}
%postun
%python_uninstall_alternative rpyc_classic
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/rpyc_classic
%python_alternative %{_bindir}/rpyc_registry
%{python_sitelib}/*
%endif
%changelog