Skip to content

Commit bd94201

Browse files
committed
dev-python/jaraco-collections: new package required by setuptools
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 718e70b commit bd94201

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

.github/workflows/portage-stable-packages-list

+1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ dev-python/hatchling
314314
dev-python/hatch-vcs
315315
dev-python/idna
316316
dev-python/installer
317+
dev-python/jaraco-collections
317318
dev-python/jaraco-context
318319
dev-python/jaraco-functools
319320
dev-python/jaraco-text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST jaraco_collections-5.1.0.tar.gz 19026 BLAKE2B b0ecae5ddfabe22aca0fb0cb4ef6c07dd0c6b56cfd6920787779eb47631c3b4001f35a97f040a71495975fce40d5ec509799d19e23b81ccbf4afbae461cf0624 SHA512 b03b247657ad25df0b86ad125728e37c8123fdd1834adfc16c7e41fb9c31b9d4c1b168ed40614b965caafc7dd55fd14bba8c355648c8b5cca13b50736bc32883
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_USE_PEP517=flit
7+
PYPI_PN=${PN/-/.}
8+
PYTHON_COMPAT=( python3_{10..13} python3_13t pypy3 )
9+
10+
inherit distutils-r1 pypi
11+
12+
DESCRIPTION="Models and classes to supplement the stdlib collections module"
13+
HOMEPAGE="
14+
https://github.com/jaraco/jaraco.collections/
15+
https://pypi.org/project/jaraco.collections/
16+
"
17+
18+
LICENSE="MIT"
19+
SLOT="0"
20+
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
21+
22+
RDEPEND="
23+
dev-python/jaraco-text[${PYTHON_USEDEP}]
24+
"
25+
26+
distutils_enable_tests pytest
27+
28+
src_configure() {
29+
grep -q 'build-backend = "setuptools' pyproject.toml ||
30+
die "Upstream changed build-backend, recheck"
31+
# write a custom pyproject.toml to ease setuptools bootstrap
32+
sed -i -e \
33+
's/build-backend = .*/build-backend = "flit_core.buildapi"/' \
34+
-e '/^name = /a\' -e "version = \"${PV}\"" \
35+
-e '/^dynamic =/d' \
36+
pyproject.toml || die
37+
}
38+
39+
python_test() {
40+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
41+
epytest
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="project">
5+
<email>python@gentoo.org</email>
6+
<name>Python</name>
7+
</maintainer>
8+
<stabilize-allarches/>
9+
<upstream>
10+
<remote-id type="pypi">jaraco.collections</remote-id>
11+
<remote-id type="github">jaraco/jaraco.collections</remote-id>
12+
<bugs-to>https://github.com/jaraco/jaraco.collections/issues</bugs-to>
13+
</upstream>
14+
</pkgmetadata>

0 commit comments

Comments
 (0)