diff --git a/docs/usage/python.md b/docs/usage/python.md index 146dda8772fb1317e5dc301efff82d988d46477d..ac19be76d21bb5c99a098457cd4eb618128d513b 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/"] + } + ] } ```