-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (65 loc) · 2.37 KB
/
pyproject.toml
File metadata and controls
73 lines (65 loc) · 2.37 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
[tool.poetry]
name = "lightnote"
version = "0.1.0"
description = "A creative AI toolkit for image processing, generation, and retrieval"
authors = ["Page Nineteen"]
license = "MIT"
readme = "README.md"
packages = [{include = "lightnote", from = "src"}]
[tool.poetry.scripts]
lightnote = "lightnote.cli:main"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "^2.0"
pydantic-settings = "^2.0"
python-dotenv = "^1.0"
Pillow = "^10.0"
httpx = "^0.27"
# Optional deps (installed via extras)
transformers = {version = "^4.40", optional = true}
torch = {version = "^2.0", optional = true}
numpy = {version = ">=1.26", optional = true}
anthropic = {version = "^0.40", optional = true}
colorthief = {version = "^0.2", optional = true}
fal-client = {version = "^0.5", optional = true}
fastapi = {version = "^0.115", optional = true}
uvicorn = {version = "^0.34", optional = true}
python-multipart = {version = "^0.0.18", optional = true}
diffusers = {version = "^0.30", optional = true}
peft = {version = "^0.12", optional = true}
safetensors = {version = "^0.4", optional = true}
accelerate = {version = "^0.30", optional = true}
huggingface_hub = {version = "^0.23", optional = true}
langchain-core = {version = "^0.3", optional = true}
langchain-anthropic = {version = "^0.3", optional = true}
langgraph = {version = "^0.2", optional = true}
voyageai = {version = "^0.3", optional = true, python = "<3.14"}
[tool.poetry.extras]
processing = ["transformers", "torch", "numpy", "anthropic", "colorthief"]
flux = ["fal-client"]
sdxl = ["diffusers", "transformers", "torch", "peft", "safetensors", "accelerate", "huggingface_hub"]
stability = ["anthropic"]
training = ["fal-client"]
agent = ["langchain-core", "langchain-anthropic", "langgraph", "voyageai"]
api = ["fastapi", "uvicorn", "python-multipart"]
all = [
"transformers", "torch", "numpy", "anthropic", "colorthief",
"fal-client",
"diffusers", "peft", "safetensors", "accelerate", "huggingface_hub",
"langchain-core", "langchain-anthropic", "langgraph", "voyageai",
"fastapi", "uvicorn", "python-multipart",
]
[tool.poetry.group.dev.dependencies]
pytest = "^8.0"
ruff = "^0.4"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.pytest.ini_options]
testpaths = ["tests", "src"]
python_files = "test_*.py"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"