commit:     4154ae4707d50147449dacbca206a4e4ca3a942b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 07:28:30 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 08:38:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4154ae47

dev-python/importlib_resources: Bump to 5.7.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/importlib_resources/Manifest            |  1 +
 .../importlib_resources-5.7.1.ebuild               | 43 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/importlib_resources/Manifest 
b/dev-python/importlib_resources/Manifest
index b602c8993aa7..aee4543e3e0e 100644
--- a/dev-python/importlib_resources/Manifest
+++ b/dev-python/importlib_resources/Manifest
@@ -1,3 +1,4 @@
 DIST importlib_resources-5.4.0.tar.gz 30554 BLAKE2B 
f5be47cb63813aea15f65d251115cf398f695041871fdf6e8885fee11d9a9d7a2fbfd07efd494bd7c91077f99ab871e06d45f49de9f7e501a1691601206bfb55
 SHA512 
9262c185bdf79fad0a11caabc5c5df836702a74e140a9f60ace857e3f6a60fdb091639b2fb7129b17bad5a46968f43dda7d176fe39af495370dd31f04891fb1b
 DIST importlib_resources-5.6.0.tar.gz 30846 BLAKE2B 
9a83554cd65b7851c4a8c977509f3fc255de3c5927661764e702eeae142b7d0cc75f809fe2a438b6f3acdb2facbdc3dadbf3f9dfed5615643dc15e04545dcf8c
 SHA512 
d3c88dd5f1877b205b4c53ab9c8d4180ae87be0ff9dd11483024de40c84fe7da359f70337aeacc5df3b6deca88b903bb01850da8a54fd057e4174806ae767deb
 DIST importlib_resources-5.7.0.tar.gz 31185 BLAKE2B 
eefdc2380b580c274391369eb7a0432f74987a140a9a2eab2c43756148c1982ffa6f91ddad69992b85f88efdb5d22a40f0f95abd4e12de06be7d3d9ecd237579
 SHA512 
671395701ab96b8a4985f33470cfe2eea58fb60ca04d9763307958f08c535cdfee62b6532c33e24aa851b872e61498d169b4882788b9b829ba9549c84554f6fb
+DIST importlib_resources-5.7.1.tar.gz 31272 BLAKE2B 
3e30117ae4f18a9f2151b5435428f3853664ce291d2d4ce9490d1a3043ca5ce2e80cf04d7dcef71ebdaba8bbad17ee61bb47303637a8bee73a2263853b65293b
 SHA512 
8fd89dfcea4112d26418bcfa522de36c2136a50d07470ac8de18f62bb7bb964a459534554802b1455996ae65796018bea806a592746c1d2717f1313608cf4918

diff --git a/dev-python/importlib_resources/importlib_resources-5.7.1.ebuild 
b/dev-python/importlib_resources/importlib_resources-5.7.1.ebuild
new file mode 100644
index 000000000000..c13797db40dd
--- /dev/null
+++ b/dev-python/importlib_resources/importlib_resources-5.7.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
+EAPI=7
+
+DISTUTILS_USE_PEP517=flit
+# This is a backport of Python 3.9's importlib.resources
+PYTHON_COMPAT=( pypy3 python3_8 )
+
+inherit distutils-r1
+
+DESCRIPTION="Read resources from Python packages"
+HOMEPAGE="https://github.com/python/importlib_resources";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               >=dev-python/zipp-3.7.0-r1[${PYTHON_USEDEP}]
+       ' 3.8 3.9)"
+
+distutils_enable_tests unittest
+distutils_enable_sphinx docs dev-python/rst-linker dev-python/jaraco-packaging
+
+src_configure() {
+       grep -q 'build-backend = "setuptools' pyproject.toml ||
+               die "Upstream changed build-backend, recheck"
+       # write a custom pyproject.toml to ease setuptools bootstrap
+       cat > pyproject.toml <<-EOF || die
+               [build-system]
+               requires = ["flit_core >=3.2,<4"]
+               build-backend = "flit_core.buildapi"
+
+               [project]
+               name = "importlib_resources"
+               version = "${PV}"
+               description = "Read resources from Python packages"
+       EOF
+}

Reply via email to