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 B1EDC158090 for ; Wed, 11 May 2022 17:55:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94D95E091F; Wed, 11 May 2022 17:54:59 +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 79A06E091F for ; Wed, 11 May 2022 17:54:59 +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 8EDDD341815 for ; Wed, 11 May 2022 17:54:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5075846A for ; Wed, 11 May 2022 17:54:55 +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: <1652291679.e49f92af61c3bac6df1295c2ddc52719c91b934f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hatchling/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hatchling/hatchling-0.24.0.ebuild X-VCS-Directories: dev-python/hatchling/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e49f92af61c3bac6df1295c2ddc52719c91b934f X-VCS-Branch: master Date: Wed, 11 May 2022 17:54:55 +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: 18138c2b-6866-487e-ace0-7fbc0edade7c X-Archives-Hash: 5def17d74e3cc6f459deedaee13e77c3 commit: e49f92af61c3bac6df1295c2ddc52719c91b934f Author: Michał Górny gentoo org> AuthorDate: Wed May 11 17:24:52 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed May 11 17:54:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e49f92af dev-python/hatchling: Enable py3.11 Signed-off-by: Michał Górny gentoo.org> dev-python/hatchling/hatchling-0.24.0.ebuild | 30 +++++++++++++++------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/dev-python/hatchling/hatchling-0.24.0.ebuild b/dev-python/hatchling/hatchling-0.24.0.ebuild index 5cabb7946eb7..c36ac5b6d543 100644 --- a/dev-python/hatchling/hatchling-0.24.0.ebuild +++ b/dev-python/hatchling/hatchling-0.24.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( pypy3 python3_{8..10} ) +PYTHON_COMPAT=( pypy3 python3_{8..11} ) inherit distutils-r1 @@ -35,25 +35,27 @@ RDEPEND=" BDEPEND=" ${RDEPEND} test? ( - dev-python/atomicwrites[${PYTHON_USEDEP}] - dev-python/click[${PYTHON_USEDEP}] - dev-python/httpx[${PYTHON_USEDEP}] - dev-python/platformdirs[${PYTHON_USEDEP}] - dev-python/rich[${PYTHON_USEDEP}] - dev-python/tomli-w[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/atomicwrites[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/platformdirs[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + ' pypy3 python3_{8..10} # TODO: 3.11 when deps are ported + ) ) " distutils_enable_tests pytest -python_compile() { - # TODO: remove this when gpep517 is the norm - local -x PYTHONPATH=src - distutils-r1_python_compile -} - python_test() { + if ! has "${EPYTHON}" pypy3 python3.{8..10}; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + local -x EPYTEST_DESELECT=( # these run pip to install stuff tests/backend/dep/test_core.py::test_dependency_found