Closed duckinator closed 1 month ago
This issue was inspired by trying to make a ZipApp of fido: https://github.com/openpreserve/fido
I downloaded the latest release, and made very few changes and was able to make a zipapp of it.
First, I added a pyproject.toml
with these contents:
[tool.bork.zipapp]
enabled = true
main = "fido.fido:main"
And added this at the start of their setup.cfg
:
[metadata]
name=fido
If what I suggested above, or an equivalent, is implemented, this can be done with bork build --zipapp-name fido --zipapp-main fido.fido:main
and no code changes from what they already have.
Being able to pass arguments to
bork build
to override zipapp configuration would be very nice, especially for testing/debugging if a zipapp of a project can be built.I'm thinking:
This means if you want to test a zipapp build, you can just do (e.g.)
bork build --name fido --zipapp-main fido.fido:main