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:
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
See https://pypi.python.org/pypi/gitlab-release 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.
Source Distributions
Built Distribution
Hashes for gitlab_tags_to_pip_index-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d383984ce3c032cf01c607ed2828685010591e7a3e6c012c94287c3a93bdbc0a |
|
MD5 | 342acf8e9be50dea8c9ebe42da848130 |
|
BLAKE2b-256 | c6be9d1791f4c1011e231391f3b3d388cd823d87597d3e20a499c8b0a7bcfa05 |