summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-02-13 11:00:08 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-02-19 09:02:44 +0200
commit5ca4bde7cf5ba071b0b13afcbac167a1474d238a (patch)
tree7a7abd1ae80565135f1e29013ff99456d42f3c5d /dev-python/spyder-kernels
parentdev-python/spyder-terminal: Run system terminals inside Spyder (diff)
downloadgentoo-5ca4bde7cf5ba071b0b13afcbac167a1474d238a.tar.gz
gentoo-5ca4bde7cf5ba071b0b13afcbac167a1474d238a.tar.bz2
gentoo-5ca4bde7cf5ba071b0b13afcbac167a1474d238a.zip
dev-python/spyder-kernels: Add test
Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/13988 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/spyder-kernels')
-rw-r--r--dev-python/spyder-kernels/Manifest2
-rw-r--r--dev-python/spyder-kernels/spyder-kernels-1.8.1-r1.ebuild45
-rw-r--r--dev-python/spyder-kernels/spyder-kernels-1.8.1.ebuild24
3 files changed, 46 insertions, 25 deletions
diff --git a/dev-python/spyder-kernels/Manifest b/dev-python/spyder-kernels/Manifest
index a576bffaa9c8..de7465e06e07 100644
--- a/dev-python/spyder-kernels/Manifest
+++ b/dev-python/spyder-kernels/Manifest
@@ -1,3 +1,3 @@
DIST spyder-kernels-0.2.4.tar.gz 35750 BLAKE2B 85cc767dc1ab8e071a6c08993b3d8d383e7b9bcf85be704fcd1bc3b321ff7ec532a7ecbb6a30dc2bce2fa7fd8d74812fae07dea5e10eff6309b3ca13fb16e6d5 SHA512 d5b8af3e0b8c5af9e29864912ecd27ee27a605938f36c0a7681167fb782e4b7fb79d5ffb4ae9b77fb82676301be664a1e1dd64f2f206fee2bf047f0ef9e05941
DIST spyder-kernels-1.0.1.tar.gz 35936 BLAKE2B d3e572ba04823869bf8a602e96195a95c39da3c0e29d6bf17eeb305e21d60d72fb8c6bda9f111558468655759f1319e2d69d12b7a3c4011c18d22570d394d64e SHA512 05a4124e44cf1ba1d56927295dc9a2fea315ffe107d0f835a36d29b0727c2d7abe35e41974d62ece23b2d5ef78baa18c1d29910c0359b6fea900216e8f093d97
-DIST spyder-kernels-1.8.1.tar.gz 52588 BLAKE2B 50cdc515da8b489d4cf3027e85a5c0e65f6ca715244eeffd4b5c8000f81a2eb8c34e64f221ff02d1a613b48ae0aaf8fbd6aa51ee78bf3f590bf3b70d786091b0 SHA512 c2bdbe862450a4c881cedfbdeb7c8a117b3d20a0faa593439308e9f52ed4d4576b32151f8edb0b1df460e538894e31971dc7dcd792b4c999b0ef9dedee654d6c
+DIST spyder-kernels-1.8.1.tar.gz 68622 BLAKE2B dc8bd62b94d392026c810a038d7e4076e6b6bcf97dce79197617666be1316935b55345d6378f15d66bd37dd4b2595afe5e40ce75857e8807ad1f1708092222f3 SHA512 aad8a641f801989bf458591f2b938fff178d04d3ae028b18ed5b6926556da840f27e1febc18cf4df9f8fcacd6ac993a5ebd192b5f9d922a16c2dbd63c2059750
diff --git a/dev-python/spyder-kernels/spyder-kernels-1.8.1-r1.ebuild b/dev-python/spyder-kernels/spyder-kernels-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..d9e2b197356e
--- /dev/null
+++ b/dev-python/spyder-kernels/spyder-kernels-1.8.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Kernels used by spyder on its ipython console"
+HOMEPAGE="https://github.com/spyder-ide/spyder-kernels/
+ https://pypi.org/project/spyder-kernels/"
+SRC_URI="https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/cloudpickle[${PYTHON_USEDEP}]
+ >=dev-python/ipykernel-5.1.3[${PYTHON_USEDEP}]
+ >=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}]
+ dev-python/pyzmq[${PYTHON_USEDEP}]
+ dev-python/wurlitzer[${PYTHON_USEDEP}]"
+
+DEPEND="test? (
+ dev-python/cython[${PYTHON_USEDEP}]
+ dev-python/flaky[${PYTHON_USEDEP}]
+ dev-python/matplotlib[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pandas[${PYTHON_USEDEP}]
+ sci-libs/scipy[${PYTHON_USEDEP}]
+ dev-python/xarray[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest
+
+python_test() {
+ if [[ ${EPYTHON} = python3.6 ]]; then
+ # this fails in py3.6 for some reason
+ sed -i -e 's:test_turtle_launch:_&:' \
+ spyder_kernels/console/tests/test_console_kernel.py || die
+ fi
+
+ pytest -vv || die "Tests fail with ${EPYTHON}"
+}
diff --git a/dev-python/spyder-kernels/spyder-kernels-1.8.1.ebuild b/dev-python/spyder-kernels/spyder-kernels-1.8.1.ebuild
deleted file mode 100644
index cc6a13af51d7..000000000000
--- a/dev-python/spyder-kernels/spyder-kernels-1.8.1.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-
-inherit distutils-r1
-
-DESCRIPTION="Kernels used by spyder on its ipython console"
-HOMEPAGE="
- https://github.com/spyder-ide/spyder-kernels/
- https://pypi.org/project/spyder-kernels/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="dev-python/cloudpickle[${PYTHON_USEDEP}]
- >=dev-python/ipykernel-5.1.3[${PYTHON_USEDEP}]
- >=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}]
- dev-python/pyzmq[${PYTHON_USEDEP}]
- dev-python/wurlitzer[${PYTHON_USEDEP}]"