-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (56 loc) · 2.26 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
# coding: utf-8
import os
import setuptools
def read(rel_path):
base_path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_path, rel_path), "r") as f:
return f.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
# __version__ = "0.0.1"
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
if __name__ == "__main__":
setuptools.setup(
name="frd-score",
version=get_version(os.path.join("src", "frd_score", "__init__.py")),
author="Richard Osuala, Preeti Verma",
description=(
"Package for calculating Fréchet Radiomics Distance (FRD)"
),
long_description=read("README.md"),
license="Apache-2.0",
long_description_content_type="text/markdown",
url="https://github.com/RichardObi/frd-score",
download_url="https://github.com/RichardObi/frd-score/archive/refs/tags/v.0.0.2.tar.gz",
project_urls={
"Bug Tracker": "https://github.com/RichardObi/frd-score/issues",
},
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
keywords=['Radiomics', 'Frechet', 'Distance', 'medical', 'imaging', 'radiology', 'generative', 'synthetic', 'evaluation'],
python_requires=">=3.8",
entry_points={
"console_scripts": [
"frd-score = frd_score.frd:main",
],
},
install_requires=[
"pyradiomics==3.0.1a3", #>=3.1.0", #~=3.0.1a3 #"pyradiomics @ git+https://github.com/AIM-Harvard/pyradiomics@releases/tag/v3.1.0",
"numpy>=1.23.5", # 1.26.4
"Pillow>=10.3.0",
"scipy>=1.10.0",
"opencv_contrib_python_headless>=4.8.1.78",
"SimpleITK>=2.3.1",
#"tqdm>=4.64.1",
],
extras_require={
"dev": ["flake8", "flake8-bugbear", "flake8-isort", "black==24.3.0", "isort", "nox", "pytest>=8.1.1", "nibabel>=3.2.1", ]
},
)