Python

FreeBSD

Install following packages

Virtual environments

Create virtual environment (this will use default python).

python3 -m venv 'envname'

Start virtual environment

source 'envname'/bin/activate

Upgrade pip in virtual environment

python3 -m pip install --upgrade pip

Testing

pytest

python3 -m pip install -r test-requirements.txt

Where test-requirements.txt list required python packages:

coverage
pytest
pytest-cov
pytest-flakes
pytest-pep8
pytest-pythonpath

Run the tests

pytest

Resources

Poetry