Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breinbaas/4ff19e4e34ba0d66925487486feda03e to your computer and use it in GitHub Desktop.
Save breinbaas/4ff19e4e34ba0d66925487486feda03e to your computer and use it in GitHub Desktop.

use the following line in requirements.txt

--index-url https://gitlab-ci-token:<MY_TOKEN>@gitlab.com/api/v4/projects/<PROJECT_ID>/packages/pypi/simple

  • <MY_TOKEN> should be the token that you generate on gitlab | preferences | access tokens , you only need the api scope to be activated for that token
  • <PROJECT_ID> should be the id (numeric) of the project and can be found on the home page of the repo directly under the project name

once you setup this line you can now add packages that are part of that repo

leveelogic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment