1 |
commit: bbcb9693500c5ce7e59adb947aa096e296339361 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 2 18:58:47 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 18:58:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbcb9693 |
7 |
|
8 |
dev-python/theano: bump to 1.0.5 |
9 |
|
10 |
This adds support for Python 3.8+. We also drop pyflakes |
11 |
and exclude the single flakes8 test. |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-python/theano/Manifest | 1 + |
16 |
dev-python/theano/theano-1.0.5.ebuild | 44 +++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 45 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/theano/Manifest b/dev-python/theano/Manifest |
20 |
index 56b8e6682d5..dfa384a3739 100644 |
21 |
--- a/dev-python/theano/Manifest |
22 |
+++ b/dev-python/theano/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST Theano-1.0.4.tar.gz 2840691 BLAKE2B 7f89caee3dd50d75ff09693fde7926f2b7da0f94758ef932f207feea29d74d38ed56591e6ebe0b46cfa043d5fb46d5b97028171acdfd324a01eb7b904169b4ac SHA512 3cc7f9dbb606c3c997c8651c34dd861721d5a8b99d06ed0887306d5a5ad0d7e402fbe29dcb5ad2f513b3bf75966e41a2854ebdf9a4fb212607345f84f367de8c |
25 |
+DIST Theano-1.0.5.tar.gz 2842778 BLAKE2B ee82e9487a5265a1040750ace70465c450134e70eba4e58752cbaa7d487be5fb3cce31b838429cb52f7bc31d32a20379e158ee289dd5732dd8b86a9ee36b6d89 SHA512 6bb27753957d32392ea793e39ea56eff94baafbb55e27488f9c0bbdb387172a6829e64f461f83dae192486d9764b72d815e3b8dc059b2af116b024fc7228a118 |
26 |
|
27 |
diff --git a/dev-python/theano/theano-1.0.5.ebuild b/dev-python/theano/theano-1.0.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..9adbc14e397 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/theano/theano-1.0.5.ebuild |
32 |
@@ -0,0 +1,44 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
39 |
+ |
40 |
+inherit distutils-r1 eutils |
41 |
+ |
42 |
+MY_P=${P^} |
43 |
+ |
44 |
+DESCRIPTION="Define and optimize multi-dimensional arrays mathematical expressions" |
45 |
+HOMEPAGE="https://github.com/Theano/Theano" |
46 |
+SRC_URI="mirror://pypi/${MY_P::1}/${MY_P%-*}/${MY_P}.tar.gz" |
47 |
+S="${WORKDIR}/${MY_P}" |
48 |
+ |
49 |
+LICENSE="BSD" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
52 |
+ |
53 |
+BDEPEND="test? ( dev-python/parameterized[${PYTHON_USEDEP}] )" |
54 |
+RDEPEND=" |
55 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
56 |
+ dev-python/six[${PYTHON_USEDEP}] |
57 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
58 |
+" |
59 |
+ |
60 |
+distutils_enable_tests nose |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed -i -e "s/, 'flake8'//" setup.py || die |
64 |
+ |
65 |
+ distutils-r1_src_prepare |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ distutils_install_for_testing |
70 |
+ nosetests --verbosity=3 -e test_format_flake8 || die |
71 |
+} |
72 |
+ |
73 |
+pkg_postinst() { |
74 |
+ optfeature "Make picture of Theano computation graph" dev-python/pydot-ng |
75 |
+ optfeature "Required for GPU/CPU code generation" dev-python/pygpu |
76 |
+} |