commit:     f45e76a8d4146a745d055c563b343c20a5919629
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 24 06:22:49 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 24 06:58:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f45e76a8

dev-python/aesara: Bump to 2.2.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aesara/Manifest            |  1 +
 dev-python/aesara/aesara-2.2.1.ebuild | 70 +++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest
index 07a68eac446..ebb0b6ca28a 100644
--- a/dev-python/aesara/Manifest
+++ b/dev-python/aesara/Manifest
@@ -2,3 +2,4 @@ DIST aesara-rel-2.0.12.tar.gz 8154749 BLAKE2B 
0e39102e985e9f9ed49f65c76389d76702
 DIST aesara-rel-2.1.2.tar.gz 8167162 BLAKE2B 
727bdf6fb9765c8b60da585595ed7203071490c1dfc0895428ae3efe4a1e74a14bbdf2a76128a6840dedeabdfc997fd297dec23ff517247452433cbdc9449b9a
 SHA512 
22ebd1290a0727f2cf1e106770c872d5f1d785c6946b8e4debcc29a34fddceccb11f0ec81850fd93dbff556aa300bf2ec1bd6eef1297d93e194ff832b442c453
 DIST aesara-rel-2.1.3.tar.gz 8170822 BLAKE2B 
dbbc4a453c5d7f9cd4ab2c925dd9293e835db23100686a8d7ab2c47182b1bc05f883eeb60d6f47f8f34e4187f3ac07b632cde43fe82a99e2145a2f699a2b3582
 SHA512 
52d1724eb7b3c9bae4bdbf1735db9ef96cdfa94f3e2281b255201d0baba260fe31f78c00719a53ce3c59ea9c66ff218d8acd7bc012b386942f29806c07ffc466
 DIST aesara-rel-2.2.0.tar.gz 8164714 BLAKE2B 
766f1adee8ae036782ec4fab4dd96bf7d99a6e6b45ed0fd6e55ed2e8c257fb6796bc1789a5a6760131a7098ea4dfa70e68a0a096cae1bd0d544d73c2fb10c7f7
 SHA512 
0683c80dc786e92f5d5077f658d1acf3c57317aac402517e87aa2c08762361685cfb76c21869af10bd58c4c79fc6b1551f50edead0d72717b04396f33faf5535
+DIST aesara-rel-2.2.1.tar.gz 8166022 BLAKE2B 
af3c17029dacb3d365bf49eb01d4d03b5a4f770f66d3e5eba2c4576ef156056bc1aca3571442c1cb7352c358978b47faa7af70ca0da2a2168d8c9bfd47b17138
 SHA512 
f7bab8ca80e8d13ef7698c1efa56ff37c561786330bf756c7a00c54ae1f131810d68bfd6e328b0705d45788759bd984d42306d2c545d2de6b9a3592b5c021ad8

diff --git a/dev-python/aesara/aesara-2.2.1.ebuild 
b/dev-python/aesara/aesara-2.2.1.ebuild
new file mode 100644
index 00000000000..3148f85f3cf
--- /dev/null
+++ b/dev-python/aesara/aesara-2.2.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1 optfeature
+
+MY_P=aesara-rel-${PV}
+DESCRIPTION="Library for operating on mathematical expressions with 
multi-dimensional arrays"
+HOMEPAGE="https://github.com/aesara-devs/aesara";
+SRC_URI="https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz -> 
${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+RDEPEND="
+       dev-python/filelock[${PYTHON_USEDEP}]
+       >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/scipy[${PYTHON_USEDEP}]"
+BDEPEND="
+       test? (
+               dev-python/pytest-xdist[${PYTHON_USEDEP}]
+       )"
+
+distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme'
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       sed -i -e "s/tests.\*/tests\*/" setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       local exclude=(
+               # speed tests are unreliable
+               tests/scan/test_basic.py::test_speed
+               tests/scan/test_basic.py::test_speed_rnn
+               tests/scan/test_basic.py::test_speed_batchrnn
+               tests/link/test_vm.py::test_speed
+               tests/link/test_vm.py::test_speed_lazy
+               tests/tensor/test_gc.py::test_merge_opt_runtime
+
+               # rounding problem?
+               # https://github.com/aesara-devs/aesara/issues/477
+               tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good
+               
tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good
+       )
+
+       distutils_install_for_testing
+       # we do not package numba
+       epytest ${exclude[@]/#/--deselect } \
+               --ignore tests/link/test_numba.py \
+               -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
+}
+
+# 
https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo
+python_install() {
+       rm "${BUILD_DIR}"/lib/bin/__init__.py || die
+       distutils-r1_python_install
+}
+
+pkg_postinst() {
+       optfeature "GPU code generation/execution on NVIDIA gpus" 
dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk
+       optfeature "GPU/CPU code generation on CUDA and OpenCL devices" 
dev-libs/libgpuarray dev-python/pycuda
+}

Reply via email to