-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
134 lines (127 loc) · 4.75 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import re
import sys
from setuptools import find_packages
from setuptools import setup
def get_version():
filename = "taplt/__init__.py"
with open(filename) as f:
match = re.search(
r"""^__version__ = ['"]([^'"]*)['"]""", f.read(), re.M
)
if not match:
raise RuntimeError("{} doesn't contain __version__".format(filename))
version = match.groups()[0]
return version
def get_long_description():
with open("README.md") as f:
long_description = f.read()
return long_description
version = get_version()
# Installation for windows
if sys.platform.startswith("win"):
setup(
name="taplt",
version=version,
packages=find_packages(exclude=["github2pypi"]),
description="Semantic Segmentation Tool specializing in medical applications",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="University of Tübingen, Department of Computer Graphics",
author_email="",
url="https://github.com/cgtuebingen/MedicalAnnotationFramework",
install_requires=["numpy",
"Pillow>=2.8.0",
"PySide6",
"filetype",
"typing-extensions",
"openslide-python",
"requests",
"bs4"],
license="GPLv3",
keywords="Image Annotation, Machine Learning",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9"
],
package_data={"taplt": ["icons/*",
"macros/examples/demo/*",
"macros/examples/images/*"]},
entry_points={
"console_scripts": [
"taplt=taplt.main:main", ],
}
)
# Installation for mac
elif sys.platform.startswith("darwin"):
setup(
name="taplt",
version=version,
packages=find_packages(exclude=["github2pypi"]),
description="Semantic Segmentation Tool specializing in medical applications",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="University of Tübingen, Department of Computer Graphics",
author_email="",
url="https://github.com/cgtuebingen/MedicalAnnotationFramework",
install_requires=["numpy",
"Pillow>=2.8.0",
"PySide6",
"filetype",
"typing-extensions",
"openslide-python",
"requests",
"bs4"],
license="GPLv3",
keywords="Image Annotation, Machine Learning",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9"
],
package_data={"taplt": ["icons/*",
"macros/examples/demo/*",
"macros/examples/images/*"]},
entry_points={
"console_scripts": [
"taplt=taplt.main:main", ],
}
)
# Installation for Linux
else:
setup(
name="taplt",
version=version,
packages=find_packages(exclude=["github2pypi"]),
description="Semantic Segmentation Tool specializing in medical applications",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="University of Tübingen, Department of Computer Graphics",
author_email="",
url="https://github.com/cgtuebingen/MedicalAnnotationFramework",
install_requires=["numpy",
"Pillow>=2.8.0",
"PySide6",
"filetype",
"typing-extensions",
"openslide-python",
"requests",
"bs4"],
license="GPLv3",
keywords="Image Annotation, Machine Learning",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9"
],
package_data={"taplt": ["icons/*",
"macros/examples/demo/*",
"macros/examples/images/*"]},
entry_points={
"console_scripts": [
"taplt=taplt.main:main", ],
}
)