-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (52 loc) · 1.78 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
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from shutil import copy2
from setuptools import find_packages, setup
path = Path(__file__).parent
with open(os.path.join(path, "README.md")) as f:
long_description = f.read()
with open(path / "requirements.txt") as f:
install_requires = f.readlines()
setup_args = {
"name": "ndx-miniscope",
"version": "0.5.1",
"description": "Represent metadata for Miniscope acquisition system.",
"long_description": long_description,
"long_description_content_type": "text/markdown",
"author": "Ben Dichter",
"author_email": "ben.dichter@catalystneuro.com",
"url": "https://github.com/catalystneuro/ndx-miniscope",
"license": "BSD-3",
"install_requires": install_requires,
"packages": find_packages("src/pynwb", exclude=["tests", "tests.*"]),
"package_dir": {"": "src/pynwb"},
"package_data": {
"ndx_miniscope": [
"spec/ndx-miniscope.namespace.yaml",
"spec/ndx-miniscope.extensions.yaml",
]
},
"classifiers": [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
],
"keywords": [
"NeurodataWithoutBorders",
"NWB",
"nwb-extension",
"ndx-extension",
],
"zip_safe": False,
}
def _copy_spec_files(project_dir):
ns_path = os.path.join(project_dir, "spec", "ndx-miniscope.namespace.yaml")
ext_path = os.path.join(project_dir, "spec", "ndx-miniscope.extensions.yaml")
dst_dir = os.path.join(project_dir, "src", "pynwb", "ndx_miniscope", "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)