Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,19 @@ eval = [
"datasets>=2.14",
"huggingface-hub>=0.20",
]
dev = ["pytest>=8.0"]
# Everything tests/ needs, torch-free. The serve-side deps are listed one by one
# rather than as `pixelrag[serve]` on purpose: that extra pulls torch,
# torchvision and transformers, which the tests never touch — api.py imports them
# lazily, inside the functions that encode queries. Keeping them out is what lets
# CI run the serve and backend suites at all (see the note on core `numpy`).
dev = [
"faiss-cpu>=1.9.0",
"fastapi>=0.115.0",
"httpx>=0.27", # fastapi's TestClient
"pixelrag[qdrant]",
"pydantic>=2.0.0",
"pytest>=8.0",
]

[project.scripts]
pixelshot = "pixelrag_render.render:main"
Expand Down Expand Up @@ -107,6 +119,7 @@ environments = ["sys_platform == 'linux'", "sys_platform == 'darwin'"]
[tool.uv.sources]
torch = [{ index = "pytorch-cu129", marker = "sys_platform == 'linux'" }]
torchvision = [{ index = "pytorch-cu129", marker = "sys_platform == 'linux'" }]
pixelrag = { workspace = true }

[[tool.uv.index]]
name = "pytorch-cu129"
Expand Down
Loading
Loading