-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
58 lines (50 loc) · 2.07 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
def find_version():
try:
f = open(os.path.join('spykeviewer', '__init__.py'), 'r')
try:
for line in f:
if line.startswith('__version__'):
return line.split()[-1][1:-1]
finally:
f.close()
except Exception:
return '0'
DESC = """Spyke Viewer is a multi-platform GUI application for navigating,
analyzing and visualizing electrophysiological datasets. Based on the
`Neo <http://packages.python.org/neo/>`_ library, it works with a
wide variety of data formats.
For more information, see the documentation at
http://spyke-viewer.readthedocs.org"""
if __name__ == "__main__":
version = find_version()
plugin_files = []
for path, dirs, files in os.walk(os.path.join('spykeviewer', 'plugins')):
p = path.split(os.sep, 1)[1]
plugin_files.extend([os.path.join(p, f) for f in files])
setup(
name="spykeviewer",
version=version,
packages=find_packages(),
install_requires=['guidata', 'guiqwt>=2.1.4,<4.0', 'spyder>=2.1.0,<4.0',
'spykeutils[plot,plugin]>=0.4.0',
'neo>=0.2.1', 'matplotlib', 'scipy'],
entry_points={'gui_scripts': ['spykeviewer = spykeviewer.start:main']},
package_data={'': plugin_files},
zip_safe=False,
author='Robert Pröpper',
maintainer='Robert Pröpper',
description='A multi-platform GUI application for navigating, analyzing and visualizing electrophysiological datasets',
long_description=DESC,
license='BSD',
url='https://github.com/rproepp/spykeviewer',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Bio-Informatics'])