twine icon indicating copy to clipboard operation
twine copied to clipboard

"twine configure" verb for a guided setup

Open glyph opened this issue 7 years ago • 4 comments

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.

glyph avatar Oct 05 '16 19:10 glyph

Could this be covered the twine accounts command proposed in https://github.com/pypa/twine/issues/324?

bhrutledge avatar Jan 21 '20 01:01 bhrutledge

@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 avatar Jan 21 '20 14:01 sigmavirus24

@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?

bhrutledge avatar Jan 23 '20 01:01 bhrutledge

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.

bhrutledge avatar Oct 01 '21 10:10 bhrutledge