From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 35B4313835A for ; Wed, 3 Mar 2021 11:40:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5533E0837; Wed, 3 Mar 2021 11:40:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A8E2E0831 for ; Wed, 3 Mar 2021 11:40:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94732340E49 for ; Wed, 3 Mar 2021 11:40:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E765956F for ; Wed, 3 Mar 2021 11:40:43 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1614771638.8957a1f52af73f5442a7646b81bd3e4c750a39d0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aesara/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/aesara/Manifest dev-python/aesara/aesara-2.0.1.ebuild dev-python/aesara/metadata.xml X-VCS-Directories: dev-python/aesara/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8957a1f52af73f5442a7646b81bd3e4c750a39d0 X-VCS-Branch: master Date: Wed, 3 Mar 2021 11:40:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fe0e8662-254e-48cb-8538-82e11d98127a X-Archives-Hash: 37fa10cd986b8ca4ff2af2b7a2863924 commit: 8957a1f52af73f5442a7646b81bd3e4c750a39d0 Author: Jakov Smolic sartura hr> AuthorDate: Tue Mar 2 18:32:12 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Mar 3 11:40:38 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8957a1f5 dev-python/aesara: Another rename of theano (version 2.0.1) Closes: https://bugs.gentoo.org/773901 Signed-off-by: Jakov Smolic sartura.hr> Closes: https://github.com/gentoo/gentoo/pull/19741 Signed-off-by: Michał Górny gentoo.org> dev-python/aesara/Manifest | 1 + dev-python/aesara/aesara-2.0.1.ebuild | 59 +++++++++++++++++++++++++++++++++++ dev-python/aesara/metadata.xml | 13 ++++++++ 3 files changed, 73 insertions(+) diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest new file mode 100644 index 00000000000..19df57a9f0e --- /dev/null +++ b/dev-python/aesara/Manifest @@ -0,0 +1 @@ +DIST aesara-rel-2.0.1.tar.gz 7975083 BLAKE2B 6dfeffb5abbd2a9b8097b9f91b537f215b1d2ee8ec9d2ad2abcb823761b722c2e4de75843c74584445c96add175366ac4e2a62eced88ad75c58d0c31f2b4df87 SHA512 8dad298ada2d4a20151cf86c08424b02e1c0afc5060915844ba06a492866b04225e6cb0407bf1de8d651c0e7ed8bca34e184f2f9a2778a66ed41f08d4b51bfd2 diff --git a/dev-python/aesara/aesara-2.0.1.ebuild b/dev-python/aesara/aesara-2.0.1.ebuild new file mode 100644 index 00000000000..0689b413c5d --- /dev/null +++ b/dev-python/aesara/aesara-2.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 optfeature + +MY_P=aesara-rel-${PV} +DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" +HOMEPAGE="https://github.com/pymc-devs/aesara" +SRC_URI="https://github.com/pymc-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[${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 + ) + + distutils_install_for_testing --via-root + pytest -vv ${exclude[@]/#/--deselect } \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || + die "Tests fail with ${EPYTHON}" +} + +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 +} diff --git a/dev-python/aesara/metadata.xml b/dev-python/aesara/metadata.xml new file mode 100644 index 00000000000..e510de7ea81 --- /dev/null +++ b/dev-python/aesara/metadata.xml @@ -0,0 +1,13 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + + aesara + pymc-devs/aesara + +