This repository contains developer packages which are used within turris project.
To integrate it into your project you need to define two stages build
and publish
.
Then you can simply include the remote yaml file provided within this repository.
stages:
...
- build
- publish
...
include:
- remote: "https://gitlab.nic.cz/turris/foris-controller/packages/-/raw/master/templates/python.yml"
Building and publishing trigger only when a version tag occurs (^v[0-9].*
) and
it requires that all previous stages passes.
Sometimes it is necessary to override some configuration within the provided template. Lets say that we want to build only for python 3.7 and 3.8.
...
include:
- remote: "https://gitlab.nic.cz/turris/foris-controller/packages/-/raw/master/templates/python.yml"
build::python:
parallel:
matrix:
- IMAGE: ['python:3.7-slim', 'python:3.8-slim']
You can either use a special cmd line attr for pip
pip install <package_name> --extra-index-url https://gitlab.nic.cz/api/v4/projects/1066/packages/pypi/simple
or you can place it into your pip configuration (~/.config/pip/pip.conf
)
[global]
extra-index-url =
https://gitlab.nic.cz/api/v4/projects/1066/packages/pypi/simple