Skip to content

PDM: exclude default URL #1094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

PDM: exclude default URL #1094

wants to merge 1 commit into from

Conversation

h0nIg
Copy link

@h0nIg h0nIg commented Mar 12, 2025

PDM enables to specify a custom index through pyproject.toml

https://pdm-project.org/latest/usage/config/

The user can specify a custom index and does not want to query pypi.org, for example due to corporate requirements to download dependencies through a corporate artifactory. Once an element [[tool.pdm.source]] is present and the name "pypi" is found, the default URL should not get used.

[[tool.pdm.source]]
name = "pypi"
url = "https://myartifactory.corp/pypi/simple"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant