-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
36 lines (32 loc) · 1.25 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
import os
import glob
from setuptools import setup, find_packages
from pkg_resources import parse_requirements
source_dir = os.path.abspath(os.path.dirname(__file__))
# read the version and other strings from _version.py
version_info = {}
with open(os.path.join(source_dir, "openep/_version.py")) as o:
exec(o.read(), version_info)
# read install requirements from requirements.txt
with open(os.path.join(source_dir, "requirements.txt")) as o:
requirements = [str(r) for r in parse_requirements(o.read())]
setup(
name="OpenEp",
version=version_info['__version__'],
description="Open Source solution for electrophysiology data analysis",
author="Steven Williams",
author_email="[email protected]",
packages=find_packages(),
py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob.glob('openep/*.py')],
install_requires=requirements,
url='https://github.com/openep/openep-gui',
project_urls={
'Documentation': 'https://openep-py.readthedocs.io/en/latest/',
'Issue Tracker': 'https://github.com/openep/openep-py/issues',
},
python_requires='>=3.8',
include_package_data=True,
package_data={
'openep/_datasets/OpenEP-MATLAB': ['_datasets/OpenEP-MATLAB/*.mat']
}
)