zorto 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
zorto-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,5 @@
1
+ Metadata-Version: 2.4
2
+ Name: zorto
3
+ Version: 0.1.2
4
+ Summary: A fast static site generator with executable code blocks
5
+ Requires-Python: >=3.11
@@ -0,0 +1,29 @@
1
+ [project]
2
+ name = "zorto"
3
+ version = "0.1.2"
4
+ description = "A fast static site generator with executable code blocks"
5
+ requires-python = ">=3.11"
6
+ dependencies = []
7
+
8
+ [project.scripts]
9
+ zorto = "zorto:main"
10
+
11
+ [dependency-groups]
12
+ dev = ["maturin>=1.0,<2.0", "ruff>=0.9", "pytest>=8"]
13
+
14
+ [tool.maturin]
15
+ module-name = "zorto.core"
16
+ python-packages = ["zorto"]
17
+ python-source = "src"
18
+ manifest-path = "zorto-py/Cargo.toml"
19
+
20
+ [build-system]
21
+ requires = ["maturin>=1.0,<2.0"]
22
+ build-backend = "maturin"
23
+
24
+ [tool.uv]
25
+ cache-keys = [
26
+ { file = "pyproject.toml" },
27
+ { file = "zorto/**/*.rs" },
28
+ { file = "zorto-py/**/*.rs" },
29
+ ]
@@ -0,0 +1,18 @@
1
+ import sys
2
+
3
+ from zorto.core import run as _run
4
+
5
+
6
+ def run(argv: list[str] | None = None) -> None:
7
+ """Run the zorto CLI with the given arguments."""
8
+ if argv is None:
9
+ argv = sys.argv
10
+ try:
11
+ _run(argv)
12
+ except KeyboardInterrupt:
13
+ sys.exit(0)
14
+
15
+
16
+ def main() -> None:
17
+ """CLI entry point."""
18
+ run()