Local setup mac First create personal access token with the following scopes: read_api, read_registry Than create this file inside ~/.pip/pip.conf:
[global]
index-url=https://__token__:<PERSONAL_ACCESS_TOKEN>@mycompany.gitlab.host/api/v4/projects/1252/packages/pypi/simple
extra-index-url=https://pypi.org/simple
Local setup windows