Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/
Date: Wed, 29 Dec 2021 06:25:25
Message-Id: 1640759064.976696860684f2583e4c428bc7ec4b033176c984.arthurzam@gentoo
1 commit: 976696860684f2583e4c428bc7ec4b033176c984
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 29 06:24:24 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 29 06:24:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97669686
7
8 dev-python/pytables: add 3.7.0
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pytables/Manifest | 1 +
13 dev-python/pytables/pytables-3.7.0.ebuild | 83 +++++++++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/dev-python/pytables/Manifest b/dev-python/pytables/Manifest
17 index bb12893a62e8..0ef697796364 100644
18 --- a/dev-python/pytables/Manifest
19 +++ b/dev-python/pytables/Manifest
20 @@ -1 +1,2 @@
21 DIST tables-3.6.1.tar.gz 4641089 BLAKE2B 4ef44b1263f40babe6719bac911ab191e9cb0c58c377705b755fa83f1fba5af1d0fab10b0b45bd6af619a9dce4842a80afad8d8fbab64c3be4f35a1b3f117ee3 SHA512 7f018b70251095049bce9075be4e19f72efba9d39121a35c4521f634b1dd5b81ab6de47df3bb44ad6b8b2dbdbff4e6d0985ad1a7b2f13b44f920c0935e5830ff
22 +DIST tables-3.7.0.tar.gz 8227955 BLAKE2B 0d5b7b765375c4787f1210138e5fd02e3c0ce429ef209a3a8d4fd3bc094f68486ab6f4d0a960ce86efea6991ed691ef2a3e9e8f37a49fe91cb8d6372cadea80e SHA512 eaa368d063b5fad87e6d0f9ab6f02da0b2a3542740a52fe8c2bb58e41121495d07b6d2710ad402a28891294aa61a11238c6a7e2cf2933a1bb11391b79cf4fd13
23
24 diff --git a/dev-python/pytables/pytables-3.7.0.ebuild b/dev-python/pytables/pytables-3.7.0.ebuild
25 new file mode 100644
26 index 000000000000..48edb62f3560
27 --- /dev/null
28 +++ b/dev-python/pytables/pytables-3.7.0.ebuild
29 @@ -0,0 +1,83 @@
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 +PYTHON_REQ_USE="threads(+)"
37 +
38 +MY_PN=tables
39 +MY_P=${MY_PN}-${PV}
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Hierarchical datasets for Python"
44 +HOMEPAGE="https://www.pytables.org/"
45 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
46 +S="${WORKDIR}/${MY_P}"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="doc examples test"
52 +RESTRICT="!test? ( test )"
53 +
54 +# See https://github.com/PyTables/PyTables/issues/912 for hdf5 upper bound
55 +DEPEND="
56 + app-arch/bzip2:0=
57 + app-arch/lz4:0=
58 + >=app-arch/zstd-1.0.0:=
59 + >=dev-libs/c-blosc-1.11.1:0=
60 + dev-libs/lzo:2=
61 + >=dev-python/numpy-1.8.1[${PYTHON_USEDEP}]
62 + <sci-libs/hdf5-1.12:=
63 +"
64 +RDEPEND="${DEPEND}
65 + >=dev-python/numexpr-2.5.2[${PYTHON_USEDEP}]
66 + dev-python/six[${PYTHON_USEDEP}]"
67 +BDEPEND="
68 + >=dev-python/cython-0.21[${PYTHON_USEDEP}]
69 + virtual/pkgconfig
70 + test? (
71 + dev-python/mock[${PYTHON_USEDEP}]
72 + ${RDEPEND}
73 + )
74 +"
75 +
76 +DOCS=( RELEASE_NOTES.txt THANKS )
77 +
78 +python_prepare_all() {
79 + export {BLOSC,BZIP2,LZO,HDF5}_DIR="${ESYSROOT}"/usr
80 + export PYTABLES_NO_EMBEDDED_LIBS=1
81 + export USE_PKGCONFIG=TRUE
82 +
83 + rm tables/*.c || die
84 + sed -e "s:/usr:${EPREFIX}/usr:g" \
85 + -i setup.py || die
86 + rm -r c-blosc/{blosc,internal-complibs} || die
87 + sed -i -e '/_version/ s/\\s\*/\\s\+/' setup.py || die
88 + distutils-r1_python_prepare_all
89 +}
90 +
91 +python_compile() {
92 + distutils-r1_python_compile -j1
93 +}
94 +
95 +python_test() {
96 + cd "${BUILD_DIR}"/lib* || die
97 + "${EPYTHON}" tables/tests/test_all.py -v || die "Tests failed with ${EPYTHON}"
98 +}
99 +
100 +python_install_all() {
101 + if use doc; then
102 + DOCS+=( doc/scripts )
103 + fi
104 + distutils-r1_python_install_all
105 +
106 + if use examples; then
107 + dodoc -r examples
108 + dodoc -r contrib
109 + docompress -x /usr/share/doc/${PF}/examples
110 + docompress -x /usr/share/doc/${PF}/contrib
111 + fi
112 +}