1 |
commit: db6b5723172d98c7a2465c7debc036ee78622dd8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 07:02:43 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 11:52:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db6b5723 |
7 |
|
8 |
dev-python/aesara: Bump to 2.2.5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/aesara/Manifest | 1 + |
13 |
dev-python/aesara/aesara-2.2.5.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest |
17 |
index 3472183c4e2..3eebd69eefc 100644 |
18 |
--- a/dev-python/aesara/Manifest |
19 |
+++ b/dev-python/aesara/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST aesara-rel-2.2.2.tar.gz 8174668 BLAKE2B c95347e8b74f6600c3570177f86b7ebd7511899ed0ceb24a2d79a03a44ee498a8062b92fb79867f59b609f66315704ee92e28e12a5ab600d54d0d35ef799b66b SHA512 d5f62e42c36100b2fd25eba492590eb306b1394aa01bf2e90d43e84ac67701e5b756be6bc08d0e6b82fb1f37689dbbba1d7ef67c8525555a700a634d742056bb |
22 |
DIST aesara-rel-2.2.3.tar.gz 8179701 BLAKE2B 53ef58d6f0ab33e7efe3d0eaa2b55153a2ab29c958b48f52f814fecf7f5fa65424465470cde0ebb8d2ef1ced6968fd01217d9f7bd61acc8843cde1a9c0a94cbe SHA512 21414230c0be2c31e08fd371ee69c3bb7098b2134a5aec006abeca00a333e025fcbfd10ebdcbf54d243e1bc8c45f301a2c3443531ba5eaf0fe3a1ac5645ae4f5 |
23 |
DIST aesara-rel-2.2.4.tar.gz 8180599 BLAKE2B 2b5e6ce0b0cbf0405d312f5b7c842057f05378c240c4dd36818c1b9d1b57667494c2472537e039ab16fac702a30a692bba5c8d5fc8801eb0c7e492d7f8e059b3 SHA512 3e0fe0cfa37f3b597ab94778dca60368aedbf9df79b4bb79812a190d77743addd1ddf5f234bf62c2dd744054204f03b84b358d0c58c27c28829b8fbe919bd151 |
24 |
+DIST aesara-rel-2.2.5.tar.gz 8180714 BLAKE2B 8c94d26df9244c95a58dcf0c7f8d733841f25aad63046b12264e8081bbb5a7debad82f48dc9b3119c87d8d4709f9016205aeff025235fce2dc381832c9f5a312 SHA512 9b28163277b358ebb5bc4d77d7fb9f0e47c4aad3eb92de4702148990fb7cd367c67e42d161465129695869a6c23f31251705c6a24ebd36f048259d70c32f9a65 |
25 |
|
26 |
diff --git a/dev-python/aesara/aesara-2.2.5.ebuild b/dev-python/aesara/aesara-2.2.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..86721797fe0 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/aesara/aesara-2.2.5.ebuild |
31 |
@@ -0,0 +1,70 @@ |
32 |
+# Copyright 2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit distutils-r1 multiprocessing optfeature |
39 |
+ |
40 |
+MY_P=aesara-rel-${PV} |
41 |
+DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" |
42 |
+HOMEPAGE="https://github.com/aesara-devs/aesara" |
43 |
+SRC_URI="https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz" |
44 |
+S="${WORKDIR}/${MY_P}" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/filelock[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/six[${PYTHON_USEDEP}] |
54 |
+ dev-python/scipy[${PYTHON_USEDEP}]" |
55 |
+BDEPEND=" |
56 |
+ test? ( |
57 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
58 |
+ )" |
59 |
+ |
60 |
+distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme' |
61 |
+distutils_enable_tests pytest |
62 |
+ |
63 |
+python_prepare_all() { |
64 |
+ sed -i -e "s/tests.\*/tests\*/" setup.py || die |
65 |
+ |
66 |
+ distutils-r1_python_prepare_all |
67 |
+} |
68 |
+ |
69 |
+python_test() { |
70 |
+ local exclude=( |
71 |
+ # speed tests are unreliable |
72 |
+ tests/scan/test_basic.py::test_speed |
73 |
+ tests/scan/test_basic.py::test_speed_rnn |
74 |
+ tests/scan/test_basic.py::test_speed_batchrnn |
75 |
+ tests/link/test_vm.py::test_speed |
76 |
+ tests/link/test_vm.py::test_speed_lazy |
77 |
+ tests/tensor/test_gc.py::test_merge_opt_runtime |
78 |
+ |
79 |
+ # rounding problem? |
80 |
+ # https://github.com/aesara-devs/aesara/issues/477 |
81 |
+ tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good |
82 |
+ tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good |
83 |
+ ) |
84 |
+ |
85 |
+ distutils_install_for_testing |
86 |
+ # we do not package numba |
87 |
+ epytest ${exclude[@]/#/--deselect } \ |
88 |
+ --ignore tests/link/test_numba.py \ |
89 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
90 |
+} |
91 |
+ |
92 |
+# https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo |
93 |
+python_install() { |
94 |
+ rm "${BUILD_DIR}"/lib/bin/__init__.py || die |
95 |
+ distutils-r1_python_install |
96 |
+} |
97 |
+ |
98 |
+pkg_postinst() { |
99 |
+ optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk |
100 |
+ optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda |
101 |
+} |