diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-23 05:41:31 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-23 06:12:31 +0100 |
commit | 01620ad161bd2989003f73a5a160474d7db1aacf (patch) | |
tree | 3f0a76e586b86c1772acaa8304622979cf7cf57f /dev-python/importlib-metadata | |
parent | dev-python/mdx-gh-links: Bump to 0.4 (diff) | |
download | gentoo-01620ad161bd2989003f73a5a160474d7db1aacf.tar.gz gentoo-01620ad161bd2989003f73a5a160474d7db1aacf.tar.bz2 gentoo-01620ad161bd2989003f73a5a160474d7db1aacf.zip |
dev-python/importlib-metadata: Bump to 7.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/importlib-metadata')
-rw-r--r-- | dev-python/importlib-metadata/Manifest | 1 | ||||
-rw-r--r-- | dev-python/importlib-metadata/importlib-metadata-7.0.1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/importlib-metadata/Manifest b/dev-python/importlib-metadata/Manifest index 47e6218fe1c1..a73f7bf7f0d1 100644 --- a/dev-python/importlib-metadata/Manifest +++ b/dev-python/importlib-metadata/Manifest @@ -1 +1,2 @@ DIST importlib_metadata-7.0.0.tar.gz 54280 BLAKE2B 56da8260ad1eb785577bbb0db1695652eb4d09d2fb48c8770e8fba22be92c2f9a4f89727ada53a1bf83f17128078bffe424636dc4ed805288bef1b74e162729b SHA512 2b71f9f14cb2bed74184fea23f1111588753c6054c308cd33fc79d0ea297219025bbea2af996535f69b63832c546145cabaeb18850bfe843251788f3f74418d6 +DIST importlib_metadata-7.0.1.tar.gz 50537 BLAKE2B 791a5d11e7b52f1563f69e4c6014ca8d29995a673d9f55b5ab809215f8e1f3410ed52e80443d28fa944f460a2d55c6e857bf34533376a05ae677186cfd3916dd SHA512 73cdd72e0e39c34beb357bafd0ece2ebdf7def4c9c34f434f4be6da53c70206e5bc9ec3e6ddf0282e1511ddf14a9a562b09cab822483733802bed19e23716023 diff --git a/dev-python/importlib-metadata/importlib-metadata-7.0.1.ebuild b/dev-python/importlib-metadata/importlib-metadata-7.0.1.ebuild new file mode 100644 index 000000000000..b944433689b4 --- /dev/null +++ b/dev-python/importlib-metadata/importlib-metadata-7.0.1.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..12} ) + +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 +} |