Skip to content

Commit

Permalink
docs: Fix method of specifying custom pypi URL (#26749)
Browse files Browse the repository at this point in the history
  • Loading branch information
critchtionary committed Jan 19, 2024
1 parent 5fdf4fc commit 1dc9c12
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/usage/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/"]
}
]
}
```

Expand Down

0 comments on commit 1dc9c12

Please sign in to comment.