62 lines
1.5 KiB
TOML
62 lines
1.5 KiB
TOML
[build-system]
|
|
requires = [
|
|
"hatchling>=1.25.0",
|
|
"hatch-vcs>=0.4.0",
|
|
]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "pagerite"
|
|
dynamic = ["version"]
|
|
description = "A modern website and Content Management System."
|
|
authors = [
|
|
{ name = "Leo Vasanko" },
|
|
]
|
|
keywords = ["cms", "blog", "fastapi", "markdown"]
|
|
readme = "README.md"
|
|
requires-python = ">=3.14"
|
|
dependencies = [
|
|
"blake3>=1.0.9",
|
|
"fastapi-vue~=1.7.2",
|
|
"fastapi[standard]>=0.141.1",
|
|
"html5tagger>=2.0.0",
|
|
"httpx>=0.28.1",
|
|
"kanta>=0.9.2",
|
|
"markdown-it-py>=4.2.0",
|
|
"maxminddb>=3.1.1",
|
|
"mdit-py-plugins>=0.6.1",
|
|
"mediapreview[standard]>=0.2.5",
|
|
"platformdirs>=4.11.5",
|
|
"pygments>=2.20.0",
|
|
"python-slugify>=8.0.4",
|
|
"uarite>=0.1.2",
|
|
"zstandard>=0.25.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
pagerite = "pagerite.__main__:main"
|
|
|
|
[project.urls]
|
|
Repository = "https://git.zi.fi/LeoVasanko/pagerite"
|
|
Issues = "https://github.com/LeoVasanko/pagerite"
|
|
|
|
[dependency-groups]
|
|
dev = []
|
|
|
|
[tool.hatch.version]
|
|
source = "vcs"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["pagerite"]
|
|
|
|
[tool.hatch.build]
|
|
# `only-packages` drops directories without an __init__.py, so the theme
|
|
# files and seed image assets must be force-included as artifacts (like
|
|
# the frontend build).
|
|
artifacts = ["pagerite/frontend-build", "pagerite/themes", "pagerite/seed-assets"]
|
|
only-packages = true
|
|
packages = ["pagerite"]
|
|
|
|
[tool.hatch.build.targets.sdist.hooks.custom]
|
|
path = "scripts/fastapi-vue/buildhook.py"
|