Skip to content

Commit 5bf9093

Browse files
committed
dev-python/pkg-resources: import from ::gentoo
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 76408b0 commit 5bf9093

5 files changed

Lines changed: 93 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ dev-python/packaging
354354
dev-python/pathspec
355355
dev-python/pefile
356356
dev-python/pip
357+
dev-python/pkg-resources
357358
dev-python/platformdirs
358359
dev-python/pluggy
359360
dev-python/ply
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST setuptools-81.0.0.tar.gz 1198299 BLAKE2B a92fa15e03c99f6d7acbc0a24e6d3b4b31d514c031195b1dd0ae238611c44c3c979847c45437e5e4221fb8f750a7264fb55235ee7d4a8207ef19a67306d5360c SHA512 4dda2f0796d1a32d160e0786fc6ebb9908483e16edac6b0335df4779a0a8331f13b70fbf69986a27cc8f6ff10c1f696599059710fef99f36ff1e766f04220466
Lines changed: 14 additions & 0 deletions
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">setuptools</remote-id>
11+
<remote-id type="github">pypa/setuptools</remote-id>
12+
<remote-id type="cpe">cpe:/a:python:setuptools</remote-id>
13+
</upstream>
14+
</pkgmetadata>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2026 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{12..15} )
7+
8+
inherit python-r1
9+
10+
DESCRIPTION="pkg_resources compatibility shim"
11+
HOMEPAGE="
12+
https://github.com/pypa/setuptools/
13+
https://pypi.org/project/setuptools/
14+
"
15+
16+
LICENSE="MIT"
17+
SLOT="0"
18+
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
19+
REQUIRED_USE=${PYTHON_REQUIRED_USE}
20+
21+
RDEPEND="
22+
${PYTHON_DEPS}
23+
<dev-python/setuptools-82[${PYTHON_USEDEP}]
24+
"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright 1999-2026 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_USE_PEP517=no
7+
PYPI_PN=setuptools
8+
PYTHON_COMPAT=( python3_{12..15} )
9+
PYTHON_REQ_USE="xml(+)"
10+
11+
inherit distutils-r1 pypi
12+
13+
DESCRIPTION="pkg_resources package split from old setuptools"
14+
HOMEPAGE="
15+
https://github.com/pypa/setuptools/
16+
https://pypi.org/project/setuptools/
17+
"
18+
19+
LICENSE="MIT"
20+
SLOT="0"
21+
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris"
22+
23+
RDEPEND="
24+
>=dev-python/jaraco-text-4.0.0[${PYTHON_USEDEP}]
25+
>=dev-python/packaging-25.0[${PYTHON_USEDEP}]
26+
>=dev-python/platformdirs-4.4.0[${PYTHON_USEDEP}]
27+
!<dev-python/setuptools-82
28+
"
29+
BDEPEND="
30+
test? (
31+
dev-python/setuptools[${PYTHON_USEDEP}]
32+
)
33+
"
34+
35+
EPYTEST_PLUGINS=()
36+
distutils_enable_tests pytest
37+
38+
EPYTEST_IGNORE=(
39+
# requires setuptools wheel
40+
pkg_resources/tests/test_integration_zope_interface.py
41+
)
42+
43+
python_test() {
44+
# needed only by setuptools
45+
rm -f conftest.py || die
46+
epytest -o filterwarnings= pkg_resources
47+
}
48+
49+
python_install() {
50+
# Let's install the module manually. We don't want a fake .dist-info
51+
# for it.
52+
python_domodule pkg_resources
53+
}

0 commit comments

Comments
 (0)