In Python, I've done this by installing the package in editable mode from a side project. Something like:
/package-project/
/main-project/
Then in the main project pip install -e ../package-project