-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (54 loc) · 1.29 KB
/
Copy pathpyproject.toml
File metadata and controls
63 lines (54 loc) · 1.29 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
[project]
name = "canva-like"
version = "0.1.0"
description = "Experiments for reconstructing editable layered designs from raster images"
requires-python = ">=3.12,<3.13"
dependencies = [
"fastapi>=0.116",
"einops>=0.8",
"kornia>=0.8",
"layerd @ git+https://github.com/CyberAgentAILab/LayerD.git",
"numpy>=2.0",
"pillow>=11.0",
"python-multipart>=0.0.20",
"scikit-learn>=1.6",
"scikit-image>=0.25",
"scipy>=1.15",
"timm>=1.0",
"torch>=2.13",
"torchvision>=0.28",
"transformers==4.48.0",
"uvicorn>=0.35",
]
[project.scripts]
canva-like = "canva_like.cli:main"
canva-like-api = "canva_like.api:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/canva_like"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", marker = "sys_platform == 'linux'" },
]
torchvision = [
{ index = "pytorch-cpu", marker = "sys_platform == 'linux'" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.9",
]
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = [".cache", "data", "experiments"]
[tool.pytest.ini_options]
testpaths = ["tests"]