Building from source

This section is for those who want to build the add-on from source and extend, customise, or fix bugs in it.
Note: Mac M1 (Apple silicon) users may encounter problems with building storynavigator using certain Python 3.8.x or 3.9.x versions and / or actually building or running these specific Python versions at all on your Mac. If you encounter such issues, it is recommended to install Rosetta 2 and always run the terminal using Rosetta 2 (see how to do the latter here) for development tasks.
Requirements:
A tool for checking out a Git repository
Python 3.9.12+
Steps to build and test from source:
Get a copy of the code
git clone git@github.com:navigating-stories/orange-story-navigator.gitChange into the
orange-story-navigator/directorycd orange-story-navigatorCreate and activate a new Python virtual environment using virtualenv
Run the following command
pip install -r requirements.txtIf Step 4. completed with no errors, run this command
pip install -e .
This command installs the widget and registers it with your Orange3 installation. If you encountered an error during Step 4, file an issue with the details and skip the remaining steps.
Run
orange-canvasorpython -m Orange.canvas
The Orange3 application should shortly start up with a splash screen
Testing
Run tests with pytest.
For coverage:
coverage run -m pytest
coverage report
# or
coverage html