-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
57 lines (48 loc) · 1.32 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
#!/usr/bin/env python3
import codecs
import os.path
from setuptools import find_packages, setup
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.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.")
INSTALL_REQUIRES = [
"numpy",
"statsmodels",
"numba",
"matplotlib",
"pandas",
"xarray",
"scipy",
"scikit-learn",
"scikit-image",
"regularized_glm",
"dask",
"distributed",
"patsy",
"networkx",
"joblib",
"track_linearization>=2.3.1",
"tqdm",
"seaborn",
]
TESTS_REQUIRE = ["pytest >= 2.7.1"]
setup(
name="replay_trajectory_classification",
version=get_version("replay_trajectory_classification/__init__.py"),
license="MIT",
description=("Classify replay trajectories."),
author="Eric Denovellis",
author_email="[email protected]",
url="https://github.com/Eden-Kramer-Lab/replay_trajectory_classification",
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
)