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 92D0A158088 for ; Wed, 26 Jan 2022 05:25:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2A782BC019; Wed, 26 Jan 2022 05:25:06 +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 87CFD2BC019 for ; Wed, 26 Jan 2022 05:25:06 +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 46B68335D27 for ; Wed, 26 Jan 2022 05:25:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61B20262 for ; Wed, 26 Jan 2022 05:25:02 +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: <1643174699.99732736d62a82b0e238d1e00949871418d1b2d9.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pdm-pep517/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pdm-pep517/pdm-pep517-0.10.1-r1.ebuild X-VCS-Directories: dev-python/pdm-pep517/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 99732736d62a82b0e238d1e00949871418d1b2d9 X-VCS-Branch: master Date: Wed, 26 Jan 2022 05:25:02 +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: bb09a81d-40ad-4720-a672-74888195e930 X-Archives-Hash: 2b6d0927acd151b226c15906ab850c2d commit: 99732736d62a82b0e238d1e00949871418d1b2d9 Author: Michał Górny gentoo org> AuthorDate: Tue Jan 25 21:38:01 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jan 26 05:24:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99732736 dev-python/pdm-pep517: Unbundle dependencies Signed-off-by: Michał Górny gentoo.org> dev-python/pdm-pep517/pdm-pep517-0.10.1-r1.ebuild | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-python/pdm-pep517/pdm-pep517-0.10.1-r1.ebuild b/dev-python/pdm-pep517/pdm-pep517-0.10.1-r1.ebuild new file mode 100644 index 000000000000..425f36257281 --- /dev/null +++ b/dev-python/pdm-pep517/pdm-pep517-0.10.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata" +HOMEPAGE=" + https://pypi.org/project/pdm-pep517/ + https://github.com/pdm-project/pdm-pep517/ +" +SRC_URI=" + https://github.com/pdm-project/pdm-pep517/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/cerberus-1.3.4[${PYTHON_USEDEP}] + >=dev-python/packaging-21.0[${PYTHON_USEDEP}] + >=dev-python/toml-0.10.2[${PYTHON_USEDEP}] +" +BDEPEND=" + ${RDEPEND} + test? ( + dev-vcs/git + ) +" +# setuptools are used to build C extensions +RDEPEND+=" + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + rm -r pdm/pep517/_vendor || die + find -name '*.py' -exec sed \ + -e 's:from pdm\.pep517\._vendor\.:from :' \ + -e 's:from pdm\.pep517\._vendor ::' \ + -i {} + || die + distutils-r1_src_prepare +} + +src_test() { + git config --global user.email "test@example.com" || die + git config --global user.name "Test User" || die + distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=() + if [[ ${EPYTHON} == pypy3 ]]; then + EPYTEST_DESELECT+=( + tests/test_wheel.py::test_override_tags_in_wheel_filename + ) + fi + epytest +}