From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/importlib_resources/Manifest | 2 + .../importlib_resources-1.5.0-r1.ebuild | 48 ++++++++++++++++++++++ .../importlib_resources-2.0.1.ebuild | 48 ++++++++++++++++++++++ dev-python/importlib_resources/metadata.xml | 25 +++++++++++ 4 files changed, 123 insertions(+) create mode 100644 dev-python/importlib_resources/Manifest create mode 100644 dev-python/importlib_resources/importlib_resources-1.5.0-r1.ebuild create mode 100644 dev-python/importlib_resources/importlib_resources-2.0.1.ebuild create mode 100644 dev-python/importlib_resources/metadata.xml (limited to 'dev-python/importlib_resources') diff --git a/dev-python/importlib_resources/Manifest b/dev-python/importlib_resources/Manifest new file mode 100644 index 000000000000..15a372764ddf --- /dev/null +++ b/dev-python/importlib_resources/Manifest @@ -0,0 +1,2 @@ +DIST importlib_resources-1.5.0.tar.gz 23660 BLAKE2B aed7a2d730f945505083812355a63d3a88e07b057cf46394f3475135143e535e33dc3ebded24d233797020c805dc35decf5c5ce53758798b093f03f2951daa87 SHA512 34d14c1ff3121cc6f9ef1d3d4417831e3476e9facfcc9b35152c28a59a2c75d7723f171f4b48852f79ec46cbf54b066580745744bc54d349e2bfe12a353a9aed +DIST importlib_resources-2.0.1.tar.gz 26060 BLAKE2B 739cd7fd90cc12b5b586eb1bf3386b85cde2399e80cfe05cae5173ba5177fb1d15f7e44e7f78473ef03e37d563861f57b7c470782d1aab161eae4c40d530ca29 SHA512 7f62c5bb5650dd2689a41ddef2e9131f01d5edc99b284a7a4257fce18190f2e78c38a2c260d6fe5e6db122666435e079c417bd9011e68e35724932854c90a1bd diff --git a/dev-python/importlib_resources/importlib_resources-1.5.0-r1.ebuild b/dev-python/importlib_resources/importlib_resources-1.5.0-r1.ebuild new file mode 100644 index 000000000000..65027c9a021d --- /dev/null +++ b/dev-python/importlib_resources/importlib_resources-1.5.0-r1.ebuild @@ -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 +} diff --git a/dev-python/importlib_resources/importlib_resources-2.0.1.ebuild b/dev-python/importlib_resources/importlib_resources-2.0.1.ebuild new file mode 100644 index 000000000000..e86acf448e78 --- /dev/null +++ b/dev-python/importlib_resources/importlib_resources-2.0.1.ebuild @@ -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 +} diff --git a/dev-python/importlib_resources/metadata.xml b/dev-python/importlib_resources/metadata.xml new file mode 100644 index 000000000000..a338efdac6af --- /dev/null +++ b/dev-python/importlib_resources/metadata.xml @@ -0,0 +1,25 @@ + + + + + sbraz@gentoo.org + Louis Sautier + + + python@gentoo.org + Python + + + 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. + + + python-devs/importlib_resources + importlib_resources + https://gitlab.com/python-devs/importlib_resources/issues + + gentoo-staging + -- cgit v1.3.1