dev-python/importlib_resources: new package.

Backport of Python 3.7's 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.

Gentoo specific, I removed Python 3.4 from PYTHON_COMPAT, because that
version is masked and will be removed soon (see
https://github.com/gentoo/gentoo/pull/11482#issuecomment-476083100).

Signed-off-by: Ralph Seichter <gentoo@seichter.de>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Closes: https://bugs.gentoo.org/681670
Closes: https://github.com/gentoo/gentoo/pull/11482
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
Ralph Seichter
2019-03-24 17:53:38 +01:00
committed by Patrice Clement
parent a2b68e754e
commit 9c37fa9115
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST importlib_resources-1.0.2.tar.gz 23605 BLAKE2B 813f913a779115575f3cab6f5be8f9e7ea706a6f0e47bc0bb29439901515b435c33975f6b1fd96d74140e488b0bd98aca3331e0d69940153b348891fd5f4f400 SHA512 3b7b254abdf2cb8ee0abf1608123c49de05d1eada081567a0e083d1f496f37643b81e771490b414dcf56672a7e7ea9aa6dd6b77ea8206d3a97e81ad69da7e927

View File

@@ -0,0 +1,27 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit distutils-r1
DESCRIPTION="Read resources from Python packages"
HOMEPAGE="https://importlib-resources.readthedocs.io/en/latest/"
SRC_URI="https://gitlab.com/python-devs/${PN}/-/archive/${PV}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
python_test() {
esetup.py test
}

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@seichter.de</email>
<name>Ralph Seichter</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</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>
</upstream>
</pkgmetadata>