GROS Python server framework
This repository contains a framework for setting up a Web application based on Python modules, using CherryPy for routing.
This framework is used for a few servers within the Grip on Software pipeline,
namely the deployer
and status-dashboard
repositories.
Building
Some functionality is based on the data gathering modules and require a proper
installation of that package. If a PyPI registry is defined (possibly with
a PIP_REGISTRY
environment variable) and a proper installation location (such
as a virtual environment) is known, the dependencies may be installed using
pip install -r requirements.txt
.
Use python setup.py sdist
followed by python setup.py bdist_wheel
in order
to generate a wheel package for the framework. The files can then be found in
the dist
directory (and installed from there using pip install <path>
).
The Jenkinsfile
in this repository contains steps to build the package and
upload it to a PyPi-based repository so that it may be installed from there,
when built on a Jenkins CI server.