Module: check_mk
Branch: master
Commit: fcab577c2649c9fa05d28b5e8816d5cc2c7be85d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fcab577c2649c9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 21 20:34:05 2018 +0100
Introduce Pipfile for managing the virtual environment
* The virtual environment is used for executing Check_MK tests in a
deterministic environment on all platforms (CI server and developer
systems).
* The virtual environment includes all Python runtime and development
dependencies of Check_MK. For the moment the list of modules is
duplicated with the omd/packages/python-modules/Makefile definition.
We need to find a clean way to reduce the duplication.
* This change also introduces a configuration file for the direnv tool
which is used to automatically switch into the virtual environment
context once changing to the Check_MK directory.
To make use of it run "make setup" in the git base directory and
add this to your bashrc file:
eval "$(direnv hook bash)"
show_virtual_env() {
if [ -n "$VIRTUAL_ENV" ]; then
echo "($(basename $VIRTUAL_ENV))"
fi
}
export -f show_virtual_env
PS1='$(show_virtual_env)'$PS1
Change-Id: Ia5ffaa269c91655e2766b4b49136ccd4bac89b12
---
.envrc | 2 +
Makefile | 14 +-
Pipfile | 63 +++
Pipfile.lock | 1058 +++++++++++++++++++++++++++++++++++++++++
tests/Makefile | 9 -
tests/conftest.py | 21 +-
tests/pylint/Makefile | 7 -
tests/pylint/requirements.txt | 2 -
tests/requirements.txt | 11 -
9 files changed, 1152 insertions(+), 35 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=fcab577c26…