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 D128815801B for ; Tue, 15 Aug 2023 02:39:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6F942BC02B; Tue, 15 Aug 2023 02:39:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 A9FC62BC02B for ; Tue, 15 Aug 2023 02:39:31 +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 B9E5E340E22 for ; Tue, 15 Aug 2023 02:39:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 22CABFA6 for ; Tue, 15 Aug 2023 02:39:29 +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: <1692067159.1af4114210eb0ed18c4014b8b71a9d2bf4a64978.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/immutables/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/immutables/Manifest dev-python/immutables/immutables-0.20.ebuild dev-python/immutables/metadata.xml X-VCS-Directories: dev-python/immutables/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1af4114210eb0ed18c4014b8b71a9d2bf4a64978 X-VCS-Branch: master Date: Tue, 15 Aug 2023 02:39:29 +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: bd00403e-2564-4d91-9d09-e81f062c5403 X-Archives-Hash: 618fce2af7440aca3c94ac28c3f2761e commit: 1af4114210eb0ed18c4014b8b71a9d2bf4a64978 Author: Michał Górny gentoo org> AuthorDate: Tue Aug 15 01:51:24 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Aug 15 02:39:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1af41142 dev-python/immutables: Bump to 0.20 Signed-off-by: Michał Górny gentoo.org> dev-python/immutables/Manifest | 1 + dev-python/immutables/immutables-0.20.ebuild | 51 ++++++++++++++++++++++++++++ dev-python/immutables/metadata.xml | 6 ++++ 3 files changed, 58 insertions(+) diff --git a/dev-python/immutables/Manifest b/dev-python/immutables/Manifest index a3c018b52751..892c3cff90bf 100644 --- a/dev-python/immutables/Manifest +++ b/dev-python/immutables/Manifest @@ -1 +1,2 @@ DIST immutables-0.19.gh.tar.gz 85695 BLAKE2B b6457bd4e61c79ffc4ae83c1be3845ea1914ef6604ee8b0886c1ab24dba96e226444af5adc1032dc36e6f3058acac8a8f0289ce97f97874b02aae85eb3bc2ee1 SHA512 b1027e9ab4a304dcb953037a1ea4af082d0524255bcf3f3f368deda85b9a9e5b1c556638aab7a10cbf200fc14b85c8b739f212035f8ead1dff941b8f6da09668 +DIST immutables-0.20.gh.tar.gz 88169 BLAKE2B fb76793d8d908ea35999a9d3d36cdb6cc2021fda07d0822b23bf1eb7fe02031ac26a7aa3e83e890af24b949eedf6d81089a3670e96f9873a60339d0da44d2484 SHA512 b20a661e4a9161a2fe3db674aac8e84a36dd3e56083e6f6d6b1261a00d38adc136c0a2dce67243a5a4cd5b0568aa48a9d4c758fb27cf74e055f378a501c0f725 diff --git a/dev-python/immutables/immutables-0.20.ebuild b/dev-python/immutables/immutables-0.20.ebuild new file mode 100644 index 000000000000..6f992abd2324 --- /dev/null +++ b/dev-python/immutables/immutables-0.20.ebuild @@ -0,0 +1,51 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="A high-performance immutable mapping type for Python" +HOMEPAGE=" + https://github.com/MagicStack/immutables/ + https://pypi.org/project/immutables/ +" +SRC_URI=" + https://github.com/MagicStack/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/mypy/d' tests/conftest.py || die + # NB: upstream never builds extensions on PyPy + if ! use native-extensions; then + sed -i -e '/ext_modules=/d' setup.py || die + fi + distutils-r1_src_prepare +} + +python_compile() { + # upstream controls NDEBUG explicitly + use debug && local -x DEBUG_IMMUTABLES=1 + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_IGNORE=( + tests/test_mypy.py + ) + + rm -rf immutables || die + epytest +} diff --git a/dev-python/immutables/metadata.xml b/dev-python/immutables/metadata.xml index 40858156f47d..853993018918 100644 --- a/dev-python/immutables/metadata.xml +++ b/dev-python/immutables/metadata.xml @@ -8,4 +8,10 @@ immutables MagicStack/immutables + + + Compiles native "C" extensions (speedups, instead of using Python + fallback code). + +