feat: initial implementation
This commit is contained in:
commit
c3cb1d7046
19 changed files with 1296 additions and 0 deletions
39
pyproject.toml
Normal file
39
pyproject.toml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[project]
|
||||
name = "smolweb"
|
||||
version = "0.1.0"
|
||||
description = "Serve a folder of Markdown as gemtext, Spartan, WML, and XHTML-MP"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = [
|
||||
"wapdown",
|
||||
"md2txt",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
smolweb = "smolweb.cli:main"
|
||||
|
||||
# Local path sources: `uv.toml` cannot hold a `[sources]` table (uv only
|
||||
# reads that from pyproject.toml), so there is no separate override file to
|
||||
# split "reproducible" from "editable" -- this table is the only place it
|
||||
# can live. Both origins are real (code.randogoth.com), but this checkout's
|
||||
# wapdown/md2txt have unpushed local changes (the xhtmlmp renderer, the
|
||||
# gemtext fixes) that a git source can't see yet, so path is what actually
|
||||
# works right now. Once those are pushed, swap to:
|
||||
# wapdown = { git = "ssh://git@code.randogoth.com:2222/randogoth/wapdown.git" }
|
||||
# md2txt = { git = "ssh://git@code.randogoth.com:2222/randogoth/md2txt.git" }
|
||||
[tool.uv.sources]
|
||||
wapdown = { path = "../wapdown", editable = true }
|
||||
md2txt = { path = "../md2txt", editable = true }
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["pytest>=8.0"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=68", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue