mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
bab27364fc
Replace FastAPI with turboAPI across the entire codebase: - Swap all imports from fastapi to turboapi (TurboAPI, APIRouter, HTTPException, etc.) - Keep starlette imports for Jinja2Templates and StaticFiles (not yet in turboapi) - Remove unsupported `example=` params from Query/Path declarations - Update entry point to use turboapi's native server (app.run()) - Update test clients to use turboapi.testclient.TestClient The app loads successfully with all 200+ routes registered. turboAPI's Zig HTTP core provides significant throughput improvements over uvicorn. Note: turboAPI's TestClient has limited support for Request injection and Query defaults, causing some test failures. The actual server runtime handles these correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
1.1 KiB
TOML
56 lines
1.1 KiB
TOML
[project]
|
|
name = "kjvstudy-org"
|
|
version = "0.1.0"
|
|
description = "Study the King James Bible with AI-powered commentary and insights"
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"fastapi[standard]>=0.115.12",
|
|
"ged4py>=0.5.2",
|
|
"gunicorn>=24.1.1",
|
|
"mistune>=3.0.2",
|
|
"parse>=1.20.2",
|
|
"python-gedcom>=1.0.0",
|
|
"requests>=2.32.3",
|
|
"turboapi>=0.5.22",
|
|
"weasyprint>=66.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.3.5",
|
|
"pytest-cov>=6.0.0",
|
|
"pytest-xdist>=3.5.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
kjvstudy-org = "kjvstudy_org.main:main"
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=45", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["kjvstudy_org*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
kjvstudy_org = ["static/*", "templates/*"]
|
|
|
|
[tool.uv]
|
|
package = true
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.3.5",
|
|
"pytest-cov>=7.0.0",
|
|
"pytest-xdist>=3.5.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "-n 8"
|
|
filterwarnings = [
|
|
"ignore::DeprecationWarning:pydantic.*",
|
|
"ignore:.*example.* has been deprecated.*:DeprecationWarning",
|
|
]
|