- Create a Gitlab PAT here: link, having the
read_api
scope. - Modify (or create)
~/.pip/pip.conf
on your machine, and replace with your token and <GROUP_ID> with the project's group id:
[global]
index-url = https://pypi.org/simple
extra-index-url = https://__token__:@gitlab.com/api/v4/groups//-/packages/pypi/simple