From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1502990-garchives=archives.gentoo.org@lists.gentoo.org> 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 A0E56158069 for <garchives@archives.gentoo.org>; Sat, 1 Apr 2023 06:13:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AC69E087D; Sat, 1 Apr 2023 06:13:18 +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 42700E087A for <gentoo-commits@lists.gentoo.org>; Sat, 1 Apr 2023 06:13:17 +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 10E40340FED for <gentoo-commits@lists.gentoo.org>; Sat, 1 Apr 2023 06:13:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E3C0A17 for <gentoo-commits@lists.gentoo.org>; Sat, 1 Apr 2023 06:13:14 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1680329585.c5dd98a1a5cb3a850740d426e6514e187840c5ec.mgorny@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/Manifest dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild X-VCS-Directories: dev-python/indexed_gzip/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c5dd98a1a5cb3a850740d426e6514e187840c5ec X-VCS-Branch: master Date: Sat, 1 Apr 2023 06:13:14 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 67057108-b590-4b29-b075-a13b6e63c0a1 X-Archives-Hash: 268c6c03bacfa41910abd9f97a8b93a8 commit: c5dd98a1a5cb3a850740d426e6514e187840c5ec Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Apr 1 04:57:51 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Apr 1 06:13:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5dd98a1 dev-python/indexed_gzip: Bump to 1.7.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/indexed_gzip/Manifest | 1 + dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild | 54 +++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/dev-python/indexed_gzip/Manifest b/dev-python/indexed_gzip/Manifest index 865b6bdb499f..2cd0d1ba5921 100644 --- a/dev-python/indexed_gzip/Manifest +++ b/dev-python/indexed_gzip/Manifest @@ -1 +1,2 @@ DIST indexed_gzip-1.7.0.tar.gz 103849 BLAKE2B b33ef1f19e47c2dc12fd6e6fcc972badf4faaecaa5571aa44c765a6fafbec8e32fe2c4254d4e62722b6e744cfa27470ce517d08025b0492e8c032663b094344e SHA512 80f82699c6b64248f0609fb34e54e3838e642040820381cc64feb70b46721b69207686f9cccd55ebfb10dfcdee5fb5c1bf6404d1cfec07eb5a97767635c5dc4e +DIST indexed_gzip-1.7.1.tar.gz 74457 BLAKE2B b22d2120adac59e64f5bcf38c831bb54ce5d6c3dd1e959eece9a454908d9ce2aa5dc10557bd63823616bedfe9d0c039a3f1c0512ef1d22a54437353c57e15158 SHA512 fa27e476f115eca1d1d3892c3480de97cb407bd489737bebc44eb28e92be91e14312cde33a67af145b44c7d93ccc706498c2cbfe6cbff5b9b091dd083cde0f7e diff --git a/dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild b/dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild new file mode 100644 index 000000000000..98bdec35563f --- /dev/null +++ b/dev-python/indexed_gzip/indexed_gzip-1.7.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE=" + https://pypi.org/project/indexed-gzip/ + https://github.com/pauldmccarthy/indexed_gzip/ +" + +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 +}