How to setup an make code changes to the uICAL project
devenv/- a docker container environment which provides required development toolingexamples/- sample projects which demonstrate uICALmicropython-module/- Bindings for Micro Python (still a work in progress)python-module/- Bindings for Python (working but limited API)src/- C++ source for uICAL librarytest/- Tests in C++ and Python
First build the container devenv with ./devenv/make-devenv.sh, which acts as shell and environment where all the required tooling for development is installed. This means that you do not need to make any changes to your machine to participate to uICAL development.
Run ./de make test-cpp.
Run ./de make test-python.
Run ./de make clean.
Run ./de make coverage.
Run ./de make memory.
Launch configurations for debugging are included in .vscode/launch.json.
-
Run
./devenv/make-local-devenv.shto build a local virtual python environment with the uICAL module.- You can activate this environment manually by running
source ./virtualenv/bin/activate, but it needs to be selected in vscode to use the launch configs.
- You can activate this environment manually by running
-
Select
./virtualenv/bin/pythonas the python interpreter in vscode.- Vscode should prompt you when it first detects the environment.
- Alternatively, select it manually through the vscode command palette (
Shift+Ctrl+P) and type>Python: Select Interpreter.
-
Ensure that all the tests pass:
- Run:.
./de make clean test-all
- Run:.
-
Launch through vscode
- Open the Run and Debug tab on the left, select the configuration in the top, and click the green button.