From bba559049353c595775197f9fee1e59b6bf9a8af Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Fri, 3 Jan 2025 15:26:55 +0100 Subject: [PATCH] dev-python/jaraco-collections: new package required by setuptools Signed-off-by: Mathieu Tortuyaux --- .../workflows/portage-stable-packages-list | 1 + .../dev-python/jaraco-collections/Manifest | 1 + .../jaraco-collections-5.1.0.ebuild | 42 +++++++++++++++++++ .../jaraco-collections/metadata.xml | 14 +++++++ 4 files changed, 58 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/jaraco-collections-5.1.0.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/metadata.xml diff --git a/.github/workflows/portage-stable-packages-list b/.github/workflows/portage-stable-packages-list index e2635dcd79..568e01baee 100644 --- a/.github/workflows/portage-stable-packages-list +++ b/.github/workflows/portage-stable-packages-list @@ -314,6 +314,7 @@ dev-python/hatchling dev-python/hatch-vcs dev-python/idna dev-python/installer +dev-python/jaraco-collections dev-python/jaraco-context dev-python/jaraco-functools dev-python/jaraco-text diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/Manifest b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/Manifest new file mode 100644 index 0000000000..42943f3a45 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/Manifest @@ -0,0 +1 @@ +DIST jaraco_collections-5.1.0.tar.gz 19026 BLAKE2B b0ecae5ddfabe22aca0fb0cb4ef6c07dd0c6b56cfd6920787779eb47631c3b4001f35a97f040a71495975fce40d5ec509799d19e23b81ccbf4afbae461cf0624 SHA512 b03b247657ad25df0b86ad125728e37c8123fdd1834adfc16c7e41fb9c31b9d4c1b168ed40614b965caafc7dd55fd14bba8c355648c8b5cca13b50736bc32883 diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/jaraco-collections-5.1.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/jaraco-collections-5.1.0.ebuild new file mode 100644 index 0000000000..5f8806ef5b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/jaraco-collections-5.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYPI_PN=${PN/-/.} +PYTHON_COMPAT=( python3_{10..13} python3_13t pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Models and classes to supplement the stdlib collections module" +HOMEPAGE=" + https://github.com/jaraco/jaraco.collections/ + https://pypi.org/project/jaraco.collections/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + dev-python/jaraco-text[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "setuptools' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + sed -i -e \ + 's/build-backend = .*/build-backend = "flit_core.buildapi"/' \ + -e '/^name = /a\' -e "version = \"${PV}\"" \ + -e '/^dynamic =/d' \ + pyproject.toml || die +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/metadata.xml new file mode 100644 index 0000000000..02d1978b53 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-collections/metadata.xml @@ -0,0 +1,14 @@ + + + + + python@gentoo.org + Python + + + + jaraco.collections + jaraco/jaraco.collections + https://github.com/jaraco/jaraco.collections/issues + +