Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/theano/
Date: Sun, 31 Mar 2019 14:39:15
Message-Id: 1554042980.68ae6ec4f65edc25b59bef4410af33cee8be2df8.amynka@gentoo
1 commit: 68ae6ec4f65edc25b59bef4410af33cee8be2df8
2 Author: Amy Liffey <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 14:33:38 2019 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 14:36:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ae6ec4
7
8 dev-python/theano: version bump 1.0.4
9
10 Signed-off-by: Amy Liffey <amynka <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-python/theano/Manifest | 1 +
14 dev-python/theano/theano-1.0.4.ebuild | 51 +++++++++++++++++++++++++++++++++++
15 2 files changed, 52 insertions(+)
16
17 diff --git a/dev-python/theano/Manifest b/dev-python/theano/Manifest
18 index eec75901f74..50b9a99a9bd 100644
19 --- a/dev-python/theano/Manifest
20 +++ b/dev-python/theano/Manifest
21 @@ -2,3 +2,4 @@ DIST Theano-0.6.0.tar.gz 1763756 BLAKE2B d5eddeef1868f4fd6946b2067d0c7264f699650
22 DIST Theano-0.7.0.tar.gz 1985387 BLAKE2B 00d547d5d1f6bb4049a1db71442381ae3803be683975ccca7536b8971e066ac1d09a4fc93a7f70693ae052bbf681e0c59a8b30a326f862f870e10422b438f979 SHA512 6e6bf9afdebf3c281d71f5ceda73792e0a52b403b18776a639665767ac73ac4920b5042e29d656d517b8f023e5f9cd5a27086e0456dc40c42abf6f3569da3f06
23 DIST Theano-0.8.2.tar.gz 2914631 BLAKE2B d136630d689101e9ae47984cd13289b03943276ed0aa606478169d4334a302448f5a2c31d65b1e6d571648772d6f0760cc004f2eefd86d41d72f2b0270017763 SHA512 d7bad7ed4c9453470b66df2ada4587fbe9effc134c0604d11576630a613568386d41aa7dd4a77f8b7a1eb6d8a2f76a8e809b1ac3ae18c85a0c55ba4a059b865e
24 DIST Theano-0.9.0.tar.gz 3116713 BLAKE2B bf38d3c504909caa7aaf8e704a6afc86ab56810199190a0a6beb86ff5e0f9a75c8681dee1f1411ddcfa40739576e4d725c2423e74a32e796987fbd4b09ffde76 SHA512 e0e59256d2442f929fb120b4b21cab735e0a8ba087c4ea7d7caeabe8fa30cc19a46181fe1b4e268e778344fb3506eb20d8090dfc8d2a499c1bf84b07352686ab
25 +DIST Theano-1.0.4.tar.gz 2840691 BLAKE2B 7f89caee3dd50d75ff09693fde7926f2b7da0f94758ef932f207feea29d74d38ed56591e6ebe0b46cfa043d5fb46d5b97028171acdfd324a01eb7b904169b4ac SHA512 3cc7f9dbb606c3c997c8651c34dd861721d5a8b99d06ed0887306d5a5ad0d7e402fbe29dcb5ad2f513b3bf75966e41a2854ebdf9a4fb212607345f84f367de8c
26
27 diff --git a/dev-python/theano/theano-1.0.4.ebuild b/dev-python/theano/theano-1.0.4.ebuild
28 new file mode 100644
29 index 00000000000..645f4a198a3
30 --- /dev/null
31 +++ b/dev-python/theano/theano-1.0.4.ebuild
32 @@ -0,0 +1,51 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
39 +
40 +inherit distutils-r1 eutils
41 +
42 +DESCRIPTION="Define and optimize multi-dimensional arrays mathematical expressions"
43 +HOMEPAGE="https://github.com/Theano/Theano"
44 +SRC_URI="mirror://pypi/theano/${PN^}/${PN^}-${PV}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + dev-python/numpy[${PYTHON_USEDEP}]
54 + dev-python/six[${PYTHON_USEDEP}]
55 + sci-libs/scipy[${PYTHON_USEDEP}]
56 +"
57 +DEPEND="${RDEPEND}
58 + dev-python/setuptools[${PYTHON_USEDEP}]
59 + test? (
60 + dev-python/flake8[${PYTHON_USEDEP}]
61 + dev-python/nose[${PYTHON_USEDEP}]
62 + dev-python/parameterized[${PYTHON_USEDEP}]
63 + dev-python/pyflakes[${PYTHON_USEDEP}]
64 + )"
65 +
66 +S="${WORKDIR}/${PN^}-${PV}"
67 +
68 +python_prepare_all() {
69 + # remove bundled six
70 + find -type f -name "*.py" -exec \
71 + sed -e 's:theano.compat.six:six:g' -i '{}' + || die
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +python_test() {
76 + distutils_install_for_testing
77 + nosetests --verbosity=3 || die
78 +}
79 +
80 +pkg_postinst() {
81 + optfeature "Make picture of Theano computation graph" dev-python/pydot-ng
82 + optfeature "Required for GPU/CPU code generation" dev-python/pygpu
83 +}