Skip to content

Instantly share code, notes, and snippets.

@aschwinwester
Created June 28, 2024 13:33
Show Gist options
  • Select an option

  • Save aschwinwester/4d8dd8aa12bc822bbcfc0e6444d1c1e4 to your computer and use it in GitHub Desktop.

Select an option

Save aschwinwester/4d8dd8aa12bc822bbcfc0e6444d1c1e4 to your computer and use it in GitHub Desktop.
Python gitlab

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 First create personal access token with the following scopes: read_api, read_registry Than create this file inside ~/pip/pip.ini:

[global]
index-url=https://__token__:<PERSONAL_ACCESS_TOKEN>@mycomp.gitlab.host/api/v4/projects/1252/packages/pypi/simple
extra-index-url=https://pypi.org/simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment