-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
55 lines (46 loc) · 1.64 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
from setuptools import setup, find_packages
from codecs import open
from os import path
import os
import glob
import subprocess
config = {
}
current_path = os.getcwd()
try:
GIT_VERSION = subprocess.check_output(["git", "describe", "--tags"]).strip().decode('utf-8')
GIT_VERSION = GIT_VERSION.split('-')[0]
except subprocess.CalledProcessError as e:
GIT_VERSION = "0.1"
os.chdir(current_path)
print(GIT_VERSION)
here = path.abspath(path.dirname(__file__))
# find test_data
test_data = glob.glob('test_data/*.mat')
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(description='neuro time series handling utilities',
long_description=long_description,
url='https://github.com/MemDynLab/neuroseries',
author='Francesco P. Battaglia',
author_email='[email protected]',
version=GIT_VERSION,
license='GPL3',
install_requires=['numpy', 'pandas', 'scipy', 'parameterized'],
packages=find_packages(),
include_package_data=True,
# data_files=[('test_data', test_data)],
package_data={'neuroseries': ['test_data/*.mat']},
test_suite='nose.collector',
tests_require=['nose'],
name='neuroseries',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Bio-Informatics'
]
)