Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv publish interactive like twine? #8073

Closed
Tracked by #7839
hauntsaninja opened this issue Oct 10, 2024 · 1 comment · Fixed by #8158
Closed
Tracked by #7839

uv publish interactive like twine? #8073

hauntsaninja opened this issue Oct 10, 2024 · 1 comment · Fixed by #8158
Labels
cli Related to the command line interface enhancement New feature or improvement to existing functionality good first issue Good for newcomers

Comments

@hauntsaninja
Copy link
Contributor

I've been doing uvx twine upload dist/* instead of uv publish because twine gives you a nice prompt for token and you don't have to worry about leaking a credential into shell history or something. Maybe this is something uv publish could also do?

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality cli Related to the command line interface labels Oct 11, 2024
@konstin konstin added the good first issue Good for newcomers label Oct 13, 2024
@konstin
Copy link
Member

konstin commented Oct 13, 2024

Mentoring instructions: When there are no token, no trusted-publishing and no keyring, we should ask for the username (if not given) and the password. For this, the console crate should be used, so we don't add another heavy depedency, like in https://github.com/astral-sh/uv/blob/71d5661bd8d5d6c60dbb02c4285c22fd06894c17/crates/uv-console/src/lib.rs. We should provide an interactive hint that tokens can be used as username/password with username __token__.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface enhancement New feature or improvement to existing functionality good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants