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 5AC2E15808B for ; Sun, 10 Apr 2022 08:58:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 268BAE08A2; Sun, 10 Apr 2022 08:58:17 +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 E95F9E08A2 for ; Sun, 10 Apr 2022 08:58:16 +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 DF2013417C7 for ; Sun, 10 Apr 2022 08:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30DCF39F for ; Sun, 10 Apr 2022 08:58:13 +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: <1649581090.fd8371af1880ddd6a05ffb6d873282b6cef8bc1a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ruamel-yaml/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild X-VCS-Directories: dev-python/ruamel-yaml/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: fd8371af1880ddd6a05ffb6d873282b6cef8bc1a X-VCS-Branch: master Date: Sun, 10 Apr 2022 08:58:13 +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: 671cdbbd-afec-4fee-ac02-5e0f215cb432 X-Archives-Hash: 23dd50bb1dca9d89d799a346171564d9 commit: fd8371af1880ddd6a05ffb6d873282b6cef8bc1a Author: Michał Górny gentoo org> AuthorDate: Sun Apr 10 08:13:20 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Apr 10 08:58:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd8371af dev-python/ruamel-yaml: PEP517, remove namespace dep Signed-off-by: Michał Górny gentoo.org> .../ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild new file mode 100644 index 000000000000..004d9aa196d3 --- /dev/null +++ b/dev-python/ruamel-yaml/ruamel-yaml-0.17.21-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{8..10} ) + +inherit distutils-r1 + +MY_P="${P/-/.}" +DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation" +HOMEPAGE=" + https://pypi.org/project/ruamel.yaml/ + https://sourceforge.net/projects/ruamel-yaml/ +" +# PyPI tarballs do not include tests +SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz" +S="${WORKDIR}"/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_test() { + local EPYTEST_DESELECT=() + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + _test/test_deprecation.py::test_collections_deprecation + ) + local EPYTEST_IGNORE=( + # Old PyYAML tests from lib/ require special set-up and are + # invoked indirectly via test_z_olddata, tell pytest itself + # to leave the subdir alone. + _test/lib/ + ) + + # this is needed to keep the tests working while + # dev-python/namespace-ruamel is still installed + cat > "${BUILD_DIR}/install$(python_get_sitedir)"/ruamel/__init__.py <<-EOF || die + __path__ = __import__('pkgutil').extend_path(__path__, __name__) + EOF + epytest + rm "${BUILD_DIR}/install$(python_get_sitedir)"/ruamel/__init__.py || die +}