From 584b07b46d18da71237de0a7ef1e71c3920a3c93 Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 31 Jan 2023 04:48:21 -0500 Subject: [PATCH] dev-python/neo: test fixes Signed-off-by: Horea Christian --- dev-python/neo/metadata.xml | 1 + dev-python/neo/neo-0.10.0.ebuild | 2 +- dev-python/neo/neo-0.11.0.ebuild | 22 +++++++++++++++++----- dev-python/neo/neo-0.11.1.ebuild | 22 +++++++++++++--------- 4 files changed, 32 insertions(+), 15 deletions(-) diff --git a/dev-python/neo/metadata.xml b/dev-python/neo/metadata.xml index 10d0b52..5a50da2 100644 --- a/dev-python/neo/metadata.xml +++ b/dev-python/neo/metadata.xml @@ -18,5 +18,6 @@ NeuralEnsemble/python-neo + neo diff --git a/dev-python/neo/neo-0.10.0.ebuild b/dev-python/neo/neo-0.10.0.ebuild index 664200c..0ddae9e 100644 --- a/dev-python/neo/neo-0.10.0.ebuild +++ b/dev-python/neo/neo-0.10.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{10..10} ) inherit distutils-r1 MY_PN="python-neo" diff --git a/dev-python/neo/neo-0.11.0.ebuild b/dev-python/neo/neo-0.11.0.ebuild index 02a5b28..c66b2b9 100644 --- a/dev-python/neo/neo-0.11.0.ebuild +++ b/dev-python/neo/neo-0.11.0.ebuild @@ -1,9 +1,10 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{10..10} ) +DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 MY_PN="python-neo" @@ -16,9 +17,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="test" -#RESTRICT="test" -# Numerous test failures, checking with upstream: -# https://github.com/NeuralEnsemble/python-neo/issues/1037 RDEPEND=" dev-python/numpy[${PYTHON_USEDEP}] @@ -48,3 +46,17 @@ BDEPEND=" S="${WORKDIR}/${MY_PN}-${PV}" distutils_enable_tests pytest + +EPYTEST_DESELECT=( + neo/test/utils/test_datasets.py::TestDownloadDataset::test_download_dataset +) + +# Reported upstream +# https://github.com/NeuralEnsemble/python-neo/issues/1037 +python_test() { + local EPYTEST_IGNORE=( + neo/test/iotest/* + neo/test/rawiotest/* + ) + epytest +} diff --git a/dev-python/neo/neo-0.11.1.ebuild b/dev-python/neo/neo-0.11.1.ebuild index d433703..c7a36d0 100644 --- a/dev-python/neo/neo-0.11.1.ebuild +++ b/dev-python/neo/neo-0.11.1.ebuild @@ -1,13 +1,12 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{10..10} ) +DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 -MY_PN="python-neo" - DESCRIPTION="Read and represent a wide range of neurophysiology file formats in Python" HOMEPAGE="https://github.com/NeuralEnsemble/python-neo" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" @@ -17,9 +16,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="test" -#RESTRICT="test" -# Numerous test failures, checking with upstream: -# https://github.com/NeuralEnsemble/python-neo/issues/1037 RDEPEND=" dev-python/numpy[${PYTHON_USEDEP}] @@ -46,6 +42,14 @@ BDEPEND=" # sonpy # ipython -#S="${WORKDIR}/${MY_PN}-${PV}" - distutils_enable_tests pytest + +# Reported upstream +# https://github.com/NeuralEnsemble/python-neo/issues/1037 +python_test() { + local EPYTEST_IGNORE=( + neo/test/iotest/* + neo/test/rawiotest/* + ) + epytest +}