1
0
Fork 0
forked from forgejo/forgejo

Use --index-url in PyPi description (#22620) (#22636)

This commit is contained in:
Yarden Shoham 2023-01-28 06:57:12 +02:00 committed by GitHub
parent f204ff4ef7
commit 9f5e44bf50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -77,6 +77,8 @@ For example:
pip install --index-url https://testuser:password123@gitea.example.com/api/packages/testuser/pypi/simple --no-deps test_package
```
You can use `--extra-index-url` instead of `--index-url` but that makes you vulnerable to dependency confusion attacks because `pip` checks the official PyPi repository for the package before it checks the specified custom repository. Read the `pip` docs for more information.
## Supported commands
```