-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
78 lines (73 loc) · 2.76 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
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages # @UnresolvedImport
from distutils.core import setup
# Generate the package data
package_name = 'pype9'
package_dir = os.path.join(os.path.dirname(__file__), package_name)
package_data = []
prefix_len = len(package_dir) + 1
for path, dirs, files in os.walk(package_dir, topdown=True):
package_data.extend(
(os.path.join(path, f)[prefix_len:] for f in files
if os.path.splitext(f)[1] in ('.tmpl', '.cpp') or f == 'Makefile'))
# Filter unittests from packages
packages = [p for p in find_packages() if not p.startswith('test.')]
sys.path.insert(0, package_dir)
from version import __version__ # @IgnorePep8 @UnresolvedImport
sys.path.pop(0)
setup(
name=package_name,
version=__version__,
package_data={package_name: package_data},
scripts=[os.path.join('scripts', 'pype9')],
packages=packages,
author="The PyPe9 Team (see AUTHORS)",
author_email="[email protected]",
description=(
"PYthon PipelinEs for 9ML (Pype9) is a collection of Python "
"pipelines for simulating networks of neuron models described "
" in 9ML with various simulator backends."),
long_description=open("README.rst").read(),
license="MIT",
keywords=("NineML pipeline computational neuroscience modeling "
"interoperability XML YAML JSON HDF5 9ML neuron nest"),
url="http://readthedocs.io/pype9",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering'],
install_requires=[
'nineml>=1.0',
'ninemlcatalog>=0.1',
'sympy>=1.1',
'Jinja2>=2.6',
'docutils>=0.10',
'mock>=1.0',
'numpy>=1.5',
'quantities>=0.11.1',
'neo>=0.5.1',
'mpi4py>=1.3.1',
'pyNN>=0.9.1',
'lazyarray>=0.2.7',
'Diophantine>=0.2.0',
'PyYAML>=3.11',
'h5py>=2.7.0',
'lxml>=3.7.3',
'future>=0.16'],
extras_require={
'plot': 'matplotlib>=2.0'},
tests_require=['nose'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4'
)