setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 61
dl 0
loc 71
rs 10
c 0
b 0
f 0
1
import sys
2
3
from setuptools import find_packages, setup
4
5
# package requirements
6
if sys.version_info[:2] < (3, 6):
7
    raise RuntimeError("Python version >= 3.6 required.")
8
with open("requirements.txt", "r") as f:
9
    requirements = f.read().splitlines()
10
if sys.version_info[:2] == (3, 6):
11
    requirements = [x for x in requirements if "pandas" not in x]
12
    requirements.append("pandas==1.1.5")
13
    requirements = [x for x in requirements if "scipy" not in x]
14
    requirements.append("scipy==1.5.4")
15
    requirements = [x for x in requirements if "matplotlib" not in x]
16
    requirements.append("matplotlib==3.3.4")
17
18
with open("README.md", "r") as f:
19
    long_description = f.read()
20
21
setup(
22
    name="deepreg",
23
    packages=find_packages(exclude=["test", "test.unit", "test.output"]),
24
    include_package_data=True,
25
    version="0.0.0",
26
    license="apache-2.0",
27
    description="DeepReg is a freely available, "
28
    "community-supported open-source toolkit for research and education"
29
    " in medical image registration using deep learning.",
30
    long_description=long_description,
31
    long_description_content_type="text/markdown",
32
    author="DeepReg Development Team and Community",
33
    author_email="[email protected]",
34
    url="http://deepreg.net/",
35
    download_url="",
36
    keywords=[
37
        "Deep Learning",
38
        "Image Fusion",
39
        "Medical Image Registration",
40
        "Neural Networks",
41
    ],
42
    zip_safe=False,
43
    install_requires=requirements,
44
    entry_points={
45
        "console_scripts": [
46
            "deepreg_train=deepreg.train:main",
47
            "deepreg_predict=deepreg.predict:main",
48
            "deepreg_warp=deepreg.warp:main",
49
            "deepreg_vis=deepreg.vis:main",
50
            "deepreg_download=deepreg.download:main",
51
        ]
52
    },
53
    classifiers=[
54
        "Development Status :: 5 - Production/Stable",
55
        "Environment :: Console",
56
        "Environment :: GPU",
57
        "Environment :: MacOS X",
58
        "Intended Audience :: Developers",
59
        "Intended Audience :: Education",
60
        "Intended Audience :: Science/Research",
61
        "License :: OSI Approved :: Apache Software License",
62
        "Natural Language :: English",
63
        "Operating System :: MacOS :: MacOS X",
64
        "Operating System :: Unix",
65
        "Programming Language :: Python :: 3",
66
        "Programming Language :: Python :: 3.6",
67
        "Programming Language :: Python :: 3.7",
68
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
69
        "Topic :: Scientific/Engineering :: Medical Science Apps.",
70
        "Topic :: Software Development",
71
    ],
72
)
73