diff --git a/docs/usage/python.md b/docs/usage/python.md index 146dda8772fb13..ac19be76d21bb5 100644 --- a/docs/usage/python.md +++ b/docs/usage/python.md @@ -71,14 +71,17 @@ Renovate detects any custom-configured sources in `pyproject.toml` and uses them ### Specify URL in configuration -Create a `python` object and put a `registryUrls` array in it. +Create a `packageRules` entry with `matchDatasources=pypi` and a `registryUrls` array. Fill the array with alternate index URL(s). ```json { - "python": { - "registryUrls": ["http://example.com/private-pypi/"] - } + "packageRules": [ + { + "matchDatasources": ["pypi"], + "registryUrls": ["http://example.com/private-pypi/"] + } + ] } ```