From 10cf80dc301121c8dac1db4f0ccbb392a29a2fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 25 Apr 2024 06:40:44 +0200 Subject: [PATCH] dev-python/importlib-resources: Reintroduce at v6.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The backport now carries changes from py3.12, and it is required by dev-python/pypiserver. Signed-off-by: Michał Górny --- dev-python/importlib-resources/Manifest | 1 + .../importlib-resources-6.4.0.ebuild | 30 +++++++++++++++++++ dev-python/importlib-resources/metadata.xml | 15 ++++++++++ 3 files changed, 46 insertions(+) create mode 100644 dev-python/importlib-resources/Manifest create mode 100644 dev-python/importlib-resources/importlib-resources-6.4.0.ebuild create mode 100644 dev-python/importlib-resources/metadata.xml diff --git a/dev-python/importlib-resources/Manifest b/dev-python/importlib-resources/Manifest new file mode 100644 index 0000000000000..27040acd0be1e --- /dev/null +++ b/dev-python/importlib-resources/Manifest @@ -0,0 +1 @@ +DIST importlib_resources-6.4.0.tar.gz 42040 BLAKE2B 55b52a42051c6900af7b5b70783476a48398ae02539871a3f508df08fd5b4ec03bbe40980de8cd49a60cc022905a4ffdfd95b55d70e0cfb5d64497b02cc9b88f SHA512 c600e7ba96431f15a929e5acda89a262ceef33a3f44ae361fad4201dde8033dd8f0f2bcb856619fd5e21209a5d17cf9ae3610e65c3e6ecd0e36545437d0064b9 diff --git a/dev-python/importlib-resources/importlib-resources-6.4.0.ebuild b/dev-python/importlib-resources/importlib-resources-6.4.0.ebuild new file mode 100644 index 0000000000000..b0112c8bb5515 --- /dev/null +++ b/dev-python/importlib-resources/importlib-resources-6.4.0.ebuild @@ -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 diff --git a/dev-python/importlib-resources/metadata.xml b/dev-python/importlib-resources/metadata.xml new file mode 100644 index 0000000000000..672c6b745d189 --- /dev/null +++ b/dev-python/importlib-resources/metadata.xml @@ -0,0 +1,15 @@ + + + + + python@gentoo.org + Python + + + + importlib-resources + python/importlib_resources + https://github.com/python/importlib_resources/issues + https://importlib-resources.readthedocs.io/ + +