These problems were encountered during OpenGrok development however most likely they are generic.
Initial setup:
python3 -m venv env
. env/bin/activate
python -m pip install -r requirements.txt
python setup.py develop
Even after this it is necessary to do python setup.py install whenever code under src/main changes.
Another problem is that when pytest is run directly, the requisites (under tests_require) from setup.py are not available.
For instance I had to install mockito, pytest-xdist etc.
pytest -k test_get_repos_for_project
When pdb breakpoint is enabled in code like so:
import pdb
pdb.set_trace()
it is necessary to run pytest with --pdb so that pdb can be interacted with.