Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/theano/
Date: Wed, 28 Jun 2017 04:02:57
Message-Id: 1498622410.a41d9c4f9d0eabafd0dc52781710c648f5286a5c.bicatali@gentoo
1 commit: a41d9c4f9d0eabafd0dc52781710c648f5286a5c
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 27 05:09:21 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 28 04:00:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41d9c4f
7
8 dev-python/theano: version bump
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-python/theano/Manifest | 1 +
13 dev-python/theano/theano-0.9.0.ebuild | 52 +++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-python/theano/Manifest b/dev-python/theano/Manifest
17 index 33585815dfc..c97b06290d4 100644
18 --- a/dev-python/theano/Manifest
19 +++ b/dev-python/theano/Manifest
20 @@ -1,3 +1,4 @@
21 DIST Theano-0.6.0.tar.gz 1763756 SHA256 aaa75f9a9b7bf50f09ddcc01fb993cf47513179d0a7bee3d96bfeebd66e76083 SHA512 6333c673df809bed3af952e0759cce4878ed21684367c6eb20e422363c7c5696ea59239ff6a448c6a32771b1069d441b0e3d049f9708ae69d790412303b8ebbd WHIRLPOOL 946fcacb87b7745e72282f5f7e6b67db5fd0e365f55b2c97a8e9e506e30986d90da7c3789636892ca316da33f4f064f99d31fc3771678457dd609fd0c43d9010
22 DIST Theano-0.7.0.tar.gz 1985387 SHA256 05b0f6d2467735abea13bdc5c2c1ce3c53f1b89f9ebc5a43abdf71f88cf818b3 SHA512 6e6bf9afdebf3c281d71f5ceda73792e0a52b403b18776a639665767ac73ac4920b5042e29d656d517b8f023e5f9cd5a27086e0456dc40c42abf6f3569da3f06 WHIRLPOOL b79906e39eb8f7cad26160148465b4719d1011e1a4626c98fdb55cd273ff289b0c01278d51fdc8271b71434be0fd036f8259a315b07639e9ad83d1e3bf313687
23 DIST Theano-0.8.2.tar.gz 2914631 SHA256 7463c8f7ed1a787bf881f36d38a38607150186697e7ce7e78bfb94b7c6af8930 SHA512 d7bad7ed4c9453470b66df2ada4587fbe9effc134c0604d11576630a613568386d41aa7dd4a77f8b7a1eb6d8a2f76a8e809b1ac3ae18c85a0c55ba4a059b865e WHIRLPOOL 05ae7308054e74fcbcb9057aca5a0e8ed7db7980e4a258bf5143f2a1ae9cfb430808a48467d6a185cdb4215ce33163a1e6e1961284e593c90cc9be6f0c9a5cbb
24 +DIST Theano-0.9.0.tar.gz 3116713 SHA256 745d66716531f9063127274b40503fbc21f931f78b7b03e79e5523d50078bc17 SHA512 e0e59256d2442f929fb120b4b21cab735e0a8ba087c4ea7d7caeabe8fa30cc19a46181fe1b4e268e778344fb3506eb20d8090dfc8d2a499c1bf84b07352686ab WHIRLPOOL 3c387356580cf8ea9340f214783b9003417c2e5ca2d35660ceda0d91a4b1eb29d3794000c59b09b1fd7b20cf273f372d111fcb31496991801d6253319e2694c7
25
26 diff --git a/dev-python/theano/theano-0.9.0.ebuild b/dev-python/theano/theano-0.9.0.ebuild
27 new file mode 100644
28 index 00000000000..cc371c65076
29 --- /dev/null
30 +++ b/dev-python/theano/theano-0.9.0.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
38 +
39 +inherit distutils-r1 versionator
40 +
41 +MYPN=Theano
42 +MYP=${MYPN}-$(replace_version_separator 3 '')
43 +
44 +DESCRIPTION="Define and optimize multi-dimensional arrays mathematical expressions"
45 +HOMEPAGE="https://github.com/Theano/Theano"
46 +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
47 +
48 +SLOT="0"
49 +LICENSE="BSD"
50 +IUSE="doc test"
51 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +
53 +RDEPEND="
54 + dev-python/numpy[${PYTHON_USEDEP}]
55 + dev-python/six[${PYTHON_USEDEP}]
56 + sci-libs/scipy[${PYTHON_USEDEP}]
57 +"
58 +DEPEND="${RDEPEND}
59 + dev-python/setuptools[${PYTHON_USEDEP}]
60 + test? (
61 + dev-python/flake8[${PYTHON_USEDEP}]
62 + dev-python/nose[${PYTHON_USEDEP}]
63 + dev-python/nose-parameterized[${PYTHON_USEDEP}]
64 + dev-python/pyflakes[${PYTHON_USEDEP}]
65 + )"
66 +S="${WORKDIR}/${MYP}"
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 + rm ${PN}/compat/six.py || die
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_test() {
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 +}