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 83D76158090 for ; Sat, 21 May 2022 06:47:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92662E08CD; Sat, 21 May 2022 06:47:23 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 763F9E08CD for ; Sat, 21 May 2022 06:47:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 82A6F341256 for ; Sat, 21 May 2022 06:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0143E4E5 for ; Sat, 21 May 2022 06:47: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: <1653115631.1f5d302eadccdfbc16c392b6191242df292879e8.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pbr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pbr/pbr-5.9.0.ebuild X-VCS-Directories: dev-python/pbr/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1f5d302eadccdfbc16c392b6191242df292879e8 X-VCS-Branch: master Date: Sat, 21 May 2022 06:47: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: d725528d-2a26-4458-ab83-8efc11907faf X-Archives-Hash: f0ba5f1918135605d3cceee0044fb813 commit: 1f5d302eadccdfbc16c392b6191242df292879e8 Author: Michał Górny gentoo org> AuthorDate: Sat May 21 06:03:57 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 21 06:47:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f5d302e dev-python/pbr: Enable py3.11 Signed-off-by: Michał Górny gentoo.org> dev-python/pbr/pbr-5.9.0.ebuild | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/dev-python/pbr/pbr-5.9.0.ebuild b/dev-python/pbr/pbr-5.9.0.ebuild index c78b5363efe1..35ac02ee250f 100644 --- a/dev-python/pbr/pbr-5.9.0.ebuild +++ b/dev-python/pbr/pbr-5.9.0.ebuild @@ -4,12 +4,18 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_TESTED=( python3_{8..10} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_11 pypy3 ) PYTHON_REQ_USE="threads(+)" + inherit distutils-r1 DESCRIPTION="Inject some useful and sensible default behaviors into setuptools" -HOMEPAGE="https://github.com/openstack/pbr/" +HOMEPAGE=" + https://opendev.org/openstack/pbr/ + https://github.com/openstack/pbr/ + https://pypi.org/project/pbr/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" @@ -35,22 +41,18 @@ BDEPEND=" >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] >=dev-python/virtualenv-20.0.3[${PYTHON_USEDEP}] dev-vcs/git - ' 'python*') + ' "${PYTHON_TESTED[@]}") )" distutils_enable_tests unittest -# This normally actually belongs here. python_prepare_all() { # TODO: investigate sed -e s':test_console_script_develop:_&:' \ -e s':test_console_script_install:_&:' \ -i pbr/tests/test_core.py || die - # broken on pypy3 - # https://bugs.launchpad.net/pbr/+bug/1881479 - sed -e 's:test_generates_c_extensions:_&:' \ - -i pbr/tests/test_packaging.py || die - rm pbr/tests/test_wsgi.py || die "couldn't remove wsgi network tests" + # network + rm pbr/tests/test_wsgi.py || die # installs random packages via pip from the Internet sed -e 's:test_requirement_parsing:_&:' \ -e 's:test_pep_517_support:_&:' \ @@ -60,7 +62,7 @@ python_prepare_all() { } python_test() { - if [[ ${EPYTHON} != python* ]]; then + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then einfo "Testing on ${EPYTHON} is not supported at the moment" return fi