-
Notifications
You must be signed in to change notification settings - Fork 772
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
Feature Request - uv publish recognizes .pypirc file #7676
Comments
I guess we probably should since it's a standardized file though it seems a bit behind-the-times as there are several warnings suggesting alternative methods for authentication. It's also weird that it has a |
Fair points. Definitely an only-if-it-makes-sense feature request 😊 |
I'm actually not sure this is a standard it might just be recommended by the PyPA? I'll follow up on that. Added to the guide in pypa/packaging.python.org#734 and it looks like twine just used distutils to parse it originally per pypa/twine#15 There's an open pull request from 2017 that updates the guide to discourage use of pypirc? pypa/packaging.python.org#297 |
Thanks for the link. Interesting conversation in the PR from 2017. Some talk of keyring support being a little "flaky" on linux [at that time], so maybe |
I think support for |
I created a wrapper for this: https://github.com/bulletmark/uv-publish. |
Big agree on this! My workflow uses The other benefit of the config file is it lets you keep track of multiple index’s credentials (yes, I know that everyone is moving over to using trusted publishing, but I'm not ready for that yet) |
Thanks soooooooo much for the work on this amazing tool! I'm in the process of migrating the toolchain for all my Python projects to uv & ruff!
The recently-released
publish
command is a really welcome addition. When I run it, it's listed as "experimental", so I'm hoping there's still an opportunity for input on the feature. Definitely not an urgent feature need, but It would be great ifpublish
recognized the.pypirc
toml file, as specified in the Python Packaging User Guide. Namely:This would be like
twine
, but maybe add a new-r, --repository
option that takes the shorthand name from the index servers listed in.pypirc
. In that case, with a properly-configured.pypirc
file like the one above in the user's home directory, publishing would be handled something like this:To publish to
pypi
(the default), enter:To publish to
test.pypi
, enter:Private repos/others look like this:
The text was updated successfully, but these errors were encountered: