Files
phelex 88ac95dd19 Integrate Antirion admin with FastAPI and htmx
Add the shared document API, constructor and expert editors, isolated preview, and fragment catalog metadata with typed block IDs.

Include design references, specification 001, QA scripts, project guidance, and cached Docker dependency installation. Leave example sites for a separate commit.
2026-11-12 21:55:36 +03:00

49 lines
1.4 KiB
TOML

[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "site-engine"
version = "0.1.0"
description = "Движок сайтов на Markdown + YAML: layouts, fragments, коллекции, MCP для агентов"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"jinja2>=3.1",
"PyYAML>=6.0",
"markdown-it-py>=3.0",
"click>=8.1",
"nh3>=0.2", # санитайзер HTML после Markdown (если не установлен, остаётся только html=False)
]
[project.optional-dependencies]
server = [ # M2+: админка, формы, превью
"fastapi>=0.115",
"uvicorn>=0.30",
"pydantic>=2.7",
"sqlalchemy>=2.0",
"alembic>=1.13",
"python-multipart>=0.0.9",
"httpx>=0.27", # серверный клиент HTML UI → JSON API
]
mcp = ["mcp>=1.2"] # M3
images = ["Pillow>=10"] # M4: варианты изображений
dev = ["pytest>=8", "ruff>=0.6", "httpx>=0.27", "playwright>=1.49"]
[project.scripts]
site-engine = "site_engine.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
site_engine = ["builtin/**/*", "web/admin/templates/*", "web/admin/static/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff]
line-length = 100
target-version = "py312"