Skip to main content

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:

release:
  stage: release
  script:
    - python3 setup.py sdist bdist_wheel
    - pip3 install gitlab_release
    - python3 -m gitlab_release $PRIVATE_TOKEN dist/*
  only:
    - tags

pages:
  stage: deploy
  script:
    - pip3 install gitlab_tags_to_pip_index
    - python3 -m gitlab_tags_to_pip_index ./public
  only:
    - tags
  artifacts:
    paths:
    - public

# Or if you want to include master builds as pre-release
pages:
  stage: deploy
  script:
    - mkdir -p ./public
    - mv ./*.whl ./public/
    - pip3 install gitlab_tags_to_pip_index
    - python3 -m gitlab_tags_to_pip_index --pre './public/*.whl' ./public
  artifacts:
    paths:
    - public

See https://pypi.python.org/pypi/gitlab-release for more information about gitlab_release script.

Metadata

Release files for gitlab-tags-to-pip-index 1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for gitlab-tags-to-pip-index 1.9
File Interpreter ABI Platform
gitlab_tags_to_pip_index-1.9-py3-none-any.whl Python 3 none any Details

Release files / gitlab_tags_to_pip_index-1.9-py3-none-any.whl

Download URL gitlab_tags_to_pip_index-1.9-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
728409c0204d4a90f203b0969426c97b9fe8da0604b0c84990694ae2b6140a65
BLAKE2b-256 checksum
How to use checksums
411509006bc41c3bc8b4095a77616d7733475e3c3b02b20e28829f21505f0af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.9 This release

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page