From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 256AF138359 for ; Fri, 3 Jul 2020 19:27:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 344ECE0827; Fri, 3 Jul 2020 19:27:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B1B0E0827 for ; Fri, 3 Jul 2020 19:27:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48AB834F05C for ; Fri, 3 Jul 2020 19:27:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 583BC29A for ; Fri, 3 Jul 2020 19:27:00 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1593803998.555bf4ba14caa51de1ada43f6d7f77ec764821ee.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/importlib_resources/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/importlib_resources/Manifest dev-python/importlib_resources/importlib_resources-3.0.0.ebuild X-VCS-Directories: dev-python/importlib_resources/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 555bf4ba14caa51de1ada43f6d7f77ec764821ee X-VCS-Branch: master Date: Fri, 3 Jul 2020 19:27:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dd6c440a-ab32-4c28-82e9-fdd5d280a9ec X-Archives-Hash: c84d1546acb57d9ca5e327aa877ca7d4 commit: 555bf4ba14caa51de1ada43f6d7f77ec764821ee Author: Louis Sautier gentoo org> AuthorDate: Fri Jul 3 19:19:03 2020 +0000 Commit: Louis Sautier gentoo org> CommitDate: Fri Jul 3 19:19:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=555bf4ba dev-python/importlib_resources: bump to 3.0.0, one fewer dependency Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Louis Sautier gentoo.org> dev-python/importlib_resources/Manifest | 1 + .../importlib_resources-3.0.0.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/dev-python/importlib_resources/Manifest b/dev-python/importlib_resources/Manifest index 15a372764dd..1d1473b6b5b 100644 --- a/dev-python/importlib_resources/Manifest +++ b/dev-python/importlib_resources/Manifest @@ -1,2 +1,3 @@ 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 +DIST importlib_resources-3.0.0.tar.gz 26725 BLAKE2B e2517b0d1e576ce949ac05230892acbad59c09fa4b84401b3c957e83f40b50d12bc02360b135fe949d12c43f8f557006824e4e4a3e9ff2ce879c03362569a00c SHA512 cd29e268cacef3729024af6cae8394ce5aa8c1d8a28397fd8f009c7eaa908ed3775508bde86c26b0d233c25261b8509abb1e16c378c7c8a9bb0906224f3fdd54 diff --git a/dev-python/importlib_resources/importlib_resources-3.0.0.ebuild b/dev-python/importlib_resources/importlib_resources-3.0.0.ebuild new file mode 100644 index 00000000000..39499d3eb2f --- /dev/null +++ b/dev-python/importlib_resources/importlib_resources-3.0.0.ebuild @@ -0,0 +1,45 @@ +# 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/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 +}