-
Notifications
You must be signed in to change notification settings - Fork 437
/
pyproject.toml
479 lines (438 loc) · 12.6 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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
[tool.poetry]
name = "zenml"
version = "0.68.1"
packages = [{ include = "zenml", from = "src" }]
description = "ZenML: Write production-ready ML code."
authors = ["ZenML GmbH <[email protected]>"]
readme = "README.md"
homepage = "https://zenml.io"
documentation = "https://docs.zenml.io"
repository = "https://github.com/zenml-io/zenml"
license = "Apache-2.0"
keywords = ["machine learning", "production", "pipeline", "mlops", "devops"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
exclude = [
"tests.*",
"*.tests",
"docs",
"tests",
"tests",
"legacy",
"*.tests.*",
"examples",
]
include = ["src/zenml", "*.txt", "*.sh", "*.md"]
[tool.poetry.scripts]
zenml = "zenml.cli.cli:cli"
[tool.poetry.dependencies]
alembic = { version = "~1.8.1" }
bcrypt = { version = "4.0.1" }
click = "^8.0.1,<8.1.4"
cloudpickle = ">=2.0.0,<3"
distro = "^1.6.0"
docker = "~7.1.0"
gitpython = "^3.1.18"
packaging = ">=24.1"
passlib = { extras = ["bcrypt"], version = "~1.7.4" }
psutil = ">=5.0.0"
pydantic = "~2.8"
pydantic-settings = "*"
pymysql = { version = "~1.1.0,>=1.1.1" }
python = ">=3.9,<3.13"
python-dateutil = "^2.8.1"
pyyaml = ">=6.0.1"
rich = { extras = ["jupyter"], version = ">=12.0.0" }
setuptools = "*"
sqlalchemy = "^2.0.0"
sqlalchemy_utils = "*"
sqlmodel = "0.0.18"
importlib_metadata = { version = "<=7.0.0", python = "<3.10" }
# Optional dependencies for the ZenServer
fastapi = { version = ">=0.100, <=0.110", optional = true }
uvicorn = { extras = ["standard"], version = ">=0.17.5", optional = true }
python-multipart = { version = "~0.0.9", optional = true }
pyjwt = { extras = ["crypto"], version = "2.7.*", optional = true }
orjson = { version = "~3.10.0", optional = true }
Jinja2 = { version = "*", optional = true }
ipinfo = { version = ">=4.4.3", optional = true }
secure = { version = "~0.3.0", optional = true }
# Optional dependencies for project templates
copier = { version = ">=8.1.0", optional = true }
pyyaml-include = { version = "<2.0", optional = true }
jinja2-time = { version = "^0.2.0", optional = true }
# Optional dependencies for the AWS secrets store
boto3 = { version = ">=1.16.0", optional = true }
# Optional dependencies for the GCP secrets store
google-cloud-secret-manager = { version = ">=2.12.5", optional = true }
# Optional dependencies for the Azure Key Vault secrets store
azure-identity = { version = ">=1.4.0", optional = true }
azure-keyvault-secrets = { version = ">=4.0.0", optional = true }
# Optional dependencies for the HashiCorp Vault secrets store
hvac = { version = ">=0.11.2", optional = true }
# Optional dependencies for the AWS connector
aws-profile-manager = { version = ">=0.5.0", optional = true }
# Optional dependencies for the Kubernetes connector
kubernetes = { version = ">=18.20.0", optional = true }
# Optional dependencies for the GCP connector
google-cloud-container = { version = ">=2.21.0", optional = true }
google-cloud-storage = { version = ">=2.9.0", optional = true }
google-cloud-artifact-registry = { version = ">=1.11.3", optional = true }
# Optional dependencies for the Azure connector
azure-mgmt-containerservice = { version = ">=20.0.0", optional = true }
azure-mgmt-containerregistry = { version = ">=10.0.0", optional = true }
azure-mgmt-storage = { version = ">=20.0.0", optional = true }
azure-storage-blob = { version = ">=12.0.0", optional = true }
azure-mgmt-resource = { version = ">=21.0.0", optional = true }
# Optional dependencies for the S3 artifact store
s3fs = { version = ">=2022.11.0", optional = true }
# Optional dependencies for the Sagemaker orchestrator
sagemaker = { version = ">=2.117.0", optional = true }
# Optional dependencies for the GCS artifact store
gcsfs = { version = ">=2022.11.0", optional = true }
# Optional dependencies for the Vertex orchestrator
kfp = { version = ">=2.6.0", optional = true }
google-cloud-aiplatform = { version = ">=1.34.0", optional = true }
# Optional dependencies for the Azure artifact store
adlfs = { version = ">=2021.10.0", optional = true }
# Optional dependencies for the AzureML orchestrator
azure-ai-ml = { version = "1.18.0", optional = true }
# Optional development dependencies
bandit = { version = "^1.7.5", optional = true }
coverage = { extras = ["toml"], version = "^5.5", optional = true }
mypy = { version = "1.7.1", optional = true }
pyment = { version = "^0.3.3", optional = true }
tox = { version = "^3.24.3", optional = true }
hypothesis = { version = "^6.43.1", optional = true }
typing-extensions = { version = ">=3.7.4", optional = true }
darglint = { version = "^1.8.1", optional = true }
ruff = { version = ">=0.1.7", optional = true }
yamlfix = { version = "^1.16.0", optional = true }
maison = { version = "<2.0", optional = true }
# pytest
pytest = { version = "^7.4.0", optional = true }
pytest-randomly = { version = "^3.10.1", optional = true }
pytest-mock = { version = "^3.6.1", optional = true }
pytest-clarity = { version = "^1.0.1", optional = true }
pytest-instafail = { version = ">=0.5.0", optional = true }
pytest-rerunfailures = { version = ">=13.0", optional = true }
pytest-split = { version = "^0.8.1", optional = true }
# mkdocs including plugins
mkdocs = { version = "^1.2.3", optional = true }
mkdocs-material = { version = "^8.1.7", optional = true }
mkdocs-awesome-pages-plugin = { version = "^2.6.1", optional = true }
mkdocstrings = { version = "^0.17.0", optional = true }
mike = { version = "^1.1.2", optional = true }
# mypy type stubs
types-certifi = { version = "^2021.10.8.0", optional = true }
types-croniter = { version = "^1.0.2", optional = true }
types-futures = { version = "^3.3.1", optional = true }
types-Markdown = { version = "^3.3.6", optional = true }
types-paramiko = { version = ">=3.4.0", optional = true }
types-Pillow = { version = "^9.2.1", optional = true }
types-protobuf = { version = "^3.18.0", optional = true }
types-PyMySQL = { version = "^1.0.4", optional = true }
types-python-dateutil = { version = "^2.8.2", optional = true }
types-python-slugify = { version = "^5.0.2", optional = true }
types-PyYAML = { version = "^6.0.0", optional = true }
types-redis = { version = "^4.1.19", optional = true }
types-requests = { version = "^2.27.11", optional = true }
types-setuptools = { version = "^57.4.2", optional = true }
types-six = { version = "^1.16.2", optional = true }
types-termcolor = { version = "^1.1.2", optional = true }
types-psutil = { version = "^5.8.13", optional = true }
types-passlib = { version = "^1.7.7", optional = true }
[tool.poetry.extras]
server = [
"fastapi",
"uvicorn",
"python-multipart",
"pyjwt",
"fastapi-utils",
"orjson",
"Jinja2",
"ipinfo",
"secure",
]
templates = ["copier", "jinja2-time", "ruff", "pyyaml-include"]
terraform = ["python-terraform"]
secrets-aws = ["boto3"]
secrets-gcp = ["google-cloud-secret-manager"]
secrets-azure = ["azure-identity", "azure-keyvault-secrets"]
secrets-hashicorp = ["hvac"]
s3fs = ["s3fs"]
gcsfs = ["gcsfs"]
adlfs = ["adlfs"]
connectors-kubernetes = ["kubernetes"]
connectors-aws = ["boto3", "kubernetes", "aws-profile-manager"]
connectors-gcp = [
"google-cloud-container",
"google-cloud-storage",
"google-cloud-artifact-registry",
"kubernetes",
]
connectors-azure = [
"azure-identity",
"azure-mgmt-containerservice",
"azure-mgmt-containerregistry",
"azure-mgmt-storage",
"azure-storage-blob",
"azure-mgmt-resource",
"kubernetes",
]
sagemaker = [
"sagemaker",
]
vertex = [
"google-cloud-aiplatform",
"kfp",
]
azureml = [
"azure-ai-ml",
]
dev = [
"bandit",
"ruff",
"yamlfix",
"coverage",
"pytest",
"mypy",
"pre-commit",
"pyment",
"tox",
"hypothesis",
"typing-extensions",
"darglint",
"pytest-randomly",
"pytest-mock",
"pytest-clarity",
"pytest-instafail",
"pytest-rerunfailures",
"pytest-split",
"mkdocs",
"mkdocs-material",
"mkdocs-awesome-pages-plugin",
"mkdocstrings",
"mike",
"maison",
"types-certifi",
"types-croniter",
"types-futures",
"types-Markdown",
"types-paramiko",
"types-Pillow",
"types-protobuf",
"types-PyMySQL",
"types-python-dateutil",
"types-python-slugify",
"types-PyYAML",
"types-redis",
"types-requests",
"types-setuptools",
"types-six",
"types-termcolor",
"types-psutil",
"types-passlib",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-version-plugin]
source = "init"
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]
log_cli = true
log_cli_level = "INFO"
testpaths = "tests"
xfail_strict = true
norecursedirs = [
"tests/integration/examples/*", # ignore example folders
]
[tool.coverage.run]
parallel = true
source = ["src/zenml"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 79
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
".test_durations",
"build",
"dist",
"node_modules",
"venv",
'__init__.py',
'src/zenml/cli/version.py',
# LitGPT files from the LLM Finetuning example
'examples/llm_finetuning/evaluate',
'examples/llm_finetuning/finetune',
'examples/llm_finetuning/generate',
'examples/llm_finetuning/lit_gpt',
'examples/llm_finetuning/scripts',
]
src = ["src", "test"]
# use Python 3.9 as the minimum version for autofixing
target-version = "py39"
[tool.ruff.format]
exclude = [
"*.git",
"*.hg",
".mypy_cache",
".tox",
".venv",
"_build",
"buck-out",
"build]",
]
[tool.ruff.lint]
# Disable autofix for unused imports (`F401`).
unfixable = ["F401"]
per-file-ignores = { }
ignore = [
"E501",
"F401",
"F403",
"D301",
"D401",
"D403",
"D407",
"D213",
"D203",
"S101",
"S104",
"S105",
"S106",
"S107",
]
select = ["D", "E", "F", "I", "I001", "Q"]
[tool.ruff.lint.flake8-import-conventions.aliases]
altair = "alt"
"matplotlib.pyplot" = "plt"
numpy = "np"
pandas = "pd"
seaborn = "sns"
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.mypy]
plugins = ["pydantic.mypy"]
strict = true
namespace_packages = true
show_error_codes = true
# import all google, transformers and datasets files as `Any`
[[tool.mypy.overrides]]
module = [
"google.*",
"transformers.*", # https://github.com/huggingface/transformers/issues/13390
"datasets.*",
"IPython.core.*",
]
follow_imports = "skip"
[[tool.mypy.overrides]]
module = [
"airflow.*",
"tensorflow.*",
"apache_beam.*",
"pandas.*",
"distro.*",
"analytics.*",
"absl.*",
"gcsfs.*",
"s3fs.*",
"adlfs.*",
"fsspec.*",
"torch.*",
"pytorch_lightning.*",
"sklearn.*",
"numpy.*",
"facets_overview.*",
"IPython.core.*",
"IPython.display.*",
"plotly.*",
"dash.*",
"dash_bootstrap_components.*",
"dash_cytoscape",
"dash.dependencies",
"docker.*",
"flask.*",
"kfp.*",
"kubernetes.*",
"urllib3.*",
"kfp_server_api.*",
"sagemaker.*",
"azureml.*",
"google.*",
"neuralprophet.*",
"lightgbm.*",
"scipy.*",
"deepchecks.*",
"boto3.*",
"botocore.*",
"jupyter_dash.*",
"slack_sdk.*",
"azure-keyvault-keys.*",
"azure-mgmt-resource.*",
"azure.mgmt.resource.*",
"model_archiver.*",
"kfp_tekton.*",
"mlflow.*",
"python_terraform.*",
"bentoml.*",
"multipart.*",
"jose.*",
"sqlalchemy_utils.*",
"sky.*",
"copier.*",
"datasets.*",
"pyngrok.*",
"cloudpickle.*",
"matplotlib.*",
"IPython.*",
"huggingface_hub.*",
"distutils.*",
"accelerate.*",
"label_studio_sdk.*",
"argilla.*",
"lightning_sdk.*",
"peewee.*",
"prodigy.*",
"prodigy.components.*",
"prodigy.components.db.*",
"transformers.*",
]
ignore_missing_imports = true