za3k / qr-backup

Paper backup of files using QR codes
Other
129 stars 12 forks source link

Make pip package #59

Open skull-squadron opened 6 days ago

skull-squadron commented 6 days ago

If this were a pypi package, it could be installed simply as a CLI tool with pipx install qr-backup. No need to have a clunky build system or manually install anything.

za3k commented 5 days ago

That's not entirely true, because it has a lot of command-line dependencies, but it would be an improvement.

Want to offer a patch?

Jelloeater commented 4 days ago

Maybe even a simple bash script to install the deps? https://github.com/za3k/qr-backup/blob/master/docs/INSTALL.md#dependencies

I've also used https://www.pyinvoke.org as well for complex build scripts, works really well when you need more than something like Make or https://taskfile.dev

za3k commented 3 days ago

There essentially is a bash script, although it could be expanded per-distro to be more complete: https://github.com/za3k/qr-backup/blob/master/docs/INSTALL.md#other-linux-bsd If you would like to update CLI install for a particular distro, or fix for modern python packaging by putting in a venv, feel free to offer doc patches. I would be happy to accept them.

There is no build script. I wonder if you've misunderstood something? qr-backup is a single python file.

The Makefile only builds the debian package, so it only needs to be run by me. It's not used to generate a binary.