From bc37a36e43374c3fc029795647e2ad5a516f6c76 Mon Sep 17 00:00:00 2001 From: randogoth Date: Tue, 10 Feb 2026 20:55:15 +0200 Subject: [PATCH] pyproject --- README.md | 12 +++++++++--- pyproject.toml | 9 +++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/README.md b/README.md index 80a0e0a..1dfc85e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # monkeysucker -This tool converts [WriteMonkey 3](https://github.com/writemonkey/wm3/) sheet files into markdown files. +This tool converts WriteMonkey 3 sheet files into markdown files. ## Where the database files live @@ -22,7 +22,13 @@ You can also open these folders from within WriteMonkey 3 via its command palett ## Usage ``` -uv run --from git+https://codeberg.org/randogoth/monkeysucker ./monkeysucker.py path/to/datadir path/to/outputdir +python3 monkeysucker.py path/to/datadir path/to/outputdir +``` + +## Run with uvx + +``` +uvx --from git+https://codeberg.org/randogoth/monkeysucker monkeysucker path/to/datadir path/to/outputdir ``` ## Output rules @@ -36,4 +42,4 @@ uv run --from git+https://codeberg.org/randogoth/monkeysucker ./monkeysucker.py ## Notes -- The output directory is deleted and recreated on each run. \ No newline at end of file +- The output directory is deleted and recreated on each run. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..39ec4bb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +[project] +name = "monkeysucker" +version = "0.1.0" +description = "Convert WriteMonkey 3 sheet files into markdown files." +readme = "README.md" +requires-python = ">=3.10" + +[project.scripts] +monkeysucker = "monkeysucker:main"