Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/indexed_gzip/
Date: Tue, 19 Oct 2021 07:22:25
Message-Id: 1634628136.90548290e7d1817a32ea5abc5b50d8b3c92a2a5a.mgorny@gentoo
1 commit: 90548290e7d1817a32ea5abc5b50d8b3c92a2a5a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 19 05:55:53 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 19 07:22:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90548290
7
8 dev-python/indexed_gzip: Bump to 1.6.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/indexed_gzip/Manifest | 1 +
13 dev-python/indexed_gzip/indexed_gzip-1.6.4.ebuild | 44 +++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-python/indexed_gzip/Manifest b/dev-python/indexed_gzip/Manifest
17 index 7bef8fd7139..10266f8dbc0 100644
18 --- a/dev-python/indexed_gzip/Manifest
19 +++ b/dev-python/indexed_gzip/Manifest
20 @@ -1 +1,2 @@
21 DIST indexed_gzip-1.6.3.tar.gz 101073 BLAKE2B 685a8b1d8d69dce138ba6eab8af31d537e130674ba96f9383cc28b4440c472cbdde58f97bcda2d2145177342ade369bd88c44799ba07900ebd653c30678cc58e SHA512 567a54ca23fea63b2a8b386cace0e5bd52e6cf587c7507a555f727cb549b9ab32b1395e3b1ac94c1f09e680a62bb0c079b7bb4be724994813ad52db774b83e20
22 +DIST indexed_gzip-1.6.4.tar.gz 101683 BLAKE2B 01d34b33f8d6a623f92bd3f6751303b32f3834e9fb7849b13b82080eeaa91bb29fa38e45287256b6946ecafae7fd000f0cd12f004662eb2e5ad9f31be7378505 SHA512 b7b804c99c560f939a165fdd6d4b881fab2dd2664cecf88f9d9dba46c389efa4839dfbffd19a1a30b801e2fde43580279ea2adab5fd0bbb379ad77c568f8d6b9
23
24 diff --git a/dev-python/indexed_gzip/indexed_gzip-1.6.4.ebuild b/dev-python/indexed_gzip/indexed_gzip-1.6.4.ebuild
25 new file mode 100644
26 index 00000000000..f2cf3667d4c
27 --- /dev/null
28 +++ b/dev-python/indexed_gzip/indexed_gzip-1.6.4.ebuild
29 @@ -0,0 +1,44 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Fast random access of gzip files in Python"
39 +HOMEPAGE="https://github.com/pauldmccarthy/indexed_gzip"
40 +SRC_URI="https://github.com/pauldmccarthy/indexed_gzip/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="ZLIB"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +RDEPEND="
47 + sys-libs/zlib:="
48 +DEPEND=${RDEPEND}
49 +BDEPEND="
50 + dev-python/cython[${PYTHON_USEDEP}]
51 + test? (
52 + dev-python/numpy[${PYTHON_USEDEP}]
53 + )
54 + "
55 +
56 +distutils_enable_tests pytest
57 +
58 +src_prepare() {
59 + sed -i -e 's:--cov=indexed_gzip::' setup.cfg || die
60 + distutils-r1_src_prepare
61 +}
62 +
63 +src_compile() {
64 + if use test; then
65 + export INDEXED_GZIP_TESTING=1
66 + fi
67 + distutils-r1_src_compile
68 +}
69 +
70 +python_test() {
71 + cd "${BUILD_DIR}"/lib/indexed_gzip/tests || die
72 + epytest
73 +}