PDM¶
[[tool.pdm.source]]
name = "pypi"
url = "https://py.swndx.dev/public/default/simple/"
Which index? These examples use default (wheels only). If your dependencies need source distributions or approved pre-releases, use relaxed instead: https://py.swndx.dev/public/relaxed/simple/ (replace default with relaxed in every URL above). Compare the two. Use one or the other, never both.
Naming the source pypi replaces PyPI rather than adding to it. With a token, set PDM_PYPI_USERNAME=token and PDM_PYPI_PASSWORD in the environment, or use pdm config pypi.username/pypi.password with the keyring.