Before starting, you'll need to ensure you have the appropriate version of Python installed.
- Install the virtual environment manager:
python2 -m pip install virtualenv
- Navigate to the project directory:
cd <project folder>
- Create a new virtual environment using Python 2:
python2 -m virtualenv venv2
- Activate the virtual environment. On Windows, use
venv2\Scripts\activate
. On Unix or MacOS, usesource venv2/bin/activate
. - Install the development dependencies and prepare local package:
python2 -m pip install -e .[dev]
- Run tests with the command:
python2 -m unittest discover python2/tests
- Remember to deactivate the virtual environment when you're done:
deactivate
- Install the virtual environment manager:
python3 -m pip install virtualenv
- Navigate to the project directory:
cd <project folder>
- Create a new virtual environment using Python 3:
python3 -m virtualenv venv3
- Activate the virtual environment. On Windows, use
venv3\Scripts\activate
. On Unix or MacOS, usesource venv3/bin/activate
. - Install the development dependencies and prepare local package:
python3 -m pip install -e .[dev]
- Run tests with the command:
python3 -m unittest discover python3/tests
- Remember to deactivate the virtual environment when you're done:
deactivate