commit ebcc771a73ed0063bac2b3949e8053f3c6d587af Author: Daniel Fichtinger Date: Sun Jun 15 19:07:51 2025 -0400 init python project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..505a3b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/README.md b/README.md new file mode 100644 index 0000000..22d9f1b --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Zona + +This repository contains a Python rewrite of +[zona](https://git.sr.ht/~ficd/zona). The project was increasing in complexity +and in need of a refactor. I decided that I would rather implement the features +in Python. + +Once the rewrite is complete, this repository will be renamed to `zona`, and +`zona` will become `zona-go` and archived. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1739aa0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,17 @@ +[project] +name = "zona" +version = "0.1.0" +description = "Static site generator" +readme = "README.md" +authors = [ + { name = "Daniel Fichtinger", email = "daniel@ficd.ca" } +] +requires-python = ">=3.12" +dependencies = [] + +[project.scripts] +zona = "zona:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" diff --git a/src/zona/__init__.py b/src/zona/__init__.py new file mode 100644 index 0000000..b9ca2d5 --- /dev/null +++ b/src/zona/__init__.py @@ -0,0 +1,2 @@ +def main() -> None: + print("Hello from zona!")