public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-python/arrayfire-python/files/, dev-python/arrayfire-python/
@ 2020-09-25 13:02 Aisha Tammy
  0 siblings, 0 replies; only message in thread
From: Aisha Tammy @ 2020-09-25 13:02 UTC (permalink / raw
  To: gentoo-commits

commit:     9b472b90d48655a31d2d20606d7bdac37297a2e0
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Fri Sep 25 13:02:01 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Fri Sep 25 13:02:01 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=9b472b90

dev-python/arrayfire-python: version bump

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 .../arrayfire-python-3.4.20170222.ebuild           | 26 ---------------
 .../arrayfire-python-3.6.20181017.ebuild           | 35 +++++++++++++++++++
 .../arrayfire-python-3.6.20181017_p1.ebuild        | 39 ++++++++++++++++++++++
 .../arrayfire-python/arrayfire-python-9999.ebuild  | 19 -----------
 ...rayfire-python-3.6.20181017_p1-skip_tests.patch | 20 +++++++++++
 5 files changed, 94 insertions(+), 45 deletions(-)

diff --git a/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild b/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild
deleted file mode 100644
index 32818eef8..000000000
--- a/dev-python/arrayfire-python/arrayfire-python-3.4.20170222.ebuild
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 python3_{4,5} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python bindings for ArrayFire"
-HOMEPAGE="http://www.arrayfire.com"
-SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-IUSE="test"
-KEYWORDS="~amd64"
-
-RDEPEND="
-	>=sci-libs/arrayfire-3.4.0
-	<sci-libs/arrayfire-3.5.0
-	"
-DEPEND="${RDEPEND}"
-
-python_test() {
-	${EPYTHON} -m arrayfire.tests
-}

diff --git a/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild
new file mode 100644
index 000000000..8c5542a86
--- /dev/null
+++ b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for ArrayFire"
+HOMEPAGE="http://www.arrayfire.com"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/arrayfire/arrayfire-python"
+else
+	SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	sci-libs/arrayfire
+"
+DEPEND="${RDEPEND}"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_test() {
+	${EPYTHON} -m arrayfire.tests || \
+		die "tests failed with ${EPYTHON}"
+}

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
new file mode 100644
index 000000000..0dd4a4434
--- /dev/null
+++ b/dev-python/arrayfire-python/arrayfire-python-3.6.20181017_p1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python bindings for ArrayFire"
+HOMEPAGE="http://www.arrayfire.com"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/arrayfire/arrayfire-python"
+else
+	COMMIT=534b8c2ab4db5b08347f4d3d2f86a58ba8fcfdb6
+	SRC_URI="https://github.com/arrayfire/arrayfire-python/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}"/${PN}-${COMMIT}
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	sci-libs/arrayfire
+"
+DEPEND="${RDEPEND}"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+PATCHES=( "${FILESDIR}"/${P}-skip_tests.patch )
+
+python_test() {
+	${EPYTHON} -m tests || \
+		die "tests failed with ${EPYTHON}"
+}

diff --git a/dev-python/arrayfire-python/arrayfire-python-9999.ebuild b/dev-python/arrayfire-python/arrayfire-python-9999.ebuild
deleted file mode 100644
index 5704d5093..000000000
--- a/dev-python/arrayfire-python/arrayfire-python-9999.ebuild
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-PYTHON_COMPAT=( python2_7 python3_{4,5} )
-
-inherit distutils-r1 git-r3
-
-DESCRIPTION="Python bindings for ArrayFire"
-HOMEPAGE="http://www.arrayfire.com"
-EGIT_REPO_URI="https://github.com/arrayfire/${PN}.git git://github.com/arrayfire/${PN}.git"
-
-LICENSE="BSD"
-SLOT="0"
-
-RDEPEND="
-	>=sci-libs/arrayfire-3.0.0
-	"
-DEPEND="${RDEPEND}"

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
new file mode 100644
index 000000000..eb4eb54cf
--- /dev/null
+++ b/dev-python/arrayfire-python/files/arrayfire-python-3.6.20181017_p1-skip_tests.patch
@@ -0,0 +1,20 @@
+diff --git a/tests/simple/__init__.py b/tests/simple/__init__.py
+index 4950136..41c9cf2 100644
+--- a/tests/simple/__init__.py
++++ b/tests/simple/__init__.py
+@@ -11,7 +11,6 @@
+ 
+ from ._util import tests
+ from .algorithm import simple_algorithm
+-from .arith import simple_arith
+ from .array_test import simple_array
+ from .blas import simple_blas
+ from .data import simple_data
+@@ -28,7 +27,6 @@ from .statistics import simple_statistics
+ __all__ = [
+     "tests",
+     "simple_algorithm",
+-    "simple_arith",
+     "simple_array",
+     "simple_blas",
+     "simple_data",


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-25 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25 13:02 [gentoo-commits] proj/sci:master commit in: dev-python/arrayfire-python/files/, dev-python/arrayfire-python/ Aisha Tammy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox