forked from NeurodataWithoutBorders/pynwb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·70 lines (61 loc) · 2.24 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import versioneer
with open('README.rst', 'r') as fp:
readme = fp.read()
pkgs = find_packages('src', exclude=['data'])
print('found these packages:', pkgs)
schema_dir = 'nwb-schema/core'
with open('requirements-min.txt', 'r') as fp:
# replace == with >= and remove trailing comments and spaces
reqs = [x.replace('==', '>=').split('#')[0].strip() for x in fp]
reqs = [x for x in reqs if x] # remove empty strings
print(reqs)
setup_args = {
'name': 'pynwb',
'version': versioneer.get_version(),
'cmdclass': versioneer.get_cmdclass(),
'description': 'Package for working with Neurodata stored in the NWB format',
'long_description': readme,
'long_description_content_type': 'text/x-rst; charset=UTF-8',
'author': 'Andrew Tritt',
'author_email': '[email protected]',
'url': 'https://github.com/NeurodataWithoutBorders/pynwb',
'license': "BSD",
'install_requires': reqs,
'packages': pkgs,
'package_dir': {'': 'src'},
'package_data': {'pynwb': ["%s/*.yaml" % schema_dir, "%s/*.json" % schema_dir]},
'classifiers': [
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: Unix",
"Topic :: Scientific/Engineering :: Medical Science Apps."
],
'keywords': 'Neuroscience '
'python '
'HDF '
'HDF5 '
'cross-platform '
'open-data '
'data-format '
'open-source '
'open-science '
'reproducible-research '
'PyNWB '
'NWB '
'NWB:N '
'NeurodataWithoutBorders',
'zip_safe': False
}
if __name__ == '__main__':
setup(**setup_args)