twine
twine copied to clipboard
"twine configure" verb for a guided setup
Writing config files by hand is so 1998. Twine should have a verb for configuring itself.
As per #208, this guided configuration should store secret materials responsibly, i.e., requiring the keyring.
Could this be covered the twine accounts
command proposed in https://github.com/pypa/twine/issues/324?
@bhrutledge I believe the opposite is more accurate. configure
is more general, one could configure repository
which includes the account, url, etc. The opposite isn't as true.
@sigmavirus24 It seemed to me that twine accounts
had the benefit of a proposed spec, which covered the requirement to "store secret materials responsibly". This issue seems more vague.
It's my understanding that the only thing that's read from --config-file
is repository, username, and password. Is there more to configure besides that?
Poetry has a poetry config
command that, among other things, saves repository configuration to something like ~/.config/pypoetry/config.toml
. This seems like a decent pattern to follow.
Flit silently creates ~/.pypirc
and saves the password to keyring if it's installed. I'd rather offer explicit configuration.