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 has left me confused about the correct usage. I expected that defining sources in pyproject.toml would be sufficient for PDM to use the custom index when installing packages. Also, unlike Poetry, the pdm.lock file doesn’t seem to indicate which index a package was pulled from.
Could you clarify:
What is the correct and recommended way to configure a custom PyPI index in PDM?
Why does the pyproject.toml approach not work as expected?
Is there a way to confirm (e.g. pdm.lock?) which source a package came from? In case of having multiple indexes.
The poetry.lock file looks like:
[package.source]
type = "legacy"url = "https://my-server.com/pypi/simple"reference = "pypi-simple"
[[package]]
name = "certifi"...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to understand the correct way to configure a custom PyPI index in a PDM-managed project.
Initially, I added the index to my pyproject.toml like this:
However, when I run
pdm add package
, I get[ConnectError]: [Errno 99] Cannot assign requested address
.Then, if I instead create a
pdm.toml
file with the following:... everything works file.
This has left me confused about the correct usage. I expected that defining sources in
pyproject.toml
would be sufficient for PDM to use the custom index when installing packages. Also, unlike Poetry, thepdm.lock
file doesn’t seem to indicate which index a package was pulled from.Could you clarify:
pyproject.toml
approach not work as expected?pdm.lock
?) which source a package came from? In case of having multiple indexes.The
poetry.lock
file looks like:So, it's clear where the package comes from.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions