importlib_metadata-1.6.0-r2: Python 3.7 & 3.8, keep a copy from main repo

This commit is contained in:
Andreas Billmeier 2020-09-06 07:10:37 +02:00 committed by Andreas Billmeier
parent a81bc758d3
commit 99602afdb5
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
6 changed files with 138 additions and 5 deletions

View File

@ -1,5 +1,4 @@
DIST importlib_metadata-1.3.0.tar.gz 26323 BLAKE2B a460a78856966fcbb20559c12f5da9ccfe82c9faa3745850e156a6b07db5d597138c1eaac583838ea24835e6c45c4cf8aab8474e5e15ba7de981eb1ad6b5de14 SHA512 45d09cbbbceee80a4769f2d374a3c4b511fda56a100ad1a6fc7cedf9a0cd251600c960430c608c7bcd60bdd9a0117f83025ed7b05f9f6a53edc791d128e8b0d7
DIST importlib_metadata-1.6.0.tar.gz 27136 BLAKE2B 55a987a75c78ff39fc5ac5d586cc7b7f9e7340edce505387be22cb291b53dec87e4f362bdb3f9a13f2797b6806f783b3cf0858c9db298266379f706402a43331 SHA512 4108d84a39da3c892a3b448027cca2835f6a68ac790b51b7cc4eb4ec925f5e8322847d86d8e89fbcec474258f592220f283116c82c536130aab70b96cea0435c
EBUILD importlib_metadata-1.3.0.ebuild 1073 BLAKE2B f0be263465f6b9e271536e813dcf5b600e7e2f1f39a74f902e097bfa18d512e65e8b4ba2990377a23f61e4ba4dc5f84176f504d9ead0182a317ff4fe8ac17ae3 SHA512 afc41aead2f3d992a1ab4907d61ab329421297ee6e931aac7a3e641fe43d0281cfc449eef92cb4c797325180102260261eed5811f11f9597fb352a4c7011f470
EBUILD importlib_metadata-1.6.0-r1.ebuild 1229 BLAKE2B 3672433212a43e40b6d7021586e6f6a09954a6a38b785463ab39fb56612faf05952100afd7b9c79e991f303c505b6deee6bf0013a9e2861e53c7bae36e575df1 SHA512 55abc3d9561efcbce67f47cca55458b268faa147c468ff788a84d263bd5e3f20eef3ea607577418b382c3dc0ac596d16871283617d327d5bc67f9b0a2126506d
EBUILD importlib_metadata-1.6.0-r2.ebuild 1276 BLAKE2B 6b296493015dc312c0ed5b4aa3ce0f88d0ca1c3a2be054c0f5ae57b767b2d7fb574aa203bfe3e9a880a4256cf8a84f45e93abb527cb09113e39504eee560b9e2 SHA512 843c7f6cd3cc21d9257b8be426cc99b424190d42b46ca4552b259450a7da876f81eb0f5fae5c7ca920b4253f2f22a22c208519296afdc7a0a99ee237bf37a443
MISC metadata.xml 575 BLAKE2B fd32bd69ffa26679f44ae19012bf57e77219abea01918062e2290e48121209353d5a50eb2aa028ca8359b3c8f40a35c1cc4c48e2f05cb855a3016f2f01da41f2 SHA512 fdb2a87b50b50fd23d97c7dd9875958ad9ae6474f6e0a0e5fb8df12ed381c30e21a71ae2eaf3baf03ae1ab973c0c7827c8a84fa09c8ca52eb938439e4f66e17d

View File

@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 sparc x86"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
RDEPEND="
dev-python/zipp[${PYTHON_USEDEP}]
@ -22,15 +22,25 @@ RDEPEND="
$(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2)
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
${RDEPEND}
$(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' pypy3 python{2_7,3_6})
$(python_gen_cond_dep '
>=dev-python/importlib_resources-1.3.0[${PYTHON_USEDEP}]
' pypy3 python{2_7,3_{6,7,8}})
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pyfakefs[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx "${PN}/docs" \
'>=dev-python/rst-linker-1.9'
distutils_enable_tests unittest
python_prepare_all() {
# remove dep on setuptools_scm
sed -e 's:test_find_local:_&:' \
-i importlib_metadata/tests/test_integration.py || die
distutils-r1_python_prepare_all
}

View File

@ -0,0 +1,5 @@
DIST importlib_resources-1.5.0.tar.gz 23660 BLAKE2B aed7a2d730f945505083812355a63d3a88e07b057cf46394f3475135143e535e33dc3ebded24d233797020c805dc35decf5c5ce53758798b093f03f2951daa87 SHA512 34d14c1ff3121cc6f9ef1d3d4417831e3476e9facfcc9b35152c28a59a2c75d7723f171f4b48852f79ec46cbf54b066580745744bc54d349e2bfe12a353a9aed
DIST importlib_resources-3.0.0.tar.gz 26725 BLAKE2B e2517b0d1e576ce949ac05230892acbad59c09fa4b84401b3c957e83f40b50d12bc02360b135fe949d12c43f8f557006824e4e4a3e9ff2ce879c03362569a00c SHA512 cd29e268cacef3729024af6cae8394ce5aa8c1d8a28397fd8f009c7eaa908ed3775508bde86c26b0d233c25261b8509abb1e16c378c7c8a9bb0906224f3fdd54
EBUILD importlib_resources-1.5.0-r1.ebuild 1280 BLAKE2B 16db4dff815fc1e5dd034965e42a9d22f0f7413281856c80aa7652003799c2cdb928a8a6143a5d1d3d31b7f1dddb7ae933afe3bcf30a6d838ddaa290593b5cac SHA512 3c4c2aead9af6c6f44acde1b976bd8a853993ef1813cadff7986d41f4b627f697817e65d0ec2bdee8d6fcf3b618c3b320a3b179d8df9c4445dcc1c31d21aa837
EBUILD importlib_resources-3.0.0-r1.ebuild 1249 BLAKE2B ecc0946b7ea68513404e258ddd36a6c95c2902cc977ca1d407260e70931061594328baa4910484e560d211286ad37dff208ac8263681f6683807bd4d6554db02 SHA512 52b86ffb1549f47c4357df0587e29cc1ebbc2bf2a96874068a64479861159f3310bc3483c67c0d2065bb62684f6c2fcde2e8bcaeb64f923ce93414af9a384aed
MISC metadata.xml 895 BLAKE2B fadc4adcee6471eb31d5a1b406c9a6a29e366a50abcee105a08456b432e9a42352afdf7d08f37c3ee6100f1f57080bce2a32770b3fda96bedebfa7958957975f SHA512 6802c03cfc8049146dbbef1ff6462cb2eb01f18048a857ff0050af8e15367bff8e40521c989fcdc68c95b2025d2b7af09015f99c279ee504d556165687d7fa36

View File

@ -0,0 +1,48 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# This is a backport of Python 3.9's importlib.resources
PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8}} )
inherit distutils-r1
DESCRIPTION="Read resources from Python packages"
HOMEPAGE="https://importlib-resources.readthedocs.io/en/latest/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
RDEPEND="
$(python_gen_cond_dep '
dev-python/contextlib2[${PYTHON_USEDEP}]
dev-python/pathlib2[${PYTHON_USEDEP}]
dev-python/singledispatch[${PYTHON_USEDEP}]
dev-python/typing[${PYTHON_USEDEP}]
' -2)
$(python_gen_cond_dep '
dev-python/importlib_metadata[${PYTHON_USEDEP}]
dev-python/zipp[${PYTHON_USEDEP}]
' pypy3 python3_{6,7})
"
BDEPEND="
dev-python/toml[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-3.4.1[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
distutils_enable_sphinx docs dev-python/rst-linker dev-python/jaraco-packaging
python_compile() {
distutils-r1_python_compile
if ! python_is_python3; then
rm "${BUILD_DIR}/lib/importlib_resources/_py3.py" || die
fi
}
python_install() {
distutils-r1_python_install --skip-build
}

View File

@ -0,0 +1,47 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# This is a backport of Python 3.9's importlib.resources
PYTHON_COMPAT=( pypy3 python{2_7,3_{6,7,8}} )
inherit distutils-r1
DESCRIPTION="Read resources from Python packages"
HOMEPAGE="https://importlib-resources.readthedocs.io/en/latest/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
$(python_gen_cond_dep '
dev-python/contextlib2[${PYTHON_USEDEP}]
dev-python/pathlib2[${PYTHON_USEDEP}]
dev-python/singledispatch[${PYTHON_USEDEP}]
dev-python/typing[${PYTHON_USEDEP}]
' -2)
$(python_gen_cond_dep '
dev-python/zipp[${PYTHON_USEDEP}]
' -2 pypy3 python3_{6,7})
"
BDEPEND="
dev-python/toml[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-3.4.1[${PYTHON_USEDEP}]
"
distutils_enable_tests unittest
distutils_enable_sphinx docs dev-python/rst-linker dev-python/jaraco-packaging
python_compile() {
distutils-r1_python_compile
if ! python_is_python3; then
rm "${BUILD_DIR}/lib/importlib_resources/_py3.py" || die
fi
}
python_install() {
distutils-r1_python_install --skip-build
}

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>sbraz@gentoo.org</email>
<name>Louis Sautier</name>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<longdescription>
Backport of Python 3.7s standard library importlib.resources
module for Python 2.7, and 3.4 through 3.6. Users of Python
3.7 and beyond are encouraged to use the standard library
module, and in fact for these versions, importlib_resources
just shadows that module.
</longdescription>
<upstream>
<remote-id type="gitlab">python-devs/importlib_resources</remote-id>
<remote-id type="pypi">importlib_resources</remote-id>
<bugs-to>https://gitlab.com/python-devs/importlib_resources/issues</bugs-to>
</upstream>
</pkgmetadata>