public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/indexed_gzip/
Date: Thu, 15 Sep 2022 20:34:56 +0000 (UTC)	[thread overview]
Message-ID: <1663274081.38937972dd8ccf257a9cb9e426e17a5c0090b7be.arthurzam@gentoo> (raw)

commit:     38937972dd8ccf257a9cb9e426e17a5c0090b7be
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 15 20:34:41 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <arthurzam <AT> 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
+}


             reply	other threads:[~2022-09-15 20:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15 20:34 Arthur Zamarin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-04 16:17 [gentoo-commits] repo/gentoo:master commit in: dev-python/indexed_gzip/ Michał Górny
2023-04-08  6:08 Michał Górny
2023-04-01  6:13 Michał Górny
2022-11-14  4:39 Michał Górny
2022-06-12 18:28 Michał Górny
2022-05-16 13:20 Michał Górny
2022-05-16 13:20 Michał Górny
2022-04-17 16:54 Michał Górny
2022-04-17  8:39 Michał Górny
2021-11-14  8:46 Michał Górny
2021-10-19  7:22 Michał Górny
2021-10-17  8:58 Michał Górny
2021-09-14 21:35 Michał Górny
2021-09-04  7:47 Michał Górny
2021-05-26  8:19 Michał Górny
2021-05-24 10:22 Michał Górny
2021-05-24 10:22 Michał Górny
2020-11-17 17:43 Michał Górny
2020-03-27 15:37 Michał Górny
2020-02-19 13:32 Joonas Niilola
2020-02-19 13:32 Joonas Niilola
2018-10-13 13:34 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1663274081.38937972dd8ccf257a9cb9e426e17a5c0090b7be.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox