forked from lassoan/slicerio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (46 loc) · 1.77 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
#!/usr/bin/env python
import os.path
from setuptools import setup, find_packages
# Get __version__ from slicerio/_version.py
base_dir = os.path.dirname(os.path.realpath(__file__))
version_file = os.path.join(base_dir, 'slicerio', '_version.py')
print("base_dir="+base_dir)
print("version_file="+version_file)
with open(version_file) as f:
exec(f.read())
# pylint/flake does not know that this script injects a variable, so we need to disable checks
VERSION = __version__ # pylint:disable=undefined-variable # noqa: F821
# Get long description from README.md
base_path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_path, 'README.md')) as f:
LONG_DESCRIPTION = f.read()
opts = dict(
name="slicerio",
python_requires='>=3.6',
version=VERSION,
maintainer="Andras Lasso",
maintainer_email="[email protected]",
author="Andras Lasso",
author_email="[email protected]",
description="Utilities for 3D Slicer",
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url="https://github.com/lassoan/slicerio",
download_url="https://github.com/lassoan/slicerio/archive/master.zip",
keywords="3DSlicer medical imaging segmentation",
classifiers=[
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: System :: Networking"
],
packages=find_packages(),
install_requires=['pynrrd', 'numpy', 'requests'],
)
if __name__ == '__main__':
setup(**opts)