You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works when I use uv or PDM or with pip.conf but in Poetry it refuses to accept these and I see an error:
poetry add click
Using version ^8.1.7 for click
Updating dependencies
Resolving dependencies... (7.7s)
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
I've also tried embedding credentials into the url like this:
This partially works, I am able to install packages with it but I am assuming this creates a local to the project config because I am unable to run some global commands like pulling poetry plugins with poetry self add ...
While it is not clear from you issue description, I am assuming you are attempting to add a global "package source" you can use for all projects.
While this is possible in other tools, Poetry does not support it. This is for a variety of reasons. For now you can do this per-project as described in the documentation. Or use a plugin as described in #5958.
Description
I am trying to set up a private PyPi registry which is on Nexus working globally with Poetry:
This works when I use uv or PDM or with pip.conf but in Poetry it refuses to accept these and I see an error:
I've also tried embedding credentials into the url like this:
But no luck with that either.
Workarounds
poetry source add nexus https://<username>:<password>@master.example.net/repo/repository/PyPiGroup/simple
This partially works, I am able to install packages with it but I am assuming this creates a local to the project config because I am unable to run some global commands like pulling poetry plugins with
poetry self add ...
Poetry Installation Method
pipx
Operating System
RHEL9
Poetry Version
Poetry (version 1.8.4)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: