-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathpyproject.toml
More file actions
193 lines (176 loc) · 4.56 KB
/
Copy pathpyproject.toml
File metadata and controls
193 lines (176 loc) · 4.56 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
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
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "dashAI"
version = "0.9.7.post2"
description = "dashAI: a graphical toolbox for training, evaluating and deploying state-of-the-art AI models."
readme = "README.rst"
license = "MIT"
authors = [{ name = "dashAI Team", email = "contacto@dash-ai.com" }]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"setuptools>=65.0.0,<82",
"fastapi[all]",
"SQLAlchemy",
"streaming_form_data",
"alembic",
"kink",
"numpy",
"pandas<3.0.0",
"joblib",
"pydantic",
"pydantic-settings",
"starlette",
"scikit-learn<1.8.0",
"datasets>=2.20.0",
"diffusers",
"evaluate",
"accelerate",
"Pillow",
"beartype",
"plotly",
"shap>=0.48",
"pymc-bart",
# pymc still imports the pre-1.0 arviz API (InferenceData, concat) but its
# metadata sets no upper bound, so the resolver must be capped here
"arviz<1.0.0",
"typer",
"rich",
"torch",
"torchvision",
"transformers",
"controlnet_aux",
"sacrebleu",
"sentencepiece",
"optuna",
"cmaes",
"hyperopt",
"nvidia-ml-py",
"openpyxl",
"httpx",
"wordcloud",
"opencv-python",
"protobuf",
"imblearn",
"numba>=0.60",
"llvmlite>=0.43",
"huey",
"ijson",
"greenery==3.2",
"xlrd",
"filetype",
"torchmetrics",
"pywebview",
"openml",
"oslo.concurrency",
"grad-cam>=1.5.5",
"dice-ml>=0.12",
"lime>=0.2.0.1",
]
[project.optional-dependencies]
# PyTorch CPU wheels + precompiled CPU llama-cpp (no CUDA SDK / drivers needed)
# Upstream's macOS arm64 wheels are malformed zips from 0.3.30 on (0.3.29 is the
# last good one), so darwin stays pinned until they republish.
cpu = [
"torch",
"torchvision",
"llama-cpp-python==0.3.29; sys_platform == 'darwin'",
"llama-cpp-python; sys_platform != 'darwin'",
]
# PyTorch CUDA 12.8 wheels; llama-cpp-python needs CMAKE_ARGS="-DGGML_CUDA=on"
# at install time to compile with CUDA offload (see Dockerfile.cuda)
cuda = ["torch", "torchvision", "llama-cpp-python"]
[project.urls]
Homepage = "https://github.com/DashAISoftware/DashAI"
Documentation = "https://dash-ai.com/"
Changelog = "https://dash-ai.com/changelog.html"
"Issue Tracker" = "https://github.com/DashAISoftware/DashAI/issues"
[project.scripts]
dashai = "DashAI.__main__:run"
DashAI = "DashAI.__main__:run"
[dependency-groups]
dev = [
"pre-commit",
"ruff",
"sphinx_rtd_theme",
"sphinx",
"sqlalchemy-stubs",
"pytest",
"pytest-cov",
"pytest-asyncio",
]
[tool.setuptools.packages.find]
include = ["DashAI*"]
[tool.uv]
conflicts = [[{ extra = "cpu" }, { extra = "cuda" }]]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "cuda" },
]
torchvision = [
{ index = "pytorch-cpu", extra = "cpu" },
{ index = "pytorch-cu128", extra = "cuda" },
]
llama-cpp-python = [{ index = "llama-cpp-cpu", extra = "cpu" }]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "llama-cpp-cpu"
url = "https://abetlen.github.io/llama-cpp-python/whl/cpu"
explicit = true
[tool.ruff]
line-length = 88
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C4", # flake8-comprehensions
"I", # isort
"N", # pep8-naming
"YTT", # flake8-2020
"B", # flake8-bugbear
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"ERA", # eradicate
"PD", # pandas-vet
]
lint.ignore = ["B008", "B010", "N806", "N817", "N999", "D212"]
exclude = [
".git",
"__pycache__",
"__init__.py",
".mypy_cache",
".pytest_cache",
"alembic",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy" # use numpy-style docstrings.
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests", "integration"]
addopts = ["--pdbcls=IPython.terminal.debugger:TerminalPdb"]
[tool.mypy]
plugins = ["pydantic.mypy", "sqlmypy"]
ignore_missing_imports = true
disallow_untyped_defs = true