Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rpyc/
Date: Tue, 01 Nov 2022 10:43:18
Message-Id: 1667299379.ce13bbb27cbc701a661c12bf28c9f836961f80b1.grozin@gentoo
1 commit: ce13bbb27cbc701a661c12bf28c9f836961f80b1
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 10:42:59 2022 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 10:42:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce13bbb2
7
8 dev-python/rpyc: added python3_11
9
10 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
11
12 dev-python/rpyc/rpyc-5.2.3-r1.ebuild | 65 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 65 insertions(+)
14
15 diff --git a/dev-python/rpyc/rpyc-5.2.3-r1.ebuild b/dev-python/rpyc/rpyc-5.2.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..94f50daaf6dd
18 --- /dev/null
19 +++ b/dev-python/rpyc/rpyc-5.2.3-r1.ebuild
20 @@ -0,0 +1,65 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +DISTUTILS_USE_PEP517=hatchling
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Remote Python Call (RPyC), a transparent and symmetric RPC library"
31 +HOMEPAGE="https://rpyc.readthedocs.io/en/latest/
32 + https://pypi.org/project/rpyc/
33 + https://github.com/tomerfiliba-org/rpyc"
34 +SRC_URI="https://github.com/tomerfiliba-org/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +# USE flags gdb, numpy are used *only* to run tests depending on these packages
41 +IUSE="test numpy gdb"
42 +RESTRICT="!test? ( test )"
43 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
44 + numpy? ( dev-python/numpy[${PYTHON_USEDEP}] dev-python/pandas[${PYTHON_USEDEP}] )
45 + gdb? ( sys-devel/gdb )"
46 +
47 +RDEPEND="dev-python/plumbum[${PYTHON_USEDEP}]
48 + dev-python/gevent[${PYTHON_USEDEP}]"
49 +
50 +src_prepare() {
51 + default
52 +
53 + # Windows specific test
54 + rm tests/test_win32pipes.py || die "rm tests/test_win32pipes.py failed"
55 +
56 + # These tests require running sshd
57 + rm tests/test_ssh.py tests/test_deploy.py || die "rm test_ssh.py test_deploy.py failed"
58 +
59 + # This test requires internet access
60 + rm tests/test_registry.py || die "rm test_registry.py failed"
61 +
62 + # This test fails with NO_CIPHERS_AVAILABLE
63 + rm tests/test_ssl.py || die "rm test_ssl.py failed"
64 +
65 + # Temporarily removed
66 + # https://github.com/tomerfiliba-org/rpyc/issues/513
67 + rm tests/test_teleportation.py
68 +
69 + if ! use numpy
70 + then rm tests/test_service_pickle.py || die "rm test_service_pickle.py failed"
71 + fi
72 +
73 + if ! use gdb
74 + then rm tests/test_gdb.py || die "rm test_gdb.py failed"
75 + fi
76 +}
77 +
78 +python_test() {
79 + # for some reason, when tests are run via pytest or nose, some of them hung
80 + pushd tests > /dev/null || die "pushd tests failed"
81 + for x in test_*.py
82 + do PYTHONPATH="${WORKDIR}"/${P}-${EPYTHON/./_}/install/usr/lib/${EPYTHON}/site-packages ${EPYTHON} ${x} || die "${x} failed"
83 + done
84 + popd > /dev/null
85 +}