Poetry ignoring credentials in source url? #6629
Unanswered
keriksson-rosenqvist
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to set up a poetry environment which pulls a certain package from a private pypi-like registry. As I am sharing the project with others via a git repository, I want the setup to be contained within the pyproject.toml file, i.e. not rely on configs, environment variables, or keyring settings that may differ between user devices.
I have therefore added a
source
with the basic http credentials included in the url. The exact same url is able to install the package and it's dependencies throughpip install -i https://<username:password>@[REDACTED]/pypi/simple/ my-private-package
I've set
secondary = true
as that lets dependencies be installed from the normal pypi, otherwise poetry also fails to install them.According to this issue, others have been seemingly been able to get it working with the credentials in the url, however with the setup above raises the following error for me.
Am I setting it up wrong or has there been a change to the usage since the mentioned issue was able to get it to work?
Beta Was this translation helpful? Give feedback.
All reactions