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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C55E158021 for ; Sat, 19 Nov 2022 09:43:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CC7FE0933; Sat, 19 Nov 2022 09:43:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 46E58E0933 for ; Sat, 19 Nov 2022 09:43:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A371341233 for ; Sat, 19 Nov 2022 09:42:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D3C88759 for ; Sat, 19 Nov 2022 09:42:55 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1668850963.7afc9a55cb2c4b8731b72e0dbd5e85f3f56f6542.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-context/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jaraco-context/Manifest dev-python/jaraco-context/jaraco-context-4.2.0.ebuild X-VCS-Directories: dev-python/jaraco-context/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7afc9a55cb2c4b8731b72e0dbd5e85f3f56f6542 X-VCS-Branch: master Date: Sat, 19 Nov 2022 09:42:55 +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: 912fdb53-cf70-4710-9fd5-3c4df110a162 X-Archives-Hash: 97a01b507a67b383dece123a2c491134 commit: 7afc9a55cb2c4b8731b72e0dbd5e85f3f56f6542 Author: Michał Górny gentoo org> AuthorDate: Sat Nov 19 06:56:58 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 19 09:42:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7afc9a55 dev-python/jaraco-context: Bump to 4.2.0 Signed-off-by: Michał Górny gentoo.org> dev-python/jaraco-context/Manifest | 1 + .../jaraco-context/jaraco-context-4.2.0.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-python/jaraco-context/Manifest b/dev-python/jaraco-context/Manifest index f343f6dd56c7..6bc286838a8a 100644 --- a/dev-python/jaraco-context/Manifest +++ b/dev-python/jaraco-context/Manifest @@ -1 +1,2 @@ DIST jaraco.context-4.1.2.tar.gz 8315 BLAKE2B 7e8b74c087462401999eb672d922634fa7bfd4f26797a547a21e4f85b12d2e7c8ac208f55eb782a0d74dfffc09e1f5d730b34a25fb83d701e55501a574159dae SHA512 297271b3508e7e979125c6f03962aba0b932337d60b51c4e48e995d60528f4e8bf7e031a877e9c58d8adaf5e3299affe83e01d9ab266e331ce0a131c7b541ee0 +DIST jaraco.context-4.2.0.tar.gz 9308 BLAKE2B 047474e325846a5e01407cd5c6c64da4f7185d3a26b3664f06e3ca76bdb5989fd741a62ab32a667d56a80a4280824e8614cc64a27aa45f97f81d93c344f06f31 SHA512 829284682ead392ae7620c1881e89b7091e7ddc7c1d293c05792f7ce4276a5745554598a222a52ed93a7b2b401d20f3d066cfd32de65ad2f0f3c8c5f5cd2c75a diff --git a/dev-python/jaraco-context/jaraco-context-4.2.0.ebuild b/dev-python/jaraco-context/jaraco-context-4.2.0.ebuild new file mode 100644 index 000000000000..53cadb9c3a37 --- /dev/null +++ b/dev-python/jaraco-context/jaraco-context-4.2.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +inherit distutils-r1 + +MY_P=${P/-/.} +DESCRIPTION="Context managers by jaraco" +HOMEPAGE=" + https://github.com/jaraco/jaraco.context/ + https://pypi.org/project/jaraco.context/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +distutils_enable_tests pytest + +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 = "jaraco.context" + version = "${PV}" + description = "Context managers by jaraco" + EOF +} + +python_install() { + distutils-r1_python_install + # rename to workaround a bug in pkg_resources + # https://bugs.gentoo.org/834522 + mv "${D}$(python_get_sitedir)"/jaraco{_,.}context-${PV}.dist-info || die +}