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 79F4915808B for ; Sun, 10 Apr 2022 08:58:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79712E086D; Sun, 10 Apr 2022 08:58:16 +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 30DD3E0863 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 8D3293417E2 for ; Sun, 10 Apr 2022 08:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07098397 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: <1649581088.c6ab3b3d3c899fc8fbb6e13595f153e551c88948.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ruamel-std-pathlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild X-VCS-Directories: dev-python/ruamel-std-pathlib/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c6ab3b3d3c899fc8fbb6e13595f153e551c88948 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: 7fdc3d8f-d1bc-44f2-9489-b916be37818d X-Archives-Hash: 35efb919afbf7b5f749b9bba63af657f commit: c6ab3b3d3c899fc8fbb6e13595f153e551c88948 Author: Michał Górny gentoo org> AuthorDate: Sun Apr 10 07:51:52 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Apr 10 08:58:08 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6ab3b3d dev-python/ruamel-std-pathlib: Remove namespace dep Signed-off-by: Michał Górny gentoo.org> .../ruamel-std-pathlib-0.9.2-r1.ebuild | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild b/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild new file mode 100644 index 000000000000..7ebe0572a78b --- /dev/null +++ b/dev-python/ruamel-std-pathlib/ruamel-std-pathlib-0.9.2-r1.ebuild @@ -0,0 +1,40 @@ +# 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="${PN//-/.}-${PV}" +DESCRIPTION="Ruamel enhancements to pathlib and pathlib2" +HOMEPAGE=" + https://pypi.org/project/ruamel.std.pathlib/ + https://sourceforge.net/projects/ruamel-std-pathlib/ +" +# PyPI tarballs do not include tests +SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz -> ${P}.tar.xz" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +distutils_enable_tests pytest + +python_compile() { + distutils-r1_python_compile + find "${BUILD_DIR}" -name '*.pth' -delete || die +} + +python_test() { + # 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 +}