forked from OpenGATE/GateTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
91 lines (81 loc) · 2.45 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
import setuptools
with open("readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="gatetools",
version="0.11.2",
author="OpenGate collaboration",
author_email="[email protected]",
description="Python tools for GATE, see https://github.com/OpenGATE/Gate",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/OpenGATE/GateTools",
package_dir={'gatetools': 'gatetools',
'gatetools.phsp': 'gatetools/phsp'},
packages=['gatetools', 'gatetools.phsp'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'matplotlib',
'click',
'numpy',
'scipy',
'pydicom',
'tqdm',
'colored',
'itk>=5.1.0',
'uproot',
'wget',
'python-box',
'lz4',
'colorama',
#'rt-utils',
'xxhash'
],
scripts=[
'bin/gt_gate_info',
'bin/gt_image_uncertainty',
'bin/gt_image_arithm',
'bin/gt_image_crop',
'bin/gt_image_convert',
'bin/gt_image_statistics',
'bin/gt_hausdorff',
'bin/gt_gamma_index',
'bin/gt_affine_transform',
'bin/gt_write_dicom',
'bin/gt_dicom_info',
'bin/gt_image_gauss',
'bin/gt_image_resize',
'bin/gt_image_to_dicom_rt_struct',
'bin/gt_dvh',
'bin/gt_merge_root',
'bin/gt_morpho_math',
'bin/gt_dicom_rt_struct_to_image',
'bin/gt_dicom_rt_pbs2gate',
'bin/gt_phsp_info',
'bin/gt_phsp_convert',
'bin/gt_phsp_merge',
'bin/gt_phsp_plot',
'bin/gt_phsp_peaks',
'clustertools/gate_split_and_run.py'
]
)
# -----------------------------------------------------------------------------
# Uploading the package on pypi
# Steps
# 1 - change version in setup.py file
# 2 - commit, tag. git push --tags
# 3 - setup: python3 setup.py sdist bdist_wheel
# 4 - twine: see below
# On TEST pypi:
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# On REAL pyip
# twine upload dist/*
# test with
# pip uninstall gatetools
# pip3 install --extra-index-url https://test.pypi.org/simple/ gatetools
# https://test.pypi.org/project/gatetools/