From 1dc9c1251f7cba8402bb79417bf8943e51b07a63 Mon Sep 17 00:00:00 2001 From: Tom <12222103+critchtionary@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:48:37 +0000 Subject: [PATCH] docs: Fix method of specifying custom pypi URL (#26749) --- docs/usage/python.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/usage/python.md b/docs/usage/python.md index 146dda8772..ac19be76d2 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/"] + } + ] } ``` -- GitLab