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 76AF5158089 for ; Fri, 27 Oct 2023 18:07:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71A802BC050; Fri, 27 Oct 2023 18:07:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5BA102BC050 for ; Fri, 27 Oct 2023 18:07:20 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C94B335C7E for ; Fri, 27 Oct 2023 18:07:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 258DC12DB for ; Fri, 27 Oct 2023 18:07:18 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1698430004.c26fff39a30acead69441af674c73fab1ebe0713.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rencode/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/rencode/Manifest dev-python/rencode/rencode-1.0.6-r3.ebuild X-VCS-Directories: dev-python/rencode/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c26fff39a30acead69441af674c73fab1ebe0713 X-VCS-Branch: master Date: Fri, 27 Oct 2023 18:07:18 +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: 21bf70a7-840a-4ce6-9456-2e9083c99372 X-Archives-Hash: 0de6de2a9912883a297c49c614fae460 commit: c26fff39a30acead69441af674c73fab1ebe0713 Author: Michał Górny gentoo org> AuthorDate: Fri Oct 27 18:06:44 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Oct 27 18:06:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c26fff39 dev-python/rencode: Enable py3.12 Signed-off-by: Michał Górny gentoo.org> dev-python/rencode/Manifest | 2 +- dev-python/rencode/rencode-1.0.6-r3.ebuild | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/dev-python/rencode/Manifest b/dev-python/rencode/Manifest index ae583634e3d7..8bb5414afd6f 100644 --- a/dev-python/rencode/Manifest +++ b/dev-python/rencode/Manifest @@ -1 +1 @@ -DIST rencode-1.0.6.tar.gz 25455 BLAKE2B def013a569a53e2b2d96b3430c13676810bc5879e565f091dbc44f1ae950b8ec7ca0fa5e35a974432fd71a1bcca5a3f1f18bb2a9f042480167ab50e4f0aba8c3 SHA512 f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f +DIST rencode-1.0.6.gh.tar.gz 25455 BLAKE2B def013a569a53e2b2d96b3430c13676810bc5879e565f091dbc44f1ae950b8ec7ca0fa5e35a974432fd71a1bcca5a3f1f18bb2a9f042480167ab50e4f0aba8c3 SHA512 f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f diff --git a/dev-python/rencode/rencode-1.0.6-r3.ebuild b/dev-python/rencode/rencode-1.0.6-r3.ebuild index 66a639cc8506..e2cc427220b3 100644 --- a/dev-python/rencode/rencode-1.0.6-r3.ebuild +++ b/dev-python/rencode/rencode-1.0.6-r3.ebuild @@ -3,20 +3,29 @@ EAPI=8 +DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 DESCRIPTION="similar to bencode from the BitTorrent project" -HOMEPAGE="https://github.com/aresch/rencode" -SRC_URI="https://github.com/aresch/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE=" + https://github.com/aresch/rencode/ + https://pypi.org/project/rencode/ +" +SRC_URI=" + https://github.com/aresch/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" LICENSE="GPL-3+" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv ~sparc x86 ~amd64-linux ~x86-linux" -BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" distutils_enable_tests pytest @@ -28,9 +37,6 @@ PATCHES=( ) python_test() { - # The C extension ("_rencode") can't be imported from "${S}/rencode" - # so we need to cd somewhere else to make sure "rencode" is imported - # from ${BUILD_DIR}/lib (thanks to PYTHONPATH). - cd "${T}" || die - epytest "${S}" + rm -rf rencode || die + epytest }