forked from SpikeInterface/spikeinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
237 lines (198 loc) · 5.67 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
[project]
name = "spikeinterface"
version = "0.101.1"
authors = [
{ name="Alessio Buccino", email="alessiop.buccino@gmail.com" },
{ name="Samuel Garcia", email="sam.garcia.die@gmail.com" },
]
description = "Python toolkit for analysis, visualization, and comparison of spike sorting output"
readme = "README.md"
requires-python = ">=3.9,<4.0"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: OS Independent"
]
dependencies = [
"numpy>=1.20, <2.0", # 1.20 np.ptp, 1.26 might be necessary for avoiding pickling errors when numpy >2.0
"threadpoolctl>=3.0.0",
"tqdm",
"zarr>=2.16,<2.18",
"neo>=0.13.0",
"probeinterface>=0.2.23",
"packaging",
]
[build-system]
requires = ["setuptools>=62.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
package-data = {"spikeinterface.sorters" = ["**/*.m", "**/*.prm", "**/*.params", "**/*.yaml"]}
[tool.setuptools.exclude-package-data]
spikeinterface = ["**/tests/test_*"]
[tool.setuptools.packages.find]
where = ["src"]
include = ["spikeinterface*"]
namespaces = false
exclude = ["spikeinterface.*.tests"]
[tool.black]
line-length = 120
[project.urls]
homepage = "https://github.com/SpikeInterface/spikeinterface"
repository = "https://github.com/SpikeInterface/spikeinterface"
documentation = "https://spikeinterface.readthedocs.io/"
changelog = "https://spikeinterface.readthedocs.io/en/latest/whatisnew.html"
[project.optional-dependencies]
extractors = [
"MEArec>=1.8",
"pynwb>=2.6.0",
"hdmf-zarr>=0.5.0",
"pyedflib>=0.1.30",
"sonpy;python_version<'3.10'",
"lxml", # lxml for neuroscope
"scipy",
"ONE-api>=2.7.0", # alf sorter and streaming IBL
"ibllib>=2.36.0", # streaming IBL
"pymatreader>=0.0.32", # For cell explorer matlab files
"zugbruecke>=0.2; sys_platform!='win32'", # For plexon2
]
streaming_extractors = [
"ONE-api>=2.7.0", # alf sorter and streaming IBL
"ibllib>=2.36.0", # streaming IBL
# Following dependencies are for streaming with nwb files
"pynwb>=2.6.0",
"fsspec",
"aiohttp",
"requests",
"hdmf-zarr>=0.5.0",
"remfile",
"s3fs"
]
preprocessing = [
"scipy",
]
full = [
"h5py",
"pandas",
"xarray",
"scipy",
"scikit-learn",
"networkx",
"distinctipy",
"matplotlib>=3.6", # matplotlib.colormaps
"cuda-python; platform_system != 'Darwin'",
"numba",
]
widgets = [
"matplotlib",
"ipympl",
"ipywidgets",
"sortingview>=0.12.0",
]
qualitymetrics = [
"scikit-learn",
"scipy",
"pandas",
"numba",
]
test_core = [
"pytest",
"pytest-dependency",
"psutil",
# for github test : probeinterface and neo from master
# for release we need pypi, so this need to be commented
"probeinterface @ git+https://github.com/SpikeInterface/probeinterface.git",
"neo @ git+https://github.com/NeuralEnsemble/python-neo.git",
]
test_extractors = [
# Functions to download data in neo test suite
"pooch>=1.8.2",
"datalad>=1.0.2",
"probeinterface @ git+https://github.com/SpikeInterface/probeinterface.git",
"neo @ git+https://github.com/NeuralEnsemble/python-neo.git",
]
test_preprocessing = [
"ibllib>=2.36.0", # for IBL
"torch",
]
test = [
"pytest",
"pytest-dependency",
"pytest-cov",
"xarray",
"huggingface_hub",
# preprocessing
"ibllib>=2.36.0", # for IBL
# streaming templates
"s3fs",
# tridesclous
"numba",
"hdbscan>=0.8.33", # Previous version had a broken wheel
# for sortingview backend
"sortingview",
## install tridesclous for testing ##
"tridesclous>=1.6.8",
## sliding_nn
"pymde",
"torch",
"pynndescent",
# for github test : probeinterface and neo from master
# for release we need pypi, so this need to be commented
"probeinterface @ git+https://github.com/SpikeInterface/probeinterface.git",
"neo @ git+https://github.com/NeuralEnsemble/python-neo.git",
]
docs = [
"Sphinx",
"sphinx_rtd_theme>=1.2",
"sphinx-gallery",
"sphinx-design",
"numpydoc",
"ipython",
"sphinxcontrib-jquery",
# for notebooks in the gallery
"MEArec", # Use as an example
"pandas", # in the modules gallery comparison tutorial
"hdbscan>=0.8.33", # For sorters spykingcircus2 + tridesclous
"numba", # For many postprocessing functions
"xarray", # For use of SortingAnalyzer zarr format
"networkx",
# Download data
"pooch>=1.8.2",
"datalad>=1.0.2",
# for release we need pypi, so this needs to be commented
"probeinterface @ git+https://github.com/SpikeInterface/probeinterface.git", # We always build from the latest version
"neo @ git+https://github.com/NeuralEnsemble/python-neo.git", # We always build from the latest version
]
dev = [
"spikeinterface[test]",
"spikeinterface[test_core]",
"spikeinterface[docs]",
"black",
"pre-commit",
]
[tool.pytest.ini_options]
markers = [
"core",
"generation",
"extractors",
"preprocessing",
"postprocessing",
"qualitymetrics",
"sorters",
"sorters_external",
"sorters_internal",
"comparison",
"curation",
"exporters",
"widgets",
"sortingcomponents",
"streaming_extractors: extractors that require streaming such as ross and fsspec",
]
filterwarnings =[
'ignore:.*distutils Version classes are deprecated.*:DeprecationWarning',
'ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning',
]