public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/h5py/
Date: Tue,  5 Dec 2023 13:41:38 +0000 (UTC)	[thread overview]
Message-ID: <1701783655.2fb8858d14adab839c66d7d2aa6ef5246dc8e4af.sam@gentoo> (raw)

commit:     2fb8858d14adab839c66d7d2aa6ef5246dc8e4af
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  5 13:28:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec  5 13:40:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb8858d

dev-python/h5py: backport cython-3 patch

Closes: https://bugs.gentoo.org/898672
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/h5py/Manifest              |  1 +
 dev-python/h5py/h5py-3.10.0-r1.ebuild | 66 +++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-python/h5py/Manifest b/dev-python/h5py/Manifest
index 5f00a98654e5..9858508408b0 100644
--- a/dev-python/h5py/Manifest
+++ b/dev-python/h5py/Manifest
@@ -1 +1,2 @@
+DIST h5py-3.10.0-cython3.patch.xz 3868 BLAKE2B 3c0d952bdca5307ebf0bf878c26b94d0593bb89ac538a51017fb94e1e488bffc1583dcf4e713005b87d1b5e20d7b73043b24d65404faf60fb69515e598ca2133 SHA512 a0a0e3d1a9bccad1c89aa7efe3ba1e080eb70cae1f42f8de1021c212817970eaaa7070131e8e39859eea3c18d6c1243a17e7f53f2179f34ff6c406b315bab8fa
 DIST h5py-3.10.0.tar.gz 403716 BLAKE2B a8e4351a15aee5fe9d23f9c5f9b6ff44e688a391ba17e27338675bde60415c73e3cd97a4a0c05490df849f649d626450d3dbecc9ae6ea3d24d784a0a4aaa1850 SHA512 840d7f2b9b9d5e22e8edae21c84884abec64acdd6c36437a4921ce9dc1b343c55f66f72b699146d71fe55688f6f948787b62335a24906288e9565b2b19b24b01

diff --git a/dev-python/h5py/h5py-3.10.0-r1.ebuild b/dev-python/h5py/h5py-3.10.0-r1.ebuild
new file mode 100644
index 000000000000..9c255e9ce4bb
--- /dev/null
+++ b/dev-python/h5py/h5py-3.10.0-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Simple Python interface to HDF5 files"
+HOMEPAGE="
+	https://www.h5py.org/
+	https://github.com/h5py/h5py/
+	https://pypi.org/project/h5py/
+"
+SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-3.10.0-cython3.patch.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
+IUSE="examples"
+
+DEPEND="
+	>=sci-libs/hdf5-1.10.4:=[hl(+)]
+"
+RDEPEND="
+	${DEPEND}
+	>=dev-python/numpy-1.17.3[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+	>=dev-python/cython-0.29.31[${PYTHON_USEDEP}]
+	>=dev-python/numpy-1.14.5[${PYTHON_USEDEP}]
+	dev-python/pkgconfig[${PYTHON_USEDEP}]
+	test? (
+		dev-python/QtPy[testlib,${PYTHON_USEDEP}]
+	)
+"
+
+PATCHES=(
+	"${WORKDIR}"/${PN}-3.10.0-cython3.patch
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+	dev-python/alabaster
+
+python_prepare_all() {
+	# avoid pytest-mpi dep, we do not use mpi anyway
+	sed -i -e 's:pytest-mpi::' pytest.ini || die
+	distutils-r1_python_prepare_all
+
+	export H5PY_SETUP_REQUIRES=0
+}
+
+python_test() {
+	cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+	epytest -m "not mpi"
+}
+
+python_install_all() {
+	use examples && dodoc -r examples
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2023-12-05 13:41 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05 13:41 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 16:55 [gentoo-commits] repo/gentoo:master commit in: dev-python/h5py/ Michał Górny
2025-03-08 12:19 Arthur Zamarin
2025-03-08 12:19 Arthur Zamarin
2025-03-08 12:07 Arthur Zamarin
2025-02-20  5:06 Michał Górny
2024-10-12  7:54 Michał Górny
2024-10-12  7:52 Michał Górny
2024-10-12  7:52 Michał Górny
2024-10-12  7:04 Michał Górny
2024-09-27  8:07 Michał Górny
2024-05-20 16:25 Sam James
2024-04-27  8:26 Michał Górny
2024-04-27  8:04 Arthur Zamarin
2024-04-27  8:04 Arthur Zamarin
2024-04-27  7:40 Michał Górny
2024-04-22  3:40 Michał Górny
2024-04-13  6:26 Arthur Zamarin
2024-04-11 19:04 Michał Górny
2024-04-11  4:25 Michał Górny
2023-12-25  7:30 Sam James
2023-12-08  9:03 Arthur Zamarin
2023-12-06  7:41 Sam James
2023-12-05 13:42 Sam James
2023-11-11 20:50 Michał Górny
2023-11-11 20:17 Arthur Zamarin
2023-11-11 20:02 Sam James
2023-10-10  5:05 Michał Górny
2023-08-12 15:57 Arthur Zamarin
2023-08-12  0:10 Sam James
2023-07-08 10:47 Benda XU
2023-06-21  4:14 Michał Górny
2023-05-29 23:50 Sam James
2023-05-04 16:17 Michał Górny
2023-02-24  4:50 Michał Górny
2023-02-23 20:45 Arthur Zamarin
2023-02-23 20:18 Arthur Zamarin
2023-01-24  7:04 Michał Górny
2022-12-01 14:35 Michał Górny
2022-10-29 19:43 Sam James
2022-10-06 10:08 Andrew Ammerlaan
2022-09-08 19:39 Jakov Smolić
2022-06-25 11:18 Michał Górny
2022-06-25  9:06 Sam James
2022-06-24 20:59 Jakov Smolić
2022-05-30 20:38 Michał Górny
2022-05-30 19:40 Sam James
2022-05-27  9:12 Jakov Smolić
2022-05-25  7:12 Michał Górny
2022-04-22 10:47 Michał Górny
2021-11-11  8:07 Michał Górny
2021-11-11  8:07 Michał Górny
2021-07-25  1:04 Sam James
2021-07-24 15:12 Sam James
2021-06-22 16:29 Michał Górny
2021-06-09 15:19 Marek Szuba
2021-05-16 18:53 Sam James
2021-04-11 11:11 Sam James
2021-03-08 12:35 Michał Górny
2021-03-06 17:45 Michał Górny
2020-08-17 18:55 David Seifert
2020-05-25  5:55 Michał Górny
2020-05-14  8:03 Agostino Sarubbo
2020-05-13 14:52 Agostino Sarubbo
2020-03-27 11:35 Michał Górny
2020-03-17 15:14 Andrey Grozin
2020-01-30 21:26 Michał Górny
2020-01-25  3:53 Benda XU
2019-01-27 11:02 Benda XU
2018-03-01 19:04 Nicolas Bock
2018-01-04 20:35 Michał Górny
2017-07-15 21:43 Patrice Clement
2017-06-28  4:02 Sebastien Fabbro
2017-06-28  4:02 Sebastien Fabbro
2017-06-26  4:35 Sebastien Fabbro
2017-06-20  5:17 Agostino Sarubbo
2017-06-18 14:01 Agostino Sarubbo
2017-03-25  5:32 Benda XU
2016-12-10  3:28 Benda XU
2016-09-03 13:34 Mike Gilbert
2016-08-19 11:12 Benda XU
2015-10-21 13:41 Justin Lecher

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=1701783655.2fb8858d14adab839c66d7d2aa6ef5246dc8e4af.sam@gentoo \
    --to=sam@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