-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (104 loc) · 3.84 KB
/
pyproject.toml
File metadata and controls
120 lines (104 loc) · 3.84 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
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/maxdiffusion/__init__.py"
[project]
name = "maxdiffusion"
dynamic = ["version", "dependencies"]
requires-python = ">=3.12"
readme = "README.md"
license = "Apache-2.0"
description = "State-of-the-art diffusion in PyTorch and JAX."
keywords = ["deep learning", "diffusion", "jax", "pytorch", "stable diffusion", "audioldm"]
authors = [
{name = "Google LLC", email = "shahrokhi@google.com"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
[project.optional-dependencies]
quality = ["urllib3", "black", "isort", "ruff", "hf-doc-builder"]
docs = ["hf-doc-builder"]
training = ["accelerate", "datasets", "protobuf", "tensorboard", "Jinja2"]
test = [
"compel",
"datasets",
"Jinja2",
"invisible-watermark",
"k-diffusion",
"librosa",
"omegaconf",
"parameterized",
"pytest",
"pytest-timeout",
"pytest-xdist",
"requests-mock",
"safetensors",
"sentencepiece",
"scipy",
"torchvision",
]
torch = ["torch", "accelerate"]
flax = ["jax", "jaxlib", "flax"]
dev = [
"urllib3", "black", "isort", "ruff", "hf-doc-builder", "compel", "datasets", "Jinja2",
"invisible-watermark", "k-diffusion", "librosa", "omegaconf", "parameterized", "pytest",
"pytest-timeout", "pytest-xdist", "requests-mock", "safetensors", "sentencepiece", "scipy",
"torchvision", "accelerate", "protobuf", "tensorboard", "torch", "jax", "jaxlib", "flax"
]
[project.urls]
Repository = "https://github.com/AI-Hypercomputer/maxdiffusion.git"
"Bug Tracker" = "https://github.com/AI-Hypercomputer/maxdiffusion/issues"
[project.scripts]
maxdiffusion-cli = "maxdiffusion.commands.maxdiffusion_cli:main"
install_maxdiffusion_github_deps = "install_maxdiffusion_extra_deps.install_github_deps:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.metadata.hooks.requirements_txt]
files = ["dependencies/requirements/generated_requirements/requirements.txt"]
[tool.hatch.build.targets.wheel]
packages = ["src/maxdiffusion", "src/install_maxdiffusion_extra_deps"]
[tool.ruff]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "F402", "F823", "E402", "I001"]
select = ["C", "E", "F", "I", "W"]
line-length = 119
# Ignore import violations in all `__init__.py` files.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
"src/maxdiffusion/utils/dummy_*.py" = ["F401"]
"src/maxdiffusion/pyconfig.py" = ["E721"]
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["maxdiffusion"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"