Replies: 1 comment
|
Change the source name to [[tool.pdm.source]]
name = "pypi"
url = "https://my-server.com/pypi/simple"
verify_ssl = trueLeave the cert path out of PDM doesn't record the source name the way Poetry does. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.tomlfile with the following:... everything works file.
This has left me confused about the correct usage. I expected that defining sources in
pyproject.tomlwould be sufficient for PDM to use the custom index when installing packages. Also, unlike Poetry, thepdm.lockfile doesn’t seem to indicate which index a package was pulled from.Could you clarify:
pyproject.tomlapproach not work as expected?pdm.lock?) which source a package came from? In case of having multiple indexes.The
poetry.lockfile looks like:So, it's clear where the package comes from.
Thanks
All reactions