twine
twine copied to clipboard
Allow specifying gpg-identity (et al.) via environment variable.
If one uses twine directly, passing the requires gpg-identity as argument is straightforward.
But when using twine via a tool like https://github.com/zestsoftware/zest.releaser, passing the identity would require the tool to accept an appropriate option to forward it to twine. Same for other options like --sign-with.
Please add support for passing this by environment variables. As far as I understand the code, this should be easy to implement. Thanks.
Please add support for passing this by environment variables. As far as I understand the code, this should be easy to implement. Thanks.
I'd be happy to review and merge a pull request that does this.
I do think we should also be considering how this could be abused, though.
TWINE_IDENTITY would be a good variable name.
It should also be configurable in the config file (.pypirc) on a per-repository basis.
This is probably low priority since pypi is moving strongly away from GPG signatures (#616)