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 95A40158094 for ; Thu, 15 Sep 2022 20:35:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFF3EE0955; Thu, 15 Sep 2022 20:34:59 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97271E0955 for ; Thu, 15 Sep 2022 20:34:59 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9E98340EAB for ; Thu, 15 Sep 2022 20:34:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21F3E5D9 for ; Thu, 15 Sep 2022 20:34:56 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1663274081.38937972dd8ccf257a9cb9e426e17a5c0090b7be.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/indexed_gzip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/indexed_gzip/indexed_gzip-1.7.0.ebuild X-VCS-Directories: dev-python/indexed_gzip/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 38937972dd8ccf257a9cb9e426e17a5c0090b7be X-VCS-Branch: master Date: Thu, 15 Sep 2022 20:34:56 +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: 1d3f7c0c-9fe4-4dfc-b6b0-44b8d583d670 X-Archives-Hash: 9821ae4ca54d5b0af3af7282bb95f0a7 commit: 38937972dd8ccf257a9cb9e426e17a5c0090b7be Author: Arthur Zamarin gentoo org> AuthorDate: Thu Sep 15 20:34:41 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Sep 15 20:34:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38937972 dev-python/indexed_gzip: add 1.7.0 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/indexed_gzip/indexed_gzip-1.7.0.ebuild | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/dev-python/indexed_gzip/indexed_gzip-1.7.0.ebuild b/dev-python/indexed_gzip/indexed_gzip-1.7.0.ebuild new file mode 100644 index 000000000000..11a55ef5459b --- /dev/null +++ b/dev-python/indexed_gzip/indexed_gzip-1.7.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" +SRC_URI=" + https://github.com/pauldmccarthy/indexed_gzip/archive/v${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib:= +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # strip custom "clean" command that doesn't support "-a" + # https://bugs.gentoo.org/838955 + # TODO: this can be removed once distutils-r1 stops using clean + sed -e '/cmdclass/d' -i setup.py || die + distutils-r1_src_prepare +} + +src_compile() { + if use test; then + export INDEXED_GZIP_TESTING=1 + fi + distutils-r1_src_compile +} + +python_test() { + cd "${BUILD_DIR}/install$(python_get_sitedir)/indexed_gzip/tests" || die + epytest +}