-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
57 lines (47 loc) · 1.33 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
import io
import os
import runpy
from setuptools import find_packages, setup
def read(*filenames, **kwargs):
encoding = kwargs.get("encoding", "utf-8")
sep = kwargs.get("sep", "\n")
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
root = os.path.dirname(os.path.realpath(__file__))
version = runpy.run_path(os.path.join(root, "abr_analyze", "version.py"))["version"]
setup_requires = [
"setuptools>=18.0",
]
install_requires = [
"h5py>=3.0",
"Pillow>=5.1.0",
"terminaltables==3.1.0",
"numpy>=1.16.0",
"matplotlib>=3.0.0",
"scipy>=1.1.0",
"nengo>=2.8.0",
"seaborn>=0.11.2",
]
tests_require = [
"pytest>=4.3.0",
"pytest-xdist>=1.26.0",
"pytest-cov>=2.6.0",
"coverage>=4.5.0" "pytest-plt",
]
setup(
name="abr_analyze",
version=version,
description="Tools for analyzing data",
url="https://github.com/abr/abr_analyze",
author="Applied Brain Research",
author_email="[email protected]",
license="Free for non-commercial use",
long_description=read("README.rst"),
install_requires=install_requires + setup_requires,
setup_requires=setup_requires,
extras_require={"tests": tests_require},
packages=find_packages(),
)