diff --git a/README.md b/README.md index 6ed8741..eff9be0 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,19 @@ uv run boltcard-writer readers ``` `uv run` creates a virtualenv and installs the two Python dependencies on -first use (needs internet once). With the ACR1252U plugged in you should see -two readers, the starred one is used: +first use (needs internet once). + +**No uv?** (e.g. the Omarchy mirror 404s on the package, try +`sudo pacman -Syu uv` first). The only dependencies are click and +cryptography, both in Arch's repos, and the checkout ships a launcher: + +```sh +sudo pacman -S --needed python python-click python-cryptography +./boltcard-writer readers # instead of `uv run boltcard-writer readers` +``` + +With the ACR1252U plugged in you should see two readers, the starred one is +used: ``` * ACS ACR1252 1S CL Reader PICC 00 00 diff --git a/boltcard-writer b/boltcard-writer new file mode 100755 index 0000000..31af047 --- /dev/null +++ b/boltcard-writer @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Run from a checkout without uv: needs python3 + click + cryptography +# (Arch: sudo pacman -S --needed python python-click python-cryptography). +set -euo pipefail +here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +export PYTHONPATH="$here/src${PYTHONPATH:+:$PYTHONPATH}" +exec python3 -m boltcard_writer "$@" diff --git a/src/boltcard_writer/__main__.py b/src/boltcard_writer/__main__.py new file mode 100644 index 0000000..ca9c208 --- /dev/null +++ b/src/boltcard_writer/__main__.py @@ -0,0 +1,3 @@ +from .cli import main + +main(prog_name="boltcard-writer")