-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
executable file
·79 lines (65 loc) · 2.08 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import subprocess
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
import neuronvisio
version = neuronvisio.__version__
authors = neuronvisio.__authors__
authors_email = neuronvisio.__authors_emails__
if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
if sys.argv[-1] == 'make_docs':
p = subprocess.Popen(["make", "html"], cwd="docs")
p.wait()
sys.exit()
if sys.argv[-1] == "make_package":
os.system("python setup.py sdist bdist_wheel")
sys.exit()
if sys.argv[-1] == "make_release":
os.system("python setup.py sdist bdist_wheel upload")
sys.exit()
classifiers = [
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Visualization"
]
install_requires = [
# -*- Install requires: -*-
'setuptools',
'pip'
]
entry_points = {
'console_scripts': [
'neuronvisio = neuronvisio.command_line:main_neuronvisio',
'neuronvisio-model-updater = neuronvisio.command_line:main_model_updater'
],
}
# compatible with distutils of python 2.3+ or later
setup(
name='neuronvisio',
version=version,
description='Neuronvisio is a Graphical User Interface for NEURON simulator environment',
long_description=open('README.rst', 'r').read(),
packages = ['neuronvisio', 'neuronvisio.modeldb'],
package_dir={'neuronvisio': 'neuronvisio'},
include_package_data=True,
classifiers=classifiers,
keywords='neuron, gui, pylab, 3D, visualization',
author=authors,
author_email=authors_email,
url='http://neuronvisio.org',
license='GPLv3',
zip_safe=False,
install_requires=install_requires,
entry_points=entry_points
)