-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (73 loc) · 2.1 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
89
90
91
92
#!/usr/bin/env python
"""The setup script."""
from setuptools import setup, find_namespace_packages, Command
import os.path as op
import shutil
class doc(Command):
"""Build the API documentation. """
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sphinx.cmd.build as sphinx_build
basedir = op.dirname(__file__)
docdir = op.join(basedir, 'doc')
destdir = op.join(docdir, 'html')
if op.exists(destdir):
shutil.rmtree(destdir)
print('Building documentation [{}]'.format(destdir))
sphinx_build.main([docdir, destdir])
###################################################################
VERSION = '0.2.4'
KEYWORDS = []
CLASSIFIERS = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
]
###################################################################
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'numpy',
'scipy',
'nibabel',
'numba',
'six',
'loguru',
'fslpy',
'zarr',
'h5py',
'colorcet',
'dask[array]',
'pandas',
'sklearn',
'scikit-image',
]
setup(
name='mcot.core',
author='Michiel Cottaar',
author_email='MichielCottaar@pm.me',
version=VERSION,
description="core utilities to work with my code",
long_description=readme,
long_description_content_type="text/x-rst",
license="MIT",
url="https://git.fmrib.ox.ac.uk/ndcn0236/mcutils",
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
install_requires=requirements,
include_package_data=True,
entry_points={'console_scripts': [
'mcot=mcot.core.scripts:run',
]},
cmdclass={'doc': doc},
packages=find_namespace_packages(include=['mcot.core*']),
)