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 9259915806E for ; Sat, 27 May 2023 10:12:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5889FE088F; Sat, 27 May 2023 10:12:40 +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 39EA4E088F for ; Sat, 27 May 2023 10:12:40 +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 2B9F4341080 for ; Sat, 27 May 2023 10:12:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87034A7A for ; Sat, 27 May 2023 10:12:37 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1685182337.a0eece665f3c1c43e6bed799ead6190591296cfa.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pkgcheck/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/pkgcheck/pkgcheck-0.10.24.ebuild dev-util/pkgcheck/pkgcheck-9999.ebuild X-VCS-Directories: dev-util/pkgcheck/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a0eece665f3c1c43e6bed799ead6190591296cfa X-VCS-Branch: master Date: Sat, 27 May 2023 10:12:37 +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: c133ad0f-1121-4f4b-9e24-e011aab96045 X-Archives-Hash: e86235e1892806eda2b3eadf6ee4dc9a commit: a0eece665f3c1c43e6bed799ead6190591296cfa Author: Sam James gentoo org> AuthorDate: Sat May 27 10:08:51 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat May 27 10:12:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0eece66 dev-util/pkgcheck: enable py3.12 Signed-off-by: Sam James gentoo.org> dev-util/pkgcheck/pkgcheck-0.10.24.ebuild | 16 ++++++++++++++-- dev-util/pkgcheck/pkgcheck-9999.ebuild | 16 ++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/dev-util/pkgcheck/pkgcheck-0.10.24.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.24.ebuild index 60b9b8d6e828..2a3ddbf5026a 100644 --- a/dev-util/pkgcheck/pkgcheck-0.10.24.ebuild +++ b/dev-util/pkgcheck/pkgcheck-0.10.24.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit elisp-common distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then @@ -50,7 +50,9 @@ BDEPEND="${RDEPEND} dev-python/wheel test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/requests[${PYTHON_USEDEP}] + ' python3_{10..11} ) dev-vcs/git ) " @@ -71,6 +73,16 @@ src_compile() { fi } +python_test() { + if ! has_version -b "dev-python/requests[${PYTHON_USEDEP}" ; then + EPYTEST_DESELECT=( + tests/checks/test_all.py::TestNetworkCheck::test_network_enabled + ) + fi + + epytest +} + python_install_all() { local DOCS=( NEWS.rst ) [[ ${PV} == *9999 ]] || doman man/* diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index 95b29b01a08f..223c78696997 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit elisp-common distutils-r1 optfeature if [[ ${PV} == *9999 ]] ; then @@ -50,7 +50,9 @@ BDEPEND="${RDEPEND} dev-python/wheel test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/requests[${PYTHON_USEDEP}] + ' python3_{10..11} ) dev-vcs/git ) " @@ -71,6 +73,16 @@ src_compile() { fi } +python_test() { + if ! has_version -b "dev-python/requests[${PYTHON_USEDEP}" ; then + EPYTEST_DESELECT=( + tests/checks/test_all.py::TestNetworkCheck::test_network_enabled + ) + fi + + epytest +} + python_install_all() { local DOCS=( NEWS.rst ) [[ ${PV} == *9999 ]] || doman man/*