A ready to be used development environment with all dependencies is available
as a Docker image under the name kuralabs/flowbber:latest.
To start the development environment, execute the following command in the Flowbber repository root:
docker run -it \
--env http_proxy=${http_proxy} \
--env https_proxy=${https_proxy} \
--env no_proxy=${no_proxy} \
--volume $(pwd):/ws \
kuralabs/flowbber:latest bash
cd /ws
Install pip3 and development dependencies:
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo pip3 install tox flake8 pep8-naming
Install a C/C++ toolchain for native extensions and cythonized binary wheel packaging:
sudo apt install python3-dev build-essential cmake graphviz
Optionally, it is recommended to install the webdev package to run a
development web server from a local directory:
sudo pip3 install webdev
webdev .tox/doc/tmp/html
To run tests, you need a InfluxDB database and a MongoDB database running locally.
tox -e build
Output will be available at dist/.
flowbber-<version>.tar.gz.flowbber-<version>-py3-none-any.whlflowbber-<version>-cp35-cp35m-linux_x86_64.whlNote
The tags of the binary wheel will change depending on the interpreter and operating system you build the binary wheel on.
tox -e test
Output will be available at .tox/env/tmp/.
webdev .tox/env/tmp/
tests.xml.coverage.xml.coverage.html.tox -e doc
Output will be available at .tox/env/tmp/html.
webdev .tox/env/tmp/html