Skip to main content

Utility for use in gitlab ci to create python repo web pages from project tags

Project description

This python script uses the gitlab api to inspect all tags for the a project and build a python repository index to be used for automated installations with pip. This is best used in Gitlab CI in conjunction with gitlab_release package to first attach a python package to the current build tag, after which this can be used to generate a static web page to be hosted by gitlab which pip can be pointed to as an index to install your package. This can assist in distributing python packages that aren’t suitable for publishing on PyPI official index.

It can be used in a gitlab-ci.yml stage like:

  stage: release
    - python3 sdist bdist_wheel
    - pip3 install gitlab_release
    - python3 -m gitlab_release $PRIVATE_TOKEN dist/*
    - tags

  stage: deploy
    - pip3 install gitlab_tags_to_pip_index
    - python3 -m gitlab_tags_to_pip_index ./public
    - tags
    - public

See for more information about gitlab_release script.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gitlab_tags_to_pip_index-1.5-py3-none-any.whl (5.0 kB) Copy SHA256 hash SHA256 Wheel py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page