Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • O ogs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 112
    • Issues 112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 43
    • Merge requests 43
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ogsogs
  • ogs
  • Merge requests
  • !4370

Upload wheels to GitLab registry

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lars Bilke requested to merge bilke/ogs:gitlab-pypi into master Nov 09, 2022
  • Overview 0
  • Commits 3
  • Pipelines 15
  • Changes 3

Originally we uploaded wheels for master-branch to test.pypi.org but we now hit the storage limit of 5 GB. One can manually remove older versions but this does not scale.

I switched to uploading to the GitLab integrated registry.

At first I did try this because all of the GitLab docs mention that you need an API access token for downloading from the registry (e.g. when doing a pip install). But this is only the case when downloading from a non-public repo.

In our registry there is no storage limit and we can cleanup older wheel versions programmatically via the API from time to time.

Usage will be

pip install ogs --extra-index-url https://gitlab.opengeosys.org/api/v4/projects/120/packages/pypi/simple

Release wheels will still be uploaded to pypi.org (and will install via pip install ogs).

TODOs after merge:

  • Run a wheel build on master
  • Adapt test notebook in wheel job
  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
Edited Nov 09, 2022 by Lars Bilke
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gitlab-pypi