PyCommon
Common Python library for TMSS backend
Installation
pip install .
Setup
One time template setup should include configuring the docker registry to regularly cleanup old images of the CI/CD pipelines. And you can consider creating protected version tags for software releases:
Once the cleanup policy for docker registry is setup you can uncomment the docker push
comment in the .gitlab-ci.yml
file from the docker_build
job. This will allow to download minimal docker images with your Python package installed.
Contributing
To contribute, please create a feature branch and a "Draft" merge request. Upon completion, the merge request should be marked as ready and a reviewer should be assigned.
Verify your changes locally and be sure to add tests. Verifying local
changes is done through tox
.
pip install tox
With tox the same jobs as run on the CI/CD pipeline can be ran. These include unit tests and linting.
tox
To automatically apply most suggested linting changes execute:
tox -e format
License
This project is licensed under GPLv3