-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (115 loc) · 4.5 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (115 loc) · 4.5 KB
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
[project]
name = "datamint"
description = "A library for interacting with the Datamint API, designed for efficient data management, processing and Deep Learning workflows."
version = "2.32.0"
dynamic = ["dependencies"]
requires-python = ">=3.10"
readme = "README.md"
[project.scripts]
datamint = 'datamint.__main__:main'
[tool.poetry]
# license = "Proprietary" # https://python-poetry.org/docs/pyproject/
include = [{ path = "datamint/logging.yaml", format = ["sdist", "wheel"] }]
packages = [{ include = "datamint" }]
# https://python-poetry.org/docs/dependency-specification/
[tool.poetry.dependencies]
numpy = "*"
# exclude version 2.3.0 due to a bug in the library
torch = ">=1.2.0, !=2.3.0"
torchvision = ">=0.18.0"
tqdm = "^4.0.0"
requests = "^2.0.0"
pyyaml = ">=5.0.0"
pydicom = "^3.0.0"
aiohttp = "^3.0.0"
nest-asyncio = "^1.0.0"
humanize = "^4.0.0"
rich = ">=10.0.0"
nibabel = ">=4.0.0"
pylibjpeg = { version = "^2.0.0" }
pylibjpeg-libjpeg = { version = "^2.0.0" }
opencv-python = ">=4.0.0"
platformdirs = "^4.0.0"
pandas = ">=2.0.0"
matplotlib = "*"
lightning = { extras = ['extra'], version = ">=2.5.6" }
mlflow-skinny = "==3.8.1"
Flask = { version = "<4" }
Flask-Cors = { version = "<7" }
albumentations = ">=2.0.0"
lazy-loader = ">=0.3.0"
medimgkit = ">=0.17.0"
typing_extensions = ">=4.0.0"
pydantic = ">=2.6.4"
certifi = ">=2025.0.0"
httpx = "*"
argcomplete = ">=3.0.0"
cachetools = ">=6.0.0"
segmentation-models-pytorch = ">=0.5.0"
backports-strenum = { version = "*", python = "<3.11" }
# For compatibility with the datamintapi package
# datamintapi = "0.0.*"
# Extra dependencies for docs
sphinx = { version = ">=5.0", optional = true }
sphinx_rtd_theme = { version = ">=2.0.0", optional = true }
sphinx-tabs = { version = ">=3.0.0", optional = true }
sphinx-rtd-dark-mode = { version = ">=1.3.0", optional = true }
setuptools = { version = ">=57.0", optional = true }
# Extra dependencies for dev
pytest = { version = "^9.0.3", optional = true }
pytest-cov = { version = "^7.1.0", optional = true }
responses = { version = "^0.20.0", optional = true }
aioresponses = { version = "^0.7.8", optional = true }
respx = { version = ">=0.22.0", optional = true }
nnunetv2 = { version = ">=2.4,<3.0", optional = true }
filelock = { version = ">=3.0", optional = true }
yolox-datamint = { version = ">=0.3.1", optional = true }
h5py = { version = ">=3.0", optional = true }
ruff = { version = "^0.16.1", optional = true }
[tool.poetry.group.dev.dependencies] # for `poetry install`
pytest = "^9.0.3"
pytest-cov = "^7.1.0"
responses = "^0.20.0"
aioresponses = "^0.7.0"
respx = ">=0.22.0"
ruff = "^0.16.1"
# Extra dependencies
[tool.poetry.extras]
docs = ["sphinx", "sphinx_rtd_theme", "sphinx-tabs", "sphinx-rtd-dark-mode", "setuptools"]
dev = ["pytest", "pytest-cov", "responses", "aioresponses", "respx", "ruff"]
nnunet = ["nnunetv2", "filelock"]
detection = ["yolox-datamint"]
examples = ["h5py"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.plugins."mlflow.tracking_store"]
datamint = "datamint.mlflow.tracking.datamint_store:DatamintStore"
http = "datamint.mlflow.tracking.datamint_store:DatamintStore"
https = "datamint.mlflow.tracking.datamint_store:DatamintStore"
[tool.poetry.plugins."mlflow.artifact_repository"]
datamint = "datamint.mlflow.artifact.datamint_artifacts_repo:DatamintArtifactsRepository"
http = "datamint.mlflow.artifact.datamint_artifacts_repo:DatamintArtifactsRepository"
https = "datamint.mlflow.artifact.datamint_artifacts_repo:DatamintArtifactsRepository"
mlflow-artifacts = "datamint.mlflow.artifact.datamint_artifacts_repo:DatamintArtifactsRepository"
[tool.poetry.plugins."mlflow.default_experiment_provider"]
datamint = "datamint.mlflow.tracking.default_experiment:DatamintExperimentProvider"
[tool.poetry.plugins."mlflow.model_registry_store"]
datamint = "datamint.mlflow.models.datamint_model_store:DatamintModelRegistryStore"
http = "datamint.mlflow.models.datamint_model_store:DatamintModelRegistryStore"
https = "datamint.mlflow.models.datamint_model_store:DatamintModelRegistryStore"
# ==========================================
# Tool configurations
# ==========================================
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
# Narrow on purpose: only categories already mostly clean in this codebase.
# BLE (blind except), S (bandit), TRY (tryceratops), SIM (simplify) are
# left out
select = ["E4", "E7", "E9", "F", "RUF"]
ignore = ["RUF001", "RUF002", "RUF003"]