forked from UNFmontreal/Dcm2Bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·88 lines (77 loc) · 2.5 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
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# type: ignore
# pylint: disable=exec-used
"""Setup file for the dcm2bids package"""
import os
from setuptools import setup, find_packages
def load_version():
"""Execute dcm2bids.version in a global dictionary"""
global_dict = {}
with open(os.path.join("dcm2bids", "version.py")) as _:
exec(_.read(), global_dict)
return global_dict
def install_requires():
"""Get list of required modules"""
required = []
for module, meta in _VERSION["REQUIRED_MODULE_METADATA"]:
required.append("{}>={}".format(module, meta["min_version"]))
return required
_VERSION = load_version()
DISTNAME = "dcm2bids"
VERSION = _VERSION["__version__"]
ENTRY_POINTS = {
"console_scripts": [
"dcm2bids = dcm2bids.dcm2bids:main",
"dcm2bids_helper = dcm2bids.helper:main",
"dcm2bids_scaffold = dcm2bids:scaffold",
],
# "configurations": [],
}
AUTHOR = "NKI"
AUTHOR_EMAIL = "NKI"
DESCRIPTION = (
"Reorganising NIfTI files from dcm2niix into the Brain Imaging Data Structure"
)
with open("README.md", encoding="utf-8") as _:
LONG_DESCRIPTION = _.read()
LICENSE = "GPLv3+"
PROJECT_URLS = {
"Documentation": "https://unfmontreal.github.io/Dcm2Bids",
"Source Code": "https://github.com/NathanKlineInstitute/Dcm2Bids",
}
CLASSIFIERS = [
"Intended Audience :: NIMH Data Archive",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
if __name__ == "__main__":
setup(
name=DISTNAME,
version=VERSION,
packages=find_packages(exclude=["tests"]),
entry_points=ENTRY_POINTS,
python_requires=">=3.7",
use_scm_version=True,
setup_requires=['setuptools_scm'],
install_requires=['future>=0.17.1'],
include_package_data=True,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
# keywords="",
license=LICENSE,
project_urls=PROJECT_URLS,
classifiers=CLASSIFIERS,
)