Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/arrayfire-python/files/, dev-python/arrayfire-python/
Date: Fri, 25 Sep 2020 13:02:12
Message-Id: 1601038921.9b472b90d48655a31d2d20606d7bdac37297a2e0.epsilon-0@gentoo
1 commit: 9b472b90d48655a31d2d20606d7bdac37297a2e0
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Sep 25 13:02:01 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Sep 25 13:02:01 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9b472b90
7
8 dev-python/arrayfire-python: version bump
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 .../arrayfire-python-3.4.20170222.ebuild | 26 ---------------
14 .../arrayfire-python-3.6.20181017.ebuild | 35 +++++++++++++++++++
15 .../arrayfire-python-3.6.20181017_p1.ebuild | 39 ++++++++++++++++++++++
16 .../arrayfire-python/arrayfire-python-9999.ebuild | 19 -----------
17 ...rayfire-python-3.6.20181017_p1-skip_tests.patch | 20 +++++++++++
18 5 files changed, 94 insertions(+), 45 deletions(-)
19
20 diff --git a/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild b/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild
21 deleted file mode 100644
22 index 32818eef8..000000000
23 --- a/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild
24 +++ /dev/null
25 @@ -1,26 +0,0 @@
26 -# Copyright 1999-2017 Gentoo Foundation
27 -# Distributed under the terms of the GNU General Public License v2
28 -
29 -EAPI=6
30 -PYTHON_COMPAT=( python2_7 python3_{4,5} )
31 -
32 -inherit distutils-r1
33 -
34 -DESCRIPTION="Python bindings for ArrayFire"
35 -HOMEPAGE="http://www.arrayfire.com"
36 -SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 -
38 -LICENSE="BSD"
39 -SLOT="0"
40 -IUSE="test"
41 -KEYWORDS="~amd64"
42 -
43 -RDEPEND="
44 - >=sci-libs/arrayfire-3.4.0
45 - <sci-libs/arrayfire-3.5.0
46 - "
47 -DEPEND="${RDEPEND}"
48 -
49 -python_test() {
50 - ${EPYTHON} -m arrayfire.tests
51 -}
52
53 diff --git a/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild
54 new file mode 100644
55 index 000000000..8c5542a86
56 --- /dev/null
57 +++ b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild
58 @@ -0,0 +1,35 @@
59 +# Copyright 1999-2020 Gentoo Authors
60 +# Distributed under the terms of the GNU General Public License v2
61 +
62 +EAPI=7
63 +PYTHON_COMPAT=( python3_{6..9} )
64 +
65 +inherit distutils-r1
66 +
67 +DESCRIPTION="Python bindings for ArrayFire"
68 +HOMEPAGE="http://www.arrayfire.com"
69 +
70 +if [[ ${PV} == 9999 ]]; then
71 + inherit git-r3
72 + EGIT_REPO_URI="https://github.com/arrayfire/arrayfire-python"
73 +else
74 + SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
75 + KEYWORDS="~amd64"
76 +fi
77 +
78 +LICENSE="BSD"
79 +SLOT="0"
80 +IUSE="test"
81 +RESTRICT="!test? ( test )"
82 +
83 +RDEPEND="
84 + sci-libs/arrayfire
85 +"
86 +DEPEND="${RDEPEND}"
87 +
88 +DISTUTILS_IN_SOURCE_BUILD=1
89 +
90 +python_test() {
91 + ${EPYTHON} -m arrayfire.tests || \
92 + die "tests failed with ${EPYTHON}"
93 +}
94
95 diff --git a/dev-python/arrayfire-python/arrayfire-python-3.6.20181017_p1.ebuild b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017_p1.ebuild
96 new file mode 100644
97 index 000000000..0dd4a4434
98 --- /dev/null
99 +++ b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017_p1.ebuild
100 @@ -0,0 +1,39 @@
101 +# Copyright 1999-2020 Gentoo Authors
102 +# Distributed under the terms of the GNU General Public License v2
103 +
104 +EAPI=7
105 +PYTHON_COMPAT=( python3_{6..9} )
106 +
107 +inherit distutils-r1
108 +
109 +DESCRIPTION="Python bindings for ArrayFire"
110 +HOMEPAGE="http://www.arrayfire.com"
111 +
112 +if [[ ${PV} == 9999 ]]; then
113 + inherit git-r3
114 + EGIT_REPO_URI="https://github.com/arrayfire/arrayfire-python"
115 +else
116 + COMMIT=534b8c2ab4db5b08347f4d3d2f86a58ba8fcfdb6
117 + SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
118 + S="${WORKDIR}"/${PN}-${COMMIT}
119 + KEYWORDS="~amd64"
120 +fi
121 +
122 +LICENSE="BSD"
123 +SLOT="0"
124 +IUSE="test"
125 +RESTRICT="!test? ( test )"
126 +
127 +RDEPEND="
128 + sci-libs/arrayfire
129 +"
130 +DEPEND="${RDEPEND}"
131 +
132 +DISTUTILS_IN_SOURCE_BUILD=1
133 +
134 +PATCHES=( "${FILESDIR}"/${P}-skip_tests.patch )
135 +
136 +python_test() {
137 + ${EPYTHON} -m tests || \
138 + die "tests failed with ${EPYTHON}"
139 +}
140
141 diff --git a/dev-python/arrayfire-python/arrayfire-python-9999.ebuild b/dev-python/arrayfire-python/arrayfire-python-9999.ebuild
142 deleted file mode 100644
143 index 5704d5093..000000000
144 --- a/dev-python/arrayfire-python/arrayfire-python-9999.ebuild
145 +++ /dev/null
146 @@ -1,19 +0,0 @@
147 -# Copyright 1999-2016 Gentoo Foundation
148 -# Distributed under the terms of the GNU General Public License v2
149 -
150 -EAPI=6
151 -PYTHON_COMPAT=( python2_7 python3_{4,5} )
152 -
153 -inherit distutils-r1 git-r3
154 -
155 -DESCRIPTION="Python bindings for ArrayFire"
156 -HOMEPAGE="http://www.arrayfire.com"
157 -EGIT_REPO_URI="https://github.com/arrayfire/${PN}.git git://github.com/arrayfire/${PN}.git"
158 -
159 -LICENSE="BSD"
160 -SLOT="0"
161 -
162 -RDEPEND="
163 - >=sci-libs/arrayfire-3.0.0
164 - "
165 -DEPEND="${RDEPEND}"
166
167 diff --git a/dev-python/arrayfire-python/files/arrayfire-python-3.6.20181017_p1-skip_tests.patch b/dev-python/arrayfire-python/files/arrayfire-python-3.6.20181017_p1-skip_tests.patch
168 new file mode 100644
169 index 000000000..eb4eb54cf
170 --- /dev/null
171 +++ b/dev-python/arrayfire-python/files/arrayfire-python-3.6.20181017_p1-skip_tests.patch
172 @@ -0,0 +1,20 @@
173 +diff --git a/tests/simple/__init__.py b/tests/simple/__init__.py
174 +index 4950136..41c9cf2 100644
175 +--- a/tests/simple/__init__.py
176 ++++ b/tests/simple/__init__.py
177 +@@ -11,7 +11,6 @@
178 +
179 + from ._util import tests
180 + from .algorithm import simple_algorithm
181 +-from .arith import simple_arith
182 + from .array_test import simple_array
183 + from .blas import simple_blas
184 + from .data import simple_data
185 +@@ -28,7 +27,6 @@ from .statistics import simple_statistics
186 + __all__ = [
187 + "tests",
188 + "simple_algorithm",
189 +- "simple_arith",
190 + "simple_array",
191 + "simple_blas",
192 + "simple_data",