summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-06-19 06:40:01 +0200
committerMichał Górny <mgorny@gentoo.org>2023-06-19 06:57:50 +0200
commit506503a92b3bd6da8d607d78eab15120dce3d75a (patch)
treeea65e29e4d66d257b87c23ef9a256ebead3ec94f /dev-python/importlib-metadata
parentdev-python/django-timezone-field: Bump to 5.1 (diff)
downloadgentoo-506503a92b3bd6da8d607d78eab15120dce3d75a.tar.gz
gentoo-506503a92b3bd6da8d607d78eab15120dce3d75a.tar.bz2
gentoo-506503a92b3bd6da8d607d78eab15120dce3d75a.zip
dev-python/importlib-metadata: Bump to 6.7.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/importlib-metadata')
-rw-r--r--dev-python/importlib-metadata/Manifest1
-rw-r--r--dev-python/importlib-metadata/importlib-metadata-6.7.0.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/importlib-metadata/Manifest b/dev-python/importlib-metadata/Manifest
index 92c8e44158d3..dc41d20a77b4 100644
--- a/dev-python/importlib-metadata/Manifest
+++ b/dev-python/importlib-metadata/Manifest
@@ -1 +1,2 @@
DIST importlib_metadata-6.6.0.tar.gz 53379 BLAKE2B 1de02ce55dc4996d5c7cb221c77ce0b7203ab38e37d0700b5044fc44727737332e02d9da052210b687da817b467eb40708621e85ee5b2501fb2228a9890f259e SHA512 19a24ff5cd7a81caca09b6d273f509880f5c84d5f1683422bb2ec201eb15866ee0f155b7885eec97ac5e53342bb860767b1125c62bc44b7d5c1984f62068c6b2
+DIST importlib_metadata-6.7.0.tar.gz 53569 BLAKE2B 099c375f383bc795beca1cdb77464b906db5600be300f39409adb0a332bdbe24fe2d294ec3e64bf8d02512a9856334aa4fe76b50870b944eb137daa417adb66d SHA512 b69b0c6bf5e0da23e59c2c873d41762811be55fb59ead18e9afa68e195026ba5c4cc58b329440dad04bfe8b8f74e1167332087dbc7dda7bd7dade9e392a7f5ef
diff --git a/dev-python/importlib-metadata/importlib-metadata-6.7.0.ebuild b/dev-python/importlib-metadata/importlib-metadata-6.7.0.ebuild
new file mode 100644
index 000000000000..f720c9a802f0
--- /dev/null
+++ b/dev-python/importlib-metadata/importlib-metadata-6.7.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+# NB: this package extends beyond built-in importlib stuff in py3.8+
+# new entry_point API not yet included in cpython release
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Read metadata from Python packages"
+HOMEPAGE="
+ https://github.com/python/importlib_metadata/
+ https://pypi.org/project/importlib-metadata/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+
+RDEPEND="
+ dev-python/zipp[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyfakefs[${PYTHON_USEDEP}]
+ )
+"
+
+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_metadata"
+ version = "${PV}"
+ description = "Read metadata from Python packages"
+ EOF
+}