dev-python/importlib-resources: Reintroduce at v6.4.0

The backport now carries changes from py3.12, and it is required
by dev-python/pypiserver.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-04-25 06:40:44 +02:00
parent 55727e6862
commit 10cf80dc30
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST importlib_resources-6.4.0.tar.gz 42040 BLAKE2B 55b52a42051c6900af7b5b70783476a48398ae02539871a3f508df08fd5b4ec03bbe40980de8cd49a60cc022905a4ffdfd95b55d70e0cfb5d64497b02cc9b88f SHA512 c600e7ba96431f15a929e5acda89a262ceef33a3f44ae361fad4201dde8033dd8f0f2bcb856619fd5e21209a5d17cf9ae3610e65c3e6ecd0e36545437d0064b9

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
# backport from py3.12
PYTHON_COMPAT=( pypy3 python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="Read resources from Python packages"
HOMEPAGE="
https://github.com/python/importlib_resources/
https://pypi.org/project/importlib-resources/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
>=dev-python/jaraco-test-5.4[${PYTHON_USEDEP}]
>=dev-python/zipp-3.17[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">importlib-resources</remote-id>
<remote-id type="github">python/importlib_resources</remote-id>
<bugs-to>https://github.com/python/importlib_resources/issues</bugs-to>
<doc>https://importlib-resources.readthedocs.io/</doc>
</upstream>
</pkgmetadata>