From af72ce00acb0d727415095a34675f7bc4cee446f Mon Sep 17 00:00:00 2001 From: gnaponie Date: Jun 28 2019 11:39:28 +0000 Subject: Add to the README some initial dev setup Signed-off-by: gnaponie --- diff --git a/README.md b/README.md index 3a51acd..93b9bdf 100644 --- a/README.md +++ b/README.md @@ -72,3 +72,27 @@ The handler which rebuilds all the modules after the `.spec` file of RPM includi build_id = self.build_module(name, version, rev) if build_id is not None: self.record_build(event, name, ArtifactType.MODULE, build_id) + + +# Initial development setup + +Create and activate a [Python virtual environment](https://virtualenv.pypa.io/en/stable/). + +Install the dependencies with: + + sudo python3 setup.py install + + +Install the requirements: + + pip3 install -r requirements.txt + + +Install the requirements useful to run the tests: + + pip3 install -r test-requirements.txt + + +Run the tests: + + python3 -m pytest tests/