-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
35 lines (31 loc) · 1.09 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
import os
import setuptools
about = {}
with open(os.path.join("generalized_wasserstein_dice_loss", "__about__.py")) as fp:
exec(fp.read(), about)
with open("README.md", "r") as fh:
long_description = fh.read()
def install_requires(fname="requirements.txt"):
with open(fname) as f:
content = f.readlines()
content = [x.strip() for x in content]
return content
setuptools.setup(
name="Generalized Wasserstein Dice Loss",
version=about["__version__"],
author=about["__author__"],
author_email=about["__email__"],
description=about["__summary__"],
license=about["__license__"],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/LucasFidon/GeneralizedWassersteinDiceLoss",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
install_requires = install_requires(),
keywords='deeplearning medicalimagesegmentation lossfunction',
)