forked from m-beau/NeuroPyxels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (67 loc) · 1.98 KB
/
setup.py
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
import codecs
import os.path as op
from setuptools import setup
def read(rel_path):
here = op.abspath(op.dirname(__file__))
with codecs.open(op.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md", "r", encoding="utf-8") as readme_file:
readme = readme_file.read()
requirements = [
"ipython",
"numpy",
"scipy==1.10.0",
"pandas",
"numba",
"statsmodels",
"matplotlib",
"cmcrameri",
"opencv-python",
"scikit-learn",
"imbalanced-learn",
"networkx",
"psutil",
"joblib>=1.3",
"tqdm",
"h5py",
"seaborn",
"cachecache"
]
c4_requirements = [
"torch==1.13.1",
"torchvision==0.14.1",
"torchaudio==0.13.1",
"laplace-torch",
"requests",
"dill",
"tabulate",
]
dependency_links = ["https://download.pytorch.org/whl/cpu"]
entry_points = {"console_scripts": ["predict_cell_types = npyx.c4.predict_cell_types:main", "c4 = npyx.c4.predict_cell_types:run_c4"]}
setup(
name="npyx",
version=get_version("npyx/__init__.py"),
author="Maxime Beau",
author_email="[email protected]",
description="Python routines dealing with Neuropixels data.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/Npix-routines/NeuroPyxels",
packages=["npyx", "npyx.c4"],
install_requires=requirements,
extras_require={"c4": c4_requirements},
dependency_links=dependency_links,
entry_points=entry_points,
keywords="neuropixels,kilosort,phy,data analysis,electrophysiology,neuroscience",
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
)