2018-06-02 03:46:00 +00:00
|
|
|
#
|
2021-11-08 20:26:26 +00:00
|
|
|
# spec file
|
2018-06-02 03:46:00 +00:00
|
|
|
#
|
2023-02-21 08:31:48 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-06-02 03:46:00 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:00:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-06-02 03:46:00 +00:00
|
|
|
|
|
|
|
|
2022-09-21 07:46:57 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2019-05-24 11:56:01 +00:00
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
%define psuffix -test
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%define psuffix %{nil}
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
2021-11-08 20:26:26 +00:00
|
|
|
%global skip_python2 1
|
2019-05-24 11:56:01 +00:00
|
|
|
Name: python-rpyc%{psuffix}
|
2022-12-06 18:00:11 +00:00
|
|
|
Version: 5.3.0
|
2018-06-02 03:46:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Remote Python Call (RPyC), a RPC library
|
2018-12-04 14:00:56 +00:00
|
|
|
License: MIT
|
2018-06-02 03:46:00 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-06-05 07:26:23 +00:00
|
|
|
URL: https://github.com/tomerfiliba/rpyc
|
2019-05-24 11:56:01 +00:00
|
|
|
Source: https://github.com/tomerfiliba/rpyc/archive/%{version}.tar.gz
|
2022-09-20 16:51:37 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2018-06-02 03:46:00 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-19 08:48:42 +00:00
|
|
|
Requires: python-plumbum >= 1.2
|
2019-06-05 07:26:23 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-11-08 20:26:26 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-06-05 07:26:23 +00:00
|
|
|
BuildArch: noarch
|
2019-05-24 11:56:01 +00:00
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module gevent}
|
2020-03-19 08:48:42 +00:00
|
|
|
BuildRequires: %{python_module plumbum >= 1.2}
|
2020-06-03 12:53:49 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-05-24 11:56:01 +00:00
|
|
|
BuildRequires: %{python_module rpyc = %{version}}
|
2022-09-26 08:19:11 +00:00
|
|
|
BuildRequires: gcc-c++
|
2019-05-24 11:56:01 +00:00
|
|
|
%endif
|
2018-06-02 03:46:00 +00:00
|
|
|
%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}
|
2022-09-20 16:51:37 +00:00
|
|
|
# Replace hashbangs
|
|
|
|
sed -i -e "s|env python|python%{python_bin_suffix}|" rpyc/cli/rpyc_classic.py rpyc/cli/rpyc_registry.py
|
2018-06-02 03:46:00 +00:00
|
|
|
|
|
|
|
%build
|
2022-09-20 16:51:37 +00:00
|
|
|
%pyproject_wheel
|
2018-06-02 03:46:00 +00:00
|
|
|
|
|
|
|
%install
|
2019-05-24 11:56:01 +00:00
|
|
|
%if !%{with test}
|
2022-09-20 16:51:37 +00:00
|
|
|
%pyproject_install
|
2018-06-02 03:46:00 +00:00
|
|
|
%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
|
2019-05-24 11:56:01 +00:00
|
|
|
%endif
|
2018-06-02 03:46:00 +00:00
|
|
|
|
2019-05-24 11:56:01 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
2023-02-21 08:31:48 +00:00
|
|
|
donttest="TestDeploy or Test_Ssh or TestUdpRegistry or win32pipes or test_server_stops or test_immutable_object_return or test_return_of_modified_parameter or test_return_of_unmodified_parameter or test_dataframe_pickling or test_ssl_conenction or test_connection"
|
|
|
|
# Fails with python 3.11
|
|
|
|
donttest+=" or test_gdb"
|
|
|
|
%pytest -k "not ($donttest)"
|
2019-05-24 11:56:01 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if !%{with test}
|
2018-06-02 03:46:00 +00:00
|
|
|
%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
|
2023-02-21 08:31:48 +00:00
|
|
|
%{python_sitelib}/rpyc
|
|
|
|
%{python_sitelib}/rpyc-%{version}*-info
|
2019-05-24 11:56:01 +00:00
|
|
|
%endif
|
2018-06-02 03:46:00 +00:00
|
|
|
|
|
|
|
%changelog
|