-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
49 lines (45 loc) · 2.13 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
from pathlib import Path
from shutil import copy
from setuptools import find_packages, setup
root = Path(__file__).parent
with open(root / "README.md", "r") as f:
long_description = f.read()
with open(root / "requirements.txt") as f:
install_requires = f.readlines()
with open(root / "src" / "nwbinspector" / "_version.py") as f:
version = f.read()
# Instantiate the testing configuration file from the base file `base_test_config.json`
# This requires the current working directory to be the top level
# of a local copy of the NWB Inspector GitHub repository
BASE_CONFIG_FILE_PATH = Path.cwd() / "base_test_config.json"
TESTING_CONFIG_FILE_PATH = Path.cwd() / "tests" / "testing_config.json"
if not TESTING_CONFIG_FILE_PATH.exists():
copy(src=str(BASE_CONFIG_FILE_PATH), dst=str(TESTING_CONFIG_FILE_PATH))
setup(
name="nwbinspector",
version=version.split('"')[1],
description="Tool to inspect NWB files for best practices compliance.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Ryan Ly, Ben Dichter, and Cody Baker.",
url="https://nwbinspector.readthedocs.io/",
keywords="nwb",
packages=find_packages(where="src"),
package_dir={"": "src"},
include_package_data=True, # Includes files described in MANIFEST.in in the installation
install_requires=install_requires,
# zarr<2.18.0 because of https://github.com/NeurodataWithoutBorders/nwbinspector/pull/460
extras_require=dict(dandi=["dandi>=0.39.2", "zarr<2.18.0", "remfile"], zarr=["hdmf_zarr>=0.3.0", "zarr<2.18.0"]),
entry_points={"console_scripts": ["nwbinspector=nwbinspector._nwbinspector_cli:_nwbinspector_cli"]},
license="BSD-3-Clause",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)