1
0
mirror of synced 2024-12-22 12:50:33 +01:00

dev-python/spikeinterface: PEP517

Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2023-02-01 09:53:18 -05:00
parent b7f27f34aa
commit 5406c8ed3c
No known key found for this signature in database
GPG Key ID: 161C0BE6255333D3
4 changed files with 99 additions and 2 deletions

View File

@ -1 +1,2 @@
DIST spikeinterface-0.91.0.tar.gz 1226833 BLAKE2B a7c1404297216b552b400128cec48eaf6d78f71885a7810ce734af758ac079d6e58851f3e06d4f7cdb413a1f6757d7cbbd67c2578948334ef37db657d8bc3dc0 SHA512 bce2e6919238445d6209112f5ea0177476c5b4b025fbdf02d695bc5da56a9c6404d8d8d8e7dd9f7ec9c702b6752ab12b8b3efebe1e3c0141dd3a03cd16722912 DIST spikeinterface-0.91.0.tar.gz 1226833 BLAKE2B a7c1404297216b552b400128cec48eaf6d78f71885a7810ce734af758ac079d6e58851f3e06d4f7cdb413a1f6757d7cbbd67c2578948334ef37db657d8bc3dc0 SHA512 bce2e6919238445d6209112f5ea0177476c5b4b025fbdf02d695bc5da56a9c6404d8d8d8e7dd9f7ec9c702b6752ab12b8b3efebe1e3c0141dd3a03cd16722912
DIST spikeinterface-0.96.1.tar.gz 1596455 BLAKE2B 52b5d4f0b435433396e7d06b9a2ed83646280ebefb1f62f179f068a060f43898a822e41bf1500ec53087ad5410ee060806f415988606b0197d13d7a671a5603a SHA512 12de90a8d27e900489d36d0ca14edaac3d1abab1a29f0c41ff1d1648fbf11be09c6c01cb0bd1cc4e1d00a81303fab5ffcb4de596ae69be9508e0503edab768ef

View File

@ -9,6 +9,10 @@
<email>sci@gentoo.org</email> <email>sci@gentoo.org</email>
<name>Gentoo Science Project</name> <name>Gentoo Science Project</name>
</maintainer> </maintainer>
<use>
<flag name="extractors">support for all extractors</flag>
<flag name="full">support for all optional processing features</flag>
</use>
<upstream> <upstream>
<remote-id type="github">SpikeInterface/spikeinterface</remote-id> <remote-id type="github">SpikeInterface/spikeinterface</remote-id>
</upstream> </upstream>

View File

@ -3,8 +3,7 @@
EAPI=8 EAPI=8
PYTHON_COMPAT=( python3_{9..10} ) PYTHON_COMPAT=( python3_{10..10} )
# 3.10 missing on numba and spyking-circus
inherit distutils-r1 inherit distutils-r1
DESCRIPTION="A Python-based module for creating flexible and robust spike sorting pipelines." DESCRIPTION="A Python-based module for creating flexible and robust spike sorting pipelines."

View File

@ -0,0 +1,93 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..10} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="A Python-based module for creating flexible and robust spike sorting pipelines."
HOMEPAGE="https://github.com/SpikeInterface/spikeinterface"
SRC_URI="https://github.com/SpikeInterface/spikeinterface/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="extractors full test"
RDEPEND="
dev-python/joblib[${PYTHON_USEDEP}]
dev-python/neo[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/probeinterface[${PYTHON_USEDEP}]
dev-python/threadpoolctl[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
extractors? (
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
)
full? (
dev-python/distinctipy[${PYTHON_USEDEP}]
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/networkx[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
dev-python/xarray[${PYTHON_USEDEP}]
dev-python/zarr[${PYTHON_USEDEP}]
sci-libs/scikit-learn[${PYTHON_USEDEP}]
)
"
# Also wants:
# # Extractors:
# MEArec
# pyedflib
# sonpy
# dev-python/hdf5storage (in ::science, masked)
distutils_enable_tests pytest
# Test failures reported upstream:
# https://github.com/SpikeInterface/spikeinterface/issues/307
python_test() {
# Network sandboxing, mostly (?)
local EPYTEST_DESELECT=(
spikeinterface/core/tests/test_datasets.py::test_download_dataset
spikeinterface/sortingcomponents/tests/test_motion_estimation.py::test_motion_functions
spikeinterface/sortingcomponents/tests/test_motion_estimation.py::test_estimate_motion_rigid
spikeinterface/sortingcomponents/tests/test_motion_estimation.py::test_estimate_motion_non_rigid
spikeinterface/comparison/tests/test_multisortingcomparison.py::test_compare_multiple_sorters
spikeinterface/curation/tests/test_sortingview_curation.py::test_sortingview_curation
spikeinterface/exporters/tests/test_export_to_phy.py::test_export_to_phy
spikeinterface/exporters/tests/test_export_to_phy.py::test_export_to_phy_by_sparsity
spikeinterface/exporters/tests/test_report.py::test_export_report
spikeinterface/extractors/tests/test_neoextractors.py
spikeinterface/sorters/tests/test_launcher.py::test_run_sorters_with_dict
spikeinterface/sorters/tests/test_launcher.py::test_sorter_installation
spikeinterface/sorters/tests/test_runsorter.py::test_run_sorter_local
spikeinterface/sorters/tests/test_runsorter.py::test_run_sorter_docker
spikeinterface/sorters/tests/test_runsorter.py::test_run_sorter_singularity
spikeinterface/sorters/tests/test_si_based_sorters.py::SpykingCircus2SorterCommonTestSuite
spikeinterface/sorters/tests/test_si_based_sorters.py::Tridesclous2SorterCommonTestSuite::test_with_class
spikeinterface/sorters/tests/test_si_based_sorters.py::Tridesclous2SorterCommonTestSuite::test_with_run
spikeinterface/sortingcomponents/tests/test_clustering.py::test_find_cluster_from_peaks
spikeinterface/sortingcomponents/tests/test_features_from_peaks.py::test_features_from_peaks
spikeinterface/sortingcomponents/tests/test_peak_detection.py::test_detect_peaks
spikeinterface/sortingcomponents/tests/test_peak_localization.py::test_localize_peaks
spikeinterface/sortingcomponents/tests/test_peak_pipeline.py::test_run_peak_pipeline
spikeinterface/sortingcomponents/tests/test_peak_selection.py::test_detect_peaks
spikeinterface/sortingcomponents/tests/test_template_matching.py::test_find_spikes_from_templates
spikeinterface/widgets/tests/test_widgets.py::TestWidgets
)
# Reported upstream:
# https://github.com/SpikeInterface/spikeinterface/issues/307#issuecomment-1410840998
EPYTEST_DESELECT+=(
spikeinterface/sorters/tests/test_launcher.py::test_collect_sorting_outputs
)
local EPYTEST_IGNORE=(
spikeinterface/widgets/_legacy_mpl_widgets/tests/*
)
epytest
}