Development - mschnitzer/dapsenv GitHub Wiki

Development

On this page you can find information how to set up your development environment and some other useful stuff.

Enabling Docker Use

To be able to use Docker, install the package docker. Additionally, make sure your user is a member of the docker group.

Setting Up The Development Environment

Install the following packages (package names were picked from the repository list of openSUSE Leap 42.1)

python3 python3-virtualenv python3-pip python3-devel libxslt-devel git gcc

Just clone the repository now (if it's not done yet) and change to the directory. Now you need to create a virtual environment. This can be done with:

pyvenv dapsenv

Now you need to source the virtual environment activation file:

source dapsenv/bin/activate

Install needed dependencies via pip:

pip install -r requirements.txt
pip install -r devel_requirements.txt

It's important to be in the virtual environment for development. Otherwise you cannot use the dapsenv command.

Installing The Program In The Virtual Environment (For Testing)

To build the program inside the virtual environment, just execute the following command:

python3 setup.py develop

It installs all files inside the virtual environment. After this step, you are able to use the command dapsenv. Whenever you change something in the code, you need to install the program again.