From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9B52158089 for ; Sun, 29 Oct 2023 06:14:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0B9962BC015; Sun, 29 Oct 2023 06:14:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD5972BC015 for ; Sun, 29 Oct 2023 06:14:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8DB3335C2A for ; Sun, 29 Oct 2023 06:14:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 236881289 for ; Sun, 29 Oct 2023 06:14:42 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1698560064.b5551fb4e3e925a6cae418d94d5257a00e0965c9.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rpyc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/rpyc/rpyc-5.3.1-r1.ebuild X-VCS-Directories: dev-python/rpyc/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: b5551fb4e3e925a6cae418d94d5257a00e0965c9 X-VCS-Branch: master Date: Sun, 29 Oct 2023 06:14:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f79306f9-9f32-4b0e-898a-eb173c507d4c X-Archives-Hash: 83fb8755e935569279a53da4dfadc695 commit: b5551fb4e3e925a6cae418d94d5257a00e0965c9 Author: Andrey Grozin gentoo org> AuthorDate: Sun Oct 29 06:14:24 2023 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Sun Oct 29 06:14:24 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5551fb4 dev-python/rpyc: add python3_12 Signed-off-by: Andrey Grozin gentoo.org> dev-python/rpyc/rpyc-5.3.1-r1.ebuild | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/dev-python/rpyc/rpyc-5.3.1-r1.ebuild b/dev-python/rpyc/rpyc-5.3.1-r1.ebuild new file mode 100644 index 000000000000..4c2567d387f5 --- /dev/null +++ b/dev-python/rpyc/rpyc-5.3.1-r1.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..12} ) + +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 ~arm64 ~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 +}