-
Notifications
You must be signed in to change notification settings - Fork 615
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
Support .netrc files #1405
Comments
Thanks for the report! We definitely need to address registry authentication. |
We would also like the .netrc support. We specify the private repo in a slightly different way
|
@zanieb Since you are using |
This work for index access, but fail on download since reqwest middleware is not used: |
In fact this is not download in itself that cause this issue, but only the In my situation, the error we need to skip is an HTTP 401. |
## Summary Add netrc support to the uv-client. closes #1405 ## Test Plan I've added a corresponding test case to validate the correct header. Furthermore a tested it against a real world private repository.
pip supports obtaining credentials for authentication from
.netrc
files. This allows to keeppip.conf
,--index-url
and--find-links
free of credentials and instead store them in a central place in~/.netrc
.Unfortunately, uv does not support obtaining credentials from there.
This is also required, for e.g. using requirements.txt files that refer to wheels at urls that require auth
The text was updated successfully, but these errors were encountered: