poetry icon indicating copy to clipboard operation
poetry copied to clipboard

where to specify the source for poetry self update

Open berg-a opened this issue 3 months ago • 3 comments

Issue Kind

Missing documentation

Existing Link

where to specify source for self update

Description

Hello, I have troubles with finding in the documentation where i can specify the source used for ´poetry self update´. The poetry update command uses the source specified in in pyproct.toml. It makes sense that the poetry self command ignores that. But since i work in an environment, where i can't access pypi directly i need to specify another source for it to work. But i can't find where i can specify that.

Image

berg-a avatar Nov 28 '25 09:11 berg-a

If I remember correctly, there will be a pyproject.toml in the config directory after running self update (or self lock) for the first time. You can probably configure a source there.

radoering avatar Nov 30 '25 14:11 radoering

Thank you for the reply. Yes this works out. unfortunately there is no poetry self source add command, to do it directly from the terminal. I am wondering what is the way to actual solve this issue: documenting that the user has to run an command that fails to just create the pyprojecttoml in .config sounds like an improper fix for long term.

berg-a avatar Dec 01 '25 09:12 berg-a

Probably, just document when and where the pyproject.toml is created. Even for the project's pyproject.toml, there is not a corresponding command for each possible setting.

radoering avatar Dec 01 '25 17:12 radoering