forked from Donders-Institute/bidscoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (46 loc) · 3.34 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
from pathlib import Path
from setuptools import setup, find_packages
# Read the version from file
with (Path(__file__).parent/'bidscoin'/'version.txt').open('r') as fid:
version = fid.read().strip()
# Read the contents of the README file
with (Path(__file__).parent/'README.rst').open('r') as fid:
readme = fid.read()
# Read the contents of the requirements file
with (Path(__file__).parent/'requirements.txt').open('r') as fid:
requirements = fid.read().splitlines()
# Add extra requirements to install plugin requirements as needed
EXTRAS_REQUIRE = {
'phys2bids': ['bioread >=1.0.5', 'pymatreader>=0.0.24', 'duecredit', 'phys2bids>=2.0.0,<3.0.0']
}
setup(name = 'bidscoin', # Required
version = version, # Required
packages = find_packages(), # Required
install_requires = requirements,
python_requires = '>=3.8',
setup_requires = ["pytest-runner"],
tests_require = ["pytest", "pytest-cov", "coverage"],
extras_require = EXTRAS_REQUIRE,
package_data = {'': ['*version.txt', '*.yaml', 'bidscoin_logo.png', 'bidscoin.ico', 'rightarrow.png']},
entry_points = {'console_scripts': ['bidscoin = bidscoin.bidscoin:main',
'bidseditor = bidscoin.bidseditor:main',
'bidsmapper = bidscoin.bidsmapper:main',
'bidscoiner = bidscoin.bidscoiner:main',
'rawmapper = bidscoin.rawmapper:main',
'dicomsort = bidscoin.dicomsort:main',
'echocombine = bidscoin.echocombine:main',
'deface = bidscoin.deface:main',
'medeface = bidscoin.medeface:main',
'bidsparticipants = bidscoin.bidsparticipants:main',
'physio2tsv = bidscoin.physio2tsv:main',
'plotphysio = bidscoin.plotphysio:main']},
classifiers = ['Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent'],
keywords = 'bids mri imaging neuroimaging dicom par rec nifti pet defacing echo-combination',
description = 'Converts and organises raw MRI data-sets according to the Brain Imaging Data Structure (BIDS)',
long_description = readme,
long_description_content_type = 'text/x-rst',
author = 'Marcel Zwiers',
author_email = '[email protected]',
url = 'https://github.com/Donders-Institute/bidscoin')