commit: cc5b145888ad0551e7f396c1a64968cff0aa662a
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 16 10:23:04 2023 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 10:23:40 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc5b1458
dev-python/rpyc: bump to 5.3.0
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
dev-python/rpyc/Manifest | 1 +
dev-python/rpyc/files/rpyc-5.3.0-no-gevent.patch | 34 ++++++++++++
dev-python/rpyc/rpyc-5.3.0.ebuild | 69 ++++++++++++++++++++++++
3 files changed, 104 insertions(+)
diff --git a/dev-python/rpyc/Manifest b/dev-python/rpyc/Manifest
index 4f77b1578c88..8a75fcd5f95b 100644
--- a/dev-python/rpyc/Manifest
+++ b/dev-python/rpyc/Manifest
@@ -1 +1,2 @@
DIST rpyc-5.2.3_p1.tar.gz 1269198 BLAKE2B
288568fcd34787850968d4e3fd9ca7c2d29e506f1331b746104760e678dfef43fd30b08f68b3bdda6df84d488f88dc76cfdd23d5a5ad0a4cefeab468ac6a1b0b
SHA512
4b29899a51364779185d2b56f5d5ee4c650c40b8322e5594500222fdcec85414cdbabd41437467e2ff73124a79e8c9cde23dfe89138abb935732ccaba69de2bb
+DIST rpyc-5.3.0.gh.tar.gz 1270508 BLAKE2B
c7b0c06ea7151d80d84e057b7991cbc7bcb047f24544b7669d80218f9eeb9342ba58020f608bb615dea932a1380b0afb36ba9f8e216f139ba4aadd4a7efa344d
SHA512
371c60dedf3fba3232c5c1d7616a04b8cf2a8295e31b945ab51d0dee5ba5d8769062aafa860db85b951f0283b8800b61972a7f2f7fa3cc69929c7563e74be1ee
diff --git a/dev-python/rpyc/files/rpyc-5.3.0-no-gevent.patch
b/dev-python/rpyc/files/rpyc-5.3.0-no-gevent.patch
new file mode 100644
index 000000000000..026741dec361
--- /dev/null
+++ b/dev-python/rpyc/files/rpyc-5.3.0-no-gevent.patch
@@ -0,0 +1,34 @@
+diff -U3 -r rpyc-5.3.0.orig/rpyc/utils/server.py
rpyc-5.3.0/rpyc/utils/server.py
+--- rpyc-5.3.0.orig/rpyc/utils/server.py 2022-11-26 13:09:01.000000000
+0700
++++ rpyc-5.3.0/rpyc/utils/server.py 2023-02-16 16:15:14.153086884 +0700
+@@ -19,7 +19,7 @@
+ from rpyc.lib import safe_import, spawn, spawn_waitready
+ from rpyc.lib.compat import poll, get_exc_errno
+ signal = safe_import("signal")
+-gevent = safe_import("gevent")
++# gevent = safe_import("gevent")
+
+
+ class Server(object):
+@@ -559,13 +559,13 @@
+ self.clients.discard(sock)
+
+
+-class GeventServer(Server):
++# class GeventServer(Server):
+
+- """gevent based Server. Requires using ``gevent.monkey.patch_all()``."""
++# """gevent based Server. Requires using ``gevent.monkey.patch_all()``."""
+
+- def _register(self):
+- if self.auto_register:
+- gevent.spawn(self._bg_register)
++# def _register(self):
++# if self.auto_register:
++# gevent.spawn(self._bg_register)
+
+- def _accept_method(self, sock):
+- gevent.spawn(self._authenticate_and_serve_client, sock)
++# def _accept_method(self, sock):
++# gevent.spawn(self._authenticate_and_serve_client, sock)
+Только в rpyc-5.3.0.orig/tests: __pycache__
diff --git a/dev-python/rpyc/rpyc-5.3.0.ebuild
b/dev-python/rpyc/rpyc-5.3.0.ebuild
new file mode 100644
index 000000000000..bf999d1bb527
--- /dev/null
+++ b/dev-python/rpyc/rpyc-5.3.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Remote Python Call (RPyC), a transparent and symmetric RPC
library"
+HOMEPAGE="https://rpyc.readthedocs.io/en/latest/
+ https://pypi.org/project/rpyc/
+ https://github.com/tomerfiliba-org/rpyc"
+SRC_URI="https://github.com/tomerfiliba-org/rpyc/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+# USE flags gdb, numpy are used *only* to run tests depending on these packages
+IUSE="test numpy gdb"
+RESTRICT="!test? ( test )"
+
+CDEPEND="numpy? ( dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}] )
+ gdb? ( sys-devel/gdb )"
+
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="${CDEPEND}
+ dev-python/plumbum[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/${PN}-5.3.0-no-gevent.patch )
+
+src_prepare() {
+ default
+
+ # Windows specific test
+ rm tests/test_win32pipes.py || die "rm tests/test_win32pipes.py failed"
+
+ # These tests require running sshd
+ rm tests/test_ssh.py tests/test_deploy.py || die "rm test_ssh.py
test_deploy.py failed"
+
+ # This test requires internet access
+ rm tests/test_registry.py || die "rm test_registry.py failed"
+
+ # This test fails with NO_CIPHERS_AVAILABLE
+ rm tests/test_ssl.py || die "rm test_ssl.py failed"
+
+ # dev-python/gevent is being removed
+ rm tests/test_gevent_server.py || die "rm test_gevent_server.py failed"
+
+ if ! use numpy
+ then rm tests/test_service_pickle.py || die "rm test_service_pickle.py
failed"
+ fi
+
+ if ! use gdb
+ then rm tests/test_gdb.py || die "rm test_gdb.py failed"
+ fi
+}
+
+python_test() {
+ # for some reason, when tests are run via pytest or nose, some of them
hung
+ pushd tests > /dev/null || die "pushd tests failed"
+ for x in test_*.py
+ do
PYTHONPATH="${WORKDIR}"/${P}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages
${EPYTHON} ${x} || die "${x} failed"
+ done
+ popd > /dev/null
+}