forked from pymedphys/pymedphys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
309 lines (279 loc) · 9.44 KB
/
pyproject.toml
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
[tool.poetry]
name = "pymedphys"
version = "0.37.0"
readme = "lib/pymedphys/docs/README.rst"
description = "Medical Physics library"
authors = [
"PyMedPhys Contributors <[email protected]>",
"Simon Biggs <[email protected]>",
"Matthew Jennings <[email protected]>",
"Stuart Swerdloff",
"Phillip Chlap",
"Jake Rembish",
"Matthew Cooper <[email protected]>",
"Jacob McAloney",
"Pedro Martinez",
]
license = "Apache-2.0"
homepage = "https://pymedphys.com"
repository = "https://github.com/pymedphys/pymedphys"
documentation = "https://docs.pymedphys.com"
classifiers = [
"Development Status :: 4 - Beta",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
]
packages = [{ include = "pymedphys", from = "lib" }]
include = ["lib/pymedphys/docs/_build/html/**/*"]
[tool.poetry.dependencies]
python = "^3.7"
typing-extensions = "*"
# ------- #
# Library #
# ------- #
tqdm = { version = "*", optional = true } # groups = ["user", "dev", "tests"]
attrs = { version = "*", optional = true } # groups = ["user", "dev"]
watchdog = { version = "*", optional = true } # groups = ["user", "dev"]
keyring = { version = "*", optional = true } # groups = ["user", "dev"]
packaging = { version = "*", optional = true } # groups = ["user", "dev"]
PyYAML = { version = "*", optional = true } # groups = ["user", "dev"]
requests = { version = "*", optional = true } # groups = ["user", "dev"]
python-dateutil = { version = "*", optional = true } # groups = ["user", "dev", "tests"]
matplotlib = { version = "*", optional = true } # groups = ["user", "dev"]
scipy = { version = "*", optional = true } # groups = ["user", "dev"]
Pillow = { version = "*", optional = true } # groups = ["user", "dev"]
imageio = { version = "*", optional = true } # groups = ["user", "dev"]
xarray = { version = "*", optional = true } # groups = ["user", "dev"]
pymssql = { version = "*", optional = true } # groups = ["user", "dev", "mosaiq"]
sqlalchemy = { version = "*", optional = true } # groups = ["user", "dev", "mosaiq"]
natsort = { version = "*", optional = true } # groups = ["user", "dev"]
tomlkit = { version = "*", optional = true } # groups = ["user", "dev", "propagate"]
pynetdicom = { version = "*", optional = true } # groups = ["user", "dev", "dicom"]
dbfread = { version = "*", optional = true } # groups = ["user", "dev"]
xmltodict = { version = "*", optional = true } # groups = ["user", "dev"]
timeago = { version = "*", optional = true } # groups = ["user", "dev"]
xlsxwriter = { version = "*", optional = true } # groups = ["user", "dev"]
plotly = { version = "*", optional = true } # groups = ["user", "dev"]
fsspec = { version = "*", optional = true } # groups = ["user", "dev"]
dicompyler-core = { version = "*", optional = true } # groups = ["user", "dev"]
scikit-learn = { version = "*", optional = true } # groups = ["user", "dev", "mosaiq"]
# NumPy's lower bound here is for typing support
numpy = { version = ">=1.20.2", optional = true } # groups = ["user", "dev", "icom"]
# The following lower bounded packages are due to certain APIs utilised
pandas = { version = ">=1.0.0", optional = true } # groups = ["user", "dev", "mosaiq"]
pydicom = { version = ">=2.0.0", optional = true } # groups = ["user", "dev", "dicom"]
pylibjpeg-libjpeg = { version = "*", optional = true } # groups = ["user", "dev"]
# The following lower bounds are so that the versions with wheels are utilised
# for the installation
shapely = { version = ">=1.7.0", optional = true } # groups = ["user", "dev"]
scikit-image = { version = ">=0.18.1", optional = true } # groups = ["user", "dev"]
# Streamlit's pinning is due to its current beta nature and the fact that some
# private APIs are utilised.
streamlit = { version = "0.81.1", optional = true } # groups = ["user", "dev"]
streamlit-ace = { version = "0.0.4", optional = true } # groups = ["user", "dev"]
# PyLinac is pinned due to historical algorithm changes with both minor and
# patch version bumps.
pylinac = { version = "2.3.2", optional = true } # groups = ["user", "dev", "doctests"]
# CVE-2020-28463 <https://github.com/advisories/GHSA-mpvw-25mg-59vx>
reportlab = { version = "<=3.5.54", optional = true } # groups = ["user", "dev"]
# ----------- #
# Comparables #
# ----------- #
flashgamma = { version = "*", optional = true } # groups = ["comparables"]
# ---------------- #
# Machine Learning #
# ---------------- #
# The following dependency was removed due to it coming with a numpy upper
# bound. I don't want dependencies that have an upper bound on numpy.
# tensorflow = { version = ">=2.4.0", optional = true } # groups = ["ml", "doctests"]
# ------------- #
# Documentation #
# ------------- #
sphinx-argparse = { version = "*", optional = true } # groups = ["dev", "docs"]
sphinxcontrib-napoleon = { version = "*", optional = true } # groups = ["dev", "docs"]
sphinx-book-theme = { version = "0.0.42", optional = true } # groups = ["dev", "docs", "doctests"]
networkx = { version = "*", optional = true } # groups = ["dev", "docs"]
# Jupyter book has a lower bound due to 0.8 being a major breaking change
# version
jupyter-book = { version = ">=0.8.3", optional = true } # groups = ["dev", "docs"]
# ----- #
# Tests #
# ----- #
pytest = { version = "*", optional = true } # groups = ["dev", "tests"]
pytest-sugar = { version = "*", optional = true } # groups = ["dev", "tests"]
hypothesis = { version = "<6", optional = true } # groups = ["dev", "tests"]
psutil = { version = "*", optional = true } # groups = ["dev", "tests"]
pylint = { version = "*", optional = true } # groups = ["dev", "tests"]
pytest-rerunfailures = { version = "*", optional = true } # groups = ["dev", "tests"]
# ---------------- #
# Development Only #
# ---------------- #
pre-commit = { version = "*", optional = true } # groups = ["dev"]
black = { version = "^20.8b1", optional = true } # groups = ["dev", "propagate", "doctests"]
mypy = { version = "*", optional = true } # groups = ["dev"]
rope = { version = "*", optional = true } # groups = ["dev"]
doc8 = { version = "*", optional = true } # groups = ["dev"]
readme-renderer = { version = "*", optional = true } # groups = ["dev"]
tabulate = { version = "*", optional = true } # groups = ["dev", "doctests"]
[tool.poetry.extras]
comparables = ["flashgamma"]
dev = [
"Pillow",
"PyYAML",
"attrs",
"black",
"dbfread",
"dicompyler-core",
"doc8",
"fsspec",
"hypothesis",
"imageio",
"jupyter-book",
"keyring",
"matplotlib",
"mypy",
"natsort",
"networkx",
"numpy",
"packaging",
"pandas",
"plotly",
"pre-commit",
"psutil",
"pydicom",
"pylibjpeg-libjpeg",
"pylinac",
"pylint",
"pymssql",
"pynetdicom",
"pytest",
"pytest-rerunfailures",
"pytest-sugar",
"python-dateutil",
"readme-renderer",
"reportlab",
"requests",
"rope",
"scikit-image",
"scikit-learn",
"scipy",
"shapely",
"sphinx-argparse",
"sphinx-book-theme",
"sphinxcontrib-napoleon",
"sqlalchemy",
"streamlit",
"streamlit-ace",
"tabulate",
"timeago",
"tomlkit",
"tqdm",
"watchdog",
"xarray",
"xlsxwriter",
"xmltodict",
]
dicom = ["pydicom", "pynetdicom"]
docs = [
"jupyter-book",
"networkx",
"sphinx-argparse",
"sphinx-book-theme",
"sphinxcontrib-napoleon",
]
doctests = ["black", "pylinac", "sphinx-book-theme", "tabulate"]
icom = ["numpy"]
mosaiq = ["pandas", "pymssql", "scikit-learn", "sqlalchemy"]
propagate = ["black", "tomlkit"]
tests = [
"hypothesis",
"psutil",
"pylint",
"pytest",
"pytest-rerunfailures",
"pytest-sugar",
"python-dateutil",
"tqdm",
]
user = [
"Pillow",
"PyYAML",
"attrs",
"dbfread",
"dicompyler-core",
"fsspec",
"imageio",
"keyring",
"matplotlib",
"natsort",
"numpy",
"packaging",
"pandas",
"plotly",
"pydicom",
"pylibjpeg-libjpeg",
"pylinac",
"pymssql",
"pynetdicom",
"python-dateutil",
"reportlab",
"requests",
"scikit-image",
"scikit-learn",
"scipy",
"shapely",
"sqlalchemy",
"streamlit",
"streamlit-ace",
"timeago",
"tomlkit",
"tqdm",
"watchdog",
"xarray",
"xlsxwriter",
"xmltodict",
]
[tool.poetry.scripts]
pymedphys = "pymedphys.__main__:main"
[tool.poetry.plugins."sphinx.html_themes"]
sphinx_pymedphys_theme = "pymedphys.docs.theme"
[tool.isort]
multi_line_output = 3
line_length = 88
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
known_third_party = ["pymedphys._imports"]
known_general_scientific = [
"numpy", "scipy", "pandas", "imageio", "PIL", "skimage", "matplotlib",
"mpl_toolkits", "shapely", "altair", "sklearn", "plotly"
]
known_machine_learning = [
"tensorflow", "pytorch"
]
known_streamlit = [
"streamlit", "streamlit_ace", "streamlit_analytics"
]
known_medphys = [
"pydicom", "pylinac", "pynetdicom", "libjpeg", "dicompylercore"
]
known_first_party = ["pymedphys"]
known_experimental = ["pymedphys._experimental"]
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"GENERAL_SCIENTIFIC",
"MACHINE_LEARNING",
"STREAMLIT",
"MEDPHYS",
"FIRSTPARTY",
"EXPERIMENTAL",
"LOCALFOLDER",
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"