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 CFFDD13835B for ; Mon, 24 May 2021 10:22:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8337E0829; Mon, 24 May 2021 10:22:27 +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 C1C2FE0829 for ; Mon, 24 May 2021 10:22:27 +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 9F60D340C6C for ; Mon, 24 May 2021 10:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D43EA720 for ; Mon, 24 May 2021 10:22:24 +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: <1621851705.55156dd99029036aa5bf0f4e3137da4a05bbbc74.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.6.0.ebuild X-VCS-Directories: dev-python/indexed_gzip/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 55156dd99029036aa5bf0f4e3137da4a05bbbc74 X-VCS-Branch: master Date: Mon, 24 May 2021 10:22:24 +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: c1aaa68b-fbc6-4644-94ab-040595709869 X-Archives-Hash: eb44c3dd09cdd122dd9482a5eece71f6 commit: 55156dd99029036aa5bf0f4e3137da4a05bbbc74 Author: Michał Górny gentoo org> AuthorDate: Mon May 24 06:45:45 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 24 10:21:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55156dd9 dev-python/indexed_gzip: Bump to 1.6.0 Signed-off-by: Michał Górny gentoo.org> dev-python/indexed_gzip/Manifest | 1 + dev-python/indexed_gzip/indexed_gzip-1.6.0.ebuild | 47 +++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/indexed_gzip/Manifest b/dev-python/indexed_gzip/Manifest index 1d1b3858635..f3c2c97d75e 100644 --- a/dev-python/indexed_gzip/Manifest +++ b/dev-python/indexed_gzip/Manifest @@ -1 +1,2 @@ DIST indexed_gzip-0.8.10.tar.gz 79133 BLAKE2B ebb5bc69d92b627b0546c8570ea533a7d6541cffbda6ddbf38d2712e5d7b13f5684a4d962b457cb0beaf8f6d9d6c5bd810c31af18396d7ce2a7d3f9ce0a039d6 SHA512 cd57a0442e95a4760d710227a5d9f69841bef851427c536e5cfde7c9f962c9d403e0b38341ba2e07c5cde668e0f26ff7848d154f6243a2cee1cf6c327a7f4e1e +DIST indexed_gzip-1.6.0.tar.gz 99260 BLAKE2B 15fff478a275baf59f152040455502f57762889959c4d2989e44b626dad25d381ff73029107c4495b477397ff5dc0763d1934f23bcc85a6296a0eec85a36b421 SHA512 0e01da5e8c527202c1f18148bad2a8ebec9ca0bc1bc49ce4804c6a32397797525cc7bfdfc254139c3c1b037d3f65171c010453ff3fae6e6256304ddf486bc58d diff --git a/dev-python/indexed_gzip/indexed_gzip-1.6.0.ebuild b/dev-python/indexed_gzip/indexed_gzip-1.6.0.ebuild new file mode 100644 index 00000000000..074e482ab13 --- /dev/null +++ b/dev-python/indexed_gzip/indexed_gzip-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Fast random access of gzip files in Python" +HOMEPAGE="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" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/numpy[${PYTHON_USEDEP}] + ) + " + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e 's:--cov=indexed_gzip::' setup.cfg || die + distutils-r1_src_prepare +} + +src_compile() { + if use test; then + export INDEXED_GZIP_TESTING=1 + fi + distutils-r1_src_compile +} + +python_test() { + local ignore=( + # requires nibabel + indexed_gzip/tests/test_nibabel_integration.py + ) + + cd "${BUILD_DIR}"/lib || die + epytest ${ignore[@]/#/--ignore } +}