commit: 1f177df1d7f7254997e18a89c58da4ee3f0c2a59 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Feb 18 05:32:02 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Feb 18 07:02:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f177df1
dev-python/importlib_resources: Bump to 5.12.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/importlib_resources/Manifest | 1 + .../importlib_resources-5.12.0.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/dev-python/importlib_resources/Manifest b/dev-python/importlib_resources/Manifest index 2176094bae05..fb7120b20886 100644 --- a/dev-python/importlib_resources/Manifest +++ b/dev-python/importlib_resources/Manifest @@ -1,2 +1,3 @@ DIST importlib_resources-5.10.1.gh.tar.gz 34781 BLAKE2B 63b516e1bd9cdb141751dc432944b520227a9b5e18b814db8204e1a5820a410d6101a2c902d25855796d3d1fbb790e2bc1f9327a47f828e946419fb8e787fb4e SHA512 1a3a6e36e30d72ceefe014beafc668624975c74e1ac4c2f526c377443e93792e432f4aa22d3c7d08101dabf906f50227f8716a0ee7f60d62ea24ca99641f8c67 DIST importlib_resources-5.10.2.gh.tar.gz 34882 BLAKE2B df84de4cf9f6f912c034c8a85be1005782ff6ac48df61c251d09990033ebc6bedc0db5913f556b9b2825c19a2dd1962d9481404b7ab85b4156ab685857ae6cb1 SHA512 891db784e030ab3262361165cef8730cb26f6a4526e279c13b8e538bed5d0035cb63ee6f4c62eb9d43ccfabfd97fb5b0effafda688185b89de8718910631b4d4 +DIST importlib_resources-5.12.0.gh.tar.gz 36161 BLAKE2B 1adcf5e2d0292867eb0b96819ee5d808b62d7f479a6fb4254db50b0397814b0f6ffe4d209f4dfcc19147bd060888cfd457391de9d6746b1b85f58b9d0792e29b SHA512 038d44919ace6d92709855eae0d111ae772edfbbf79e82349a34ab143d0ec9ed796a317ff3e1a06a08404d4a58398d130a1a4f425d26511e724bc03946679d19 diff --git a/dev-python/importlib_resources/importlib_resources-5.12.0.ebuild b/dev-python/importlib_resources/importlib_resources-5.12.0.ebuild new file mode 100644 index 000000000000..c940531e0171 --- /dev/null +++ b/dev-python/importlib_resources/importlib_resources-5.12.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_PEP517=flit +# This is a backport of importlib.resources that's present since py3.9. +# However, the version in 3.9 is buggy, so matplotlib needs it on 3.9 +# as well. +PYTHON_COMPAT=( pypy3 python3_9 ) + +inherit distutils-r1 + +DESCRIPTION="Read resources from Python packages" +HOMEPAGE=" + https://github.com/python/importlib_resources/ + https://pypi.org/project/importlib-resources/ +" +SRC_URI=" + https://github.com/python/importlib_resources/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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 + +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 +}
