Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/theano-pymc/
Date: Thu, 24 Dec 2020 13:56:09
Message-Id: 1608775283.f709cad3fec1092ce8357bdaead9da1bd1fdba04.sam@gentoo
1 commit: f709cad3fec1092ce8357bdaead9da1bd1fdba04
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Tue Dec 22 08:52:43 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 24 02:01:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f709cad3
7
8 dev-python/theano-pymc: Replacement for dev-python/theano
9
10 * Python library for operating with mathematical expressions involving multi-dimensional arrays
11
12 Closes: https://bugs.gentoo.org/759940
13 Bug: https://bugs.gentoo.org/738416
14 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
15 Closes: https://github.com/gentoo/gentoo/pull/18763
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 dev-python/theano-pymc/Manifest | 1 +
19 dev-python/theano-pymc/metadata.xml | 12 +++++++
20 dev-python/theano-pymc/theano-pymc-1.0.13.ebuild | 45 ++++++++++++++++++++++++
21 3 files changed, 58 insertions(+)
22
23 diff --git a/dev-python/theano-pymc/Manifest b/dev-python/theano-pymc/Manifest
24 new file mode 100644
25 index 00000000000..1ff0b282387
26 --- /dev/null
27 +++ b/dev-python/theano-pymc/Manifest
28 @@ -0,0 +1 @@
29 +DIST theano-pymc-1.0.13.tar.gz 12975871 BLAKE2B 71528868885084d7c37f1f5cc5156aca5e764d09f0dc57aa46e21240ee2959aafb5882aef8977d9f215b051265d0d9bc3a7097ac0bb6d427cfc076ea6f591905 SHA512 da25e386965695a5630c54a671a7a573d0f0fae2eeeacf4f65130e4e4caf416373852ac14b1eb07ae39c194febe854d71fffe2adc24c348f64a4b73b43564229
30
31 diff --git a/dev-python/theano-pymc/metadata.xml b/dev-python/theano-pymc/metadata.xml
32 new file mode 100644
33 index 00000000000..00af8f28ecf
34 --- /dev/null
35 +++ b/dev-python/theano-pymc/metadata.xml
36 @@ -0,0 +1,12 @@
37 +<?xml version="1.0" encoding="UTF-8"?>
38 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
39 +<pkgmetadata>
40 + <maintainer type="project">
41 + <email>sci@g.o</email>
42 + <name>Gentoo Science Project</name>
43 + </maintainer>
44 + <upstream>
45 + <remote-id type="pypi">Theano-PyMC</remote-id>
46 + <remote-id type="github">pymc-devs/Theano-PyMC</remote-id>
47 + </upstream>
48 +</pkgmetadata>
49
50 diff --git a/dev-python/theano-pymc/theano-pymc-1.0.13.ebuild b/dev-python/theano-pymc/theano-pymc-1.0.13.ebuild
51 new file mode 100644
52 index 00000000000..509edfe62e1
53 --- /dev/null
54 +++ b/dev-python/theano-pymc/theano-pymc-1.0.13.ebuild
55 @@ -0,0 +1,45 @@
56 +# Copyright 2020 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=7
60 +
61 +DISTUTILS_USE_SETUPTOOLS=rdepend
62 +PYTHON_COMPAT=( python3_{6..9} )
63 +inherit distutils-r1 optfeature
64 +
65 +DESCRIPTION="Python library for operating with mathematical expressions involving multi-dimensional arrays"
66 +HOMEPAGE="https://github.com/pymc-devs/Theano-PyMC"
67 +SRC_URI="https://github.com/pymc-devs/Theano-PyMC/archive/rel-${PV}.tar.gz -> ${P}.tar.gz"
68 +
69 +LICENSE="BSD"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~x86"
72 +
73 +RDEPEND="
74 + dev-python/numpy[${PYTHON_USEDEP}]
75 + dev-python/six[${PYTHON_USEDEP}]
76 + dev-python/scipy[${PYTHON_USEDEP}]"
77 +RDEPEND="${DEPEND}"
78 +
79 +S="${WORKDIR}"/Theano-PyMC-rel-${PV}
80 +
81 +distutils_enable_sphinx doc \
82 + 'dev-python/sphinx_rtd_theme'
83 +distutils_enable_tests pytest
84 +
85 +python_prepare_all() {
86 + sed -i -e "s/, 'flake8'//" setup.py || die
87 + sed -i -e "s/tests.\*/tests\*/" setup.py || die
88 +
89 + distutils-r1_python_prepare_all
90 +}
91 +
92 +python_test() {
93 + distutils_install_for_testing
94 + pytest -vv || die
95 +}
96 +
97 +pkg_postinst() {
98 + optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk
99 + optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda
100 +}