Files
Adrian Lyjak cf07c76ea2 Fix extract-basic standalone uv sync (llama-cloud-fake path dep) (#267)
* Resolve extract-basic llama-cloud-fake from PyPI when standalone

- Drop path override in templates/extract-basic; depend on published 0.1.x
- Add templates/extract-basic to uv workspace members so monorepo still uses local editable package
- Relax root click pin to match templates (8.3.0 is broken)

* Revert adding extract-basic to uv workspace

llamactl dev validate runs uv run from the template dir, which walks up to
the workspace venv — where llama-agents-appserver isn't installed. Keep
extract-basic standalone; published llama-cloud-fake resolves fine in the
monorepo too.

* Bump llama-index-workflows floor to 2.16.0 across templates

basic, document-qa, human-in-the-loop, rag, web-scraping were lagging on
2.2-2.5; align with the rest of the fleet.

* Wire data-extraction tests with llama-cloud-fake, add to uv workspace

- clients.py installs FakeLlamaCloudServer when FAKE_LLAMA_CLOUD is set
- conftest.py flips the env var before test imports
- Real test_workflow.py exercises process_file against the fake and
  checks metadata_workflow returns the configured schema/collection
- Bump all versions in .github/templates-remotes.yml for changed templates
2026-04-22 15:08:28 -04:00

51 lines
1.1 KiB
TOML

[project]
name = "document-qa"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = []
requires-python = ">=3.12"
dependencies = [
"llama-index-workflows>=2.16.0,<3.0.0",
"llama-cloud-services>=0.6.69",
"llama-index-core>=0.14.0,<0.15.0",
"llama-index-llms-openai>=0.5.6,<0.6.0",
"llama-index-embeddings-openai>=0.5.1,<0.6.0",
"python-dotenv>=1.1.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"click==8.1.7",
"hatch>=1.14.1",
"pytest>=8.4.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.13.0",
"ty>=0.0.2",
]
[tool.hatch.envs.default.scripts]
"format" = "ruff format ."
"format-check" = "ruff format --check ."
"lint" = "ruff check --fix ."
"lint-check" = ["ruff check ."]
typecheck = "ty check src"
test = "pytest"
"all-check" = ["format-check", "lint-check", "test"]
"all-fix" = ["format", "lint", "test"]
[tool.llamadeploy]
env_files = [".env"]
llama_cloud = true
[tool.llamadeploy.ui]
directory = "./ui"
[tool.llamadeploy.workflows]
upload = "document_qa.qa_workflows:upload"
chat = "document_qa.qa_workflows:chat"