-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (45 loc) · 1.56 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
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
from shutil import copy2
try:
with open('README.rst', 'r') as fp:
readme = fp.read()
except:
readme = ""
setup_args = {
'name': 'ndx-icephys-meta',
'version': '0.2.0',
'description': 'Implement proposal for hierarchical metadata structure for intracellular electrophysiology data ',
'long_description': readme,
'long_description_content_type': 'text/x-rst; charset=UTF-8',
'author': ' Oliver Ruebel, Ryan Ly, Benjamin Dichter, Thomas Braun, Andrew Tritt',
'author_email': '[email protected]',
'url': '',
'license': 'BSD 3-Clause',
'install_requires': [
'pynwb'
],
'packages': find_packages('src/pynwb'),
'package_dir': {'': 'src/pynwb'},
'package_data': {'ndx_icephys_meta': [
'spec/ndx-icephys-meta.namespace.yaml',
'spec/ndx-icephys-meta.extensions.yaml',
]},
'classifiers': [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
],
'zip_safe': False
}
def _copy_spec_files(project_dir):
ns_path = os.path.join(project_dir, 'spec', 'ndx-icephys-meta.namespace.yaml')
ext_path = os.path.join(project_dir, 'spec', 'ndx-icephys-meta.extensions.yaml')
dst_dir = os.path.join(project_dir, 'src', 'pynwb', 'ndx_icephys_meta', 'spec')
if not os.path.exists(dst_dir):
os.mkdir(dst_dir)
copy2(ns_path, dst_dir)
copy2(ext_path, dst_dir)
if __name__ == '__main__':
_copy_spec_files(os.path.dirname(__file__))
setup(**setup_args)