Files
pirats/pyproject.toml
Tim McCarthy 683c60fff9 Serve the rulebook as a static HTML page from FastAPI
Replace the SPA Rules route with a self-contained src/pirats/rules.html
served at GET /rules (registered before the SPA mount, included in
package data for the Nix build). Plain anchor links replace the
scrollIntoView workaround since there's no hash router to fight. The
corner Rules link and splash-page link now point at /rules, and the
Vite dev server proxies /rules to the backend like /api.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 01:35:04 -07:00

35 lines
632 B
TOML

[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pirats"
version = "0.1.0"
description = "Rats with Gats Remote Play web application"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"fastapi",
"sqlmodel",
"uvicorn",
"python-multipart",
]
[project.optional-dependencies]
dev = [
"pytest",
]
[project.scripts]
pirats = "pirats.main:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pirats = ["static/**/*", "rules.html"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]