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/numexpr/
Date: Mon, 27 Jun 2022 19:08:51
Message-Id: 1656356916.71ce93620a7c0555214f50f7b4d2f1903657e6b1.arthurzam@gentoo
1 commit: 71ce93620a7c0555214f50f7b4d2f1903657e6b1
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 27 18:57:03 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 27 19:08:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ce9362
7
8 dev-python/numexpr: add 2.8.3
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/numexpr/Manifest | 1 +
13 dev-python/numexpr/numexpr-2.8.3.ebuild | 34 +++++++++++++++++++++++++++++++++
14 2 files changed, 35 insertions(+)
15
16 diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest
17 index 8da6ec40ced0..3c4e3b144f8d 100644
18 --- a/dev-python/numexpr/Manifest
19 +++ b/dev-python/numexpr/Manifest
20 @@ -1 +1,2 @@
21 DIST numexpr-2.8.1.tar.gz 111984 BLAKE2B b5d0b5bd5507c8c513db6404917b6256d9c8d232ea5d2f027f42cdac4a5e5c5f8c2db3d2283734f80d0ae7df2551314d088ccd2ed8e2c7401cc04a15ad61751d SHA512 243cddcb1fece9410e35c87a4c3f794ac0963ddfcc054b9a9c9842a2bb4e782d6c939f532d00d724d4b447d915764c3c8bbb87a99c71a22951798329aa7494bd
22 +DIST numexpr-2.8.3.gh.tar.gz 112551 BLAKE2B c433e27dafe14e0760cd825992a4dcf3e35ae7a32c1bb768c6f5632e8505be5b10dc08a89c97836f019e53d77cf4aa811cc0822832d605934e35ae93e1cbb661 SHA512 4753159f8247ed18dba01d4db21e8e0a149a253cfc064719c9ccdcdd779d109aca64d2306820d912c274b5b6037a9dc849285ef015fec1e1dc9f0c8bad246393
23
24 diff --git a/dev-python/numexpr/numexpr-2.8.3.ebuild b/dev-python/numexpr/numexpr-2.8.3.ebuild
25 new file mode 100644
26 index 000000000000..cbfed545e678
27 --- /dev/null
28 +++ b/dev-python/numexpr/numexpr-2.8.3.ebuild
29 @@ -0,0 +1,34 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..11} )
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_REQ_USE="threads(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy"
42 +HOMEPAGE="https://github.com/pydata/numexpr"
43 +SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +
49 +DEPEND="
50 + >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}]
51 +"
52 +RDEPEND="${DEPEND}
53 + dev-python/packaging[${PYTHON_USEDEP}]
54 +"
55 +
56 +python_test() {
57 + pushd "${BUILD_DIR}/install/usr/lib/${EPYTHON}/site-packages" >/dev/null || die
58 + "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}"
59 + import sys,numexpr
60 + sys.exit(0 if numexpr.test().wasSuccessful() else 1)
61 + EOF
62 + pushd >/dev/null || die
63 +}