watchfiles icon indicating copy to clipboard operation
watchfiles copied to clipboard

Watchfiles with editable packages

Open CharlesFr opened this issue 8 months ago • 1 comments

I have a docker-compose.yaml application using watchfiles to reload project files.

However, changes made to packages referenced locally and installed via pip install -e . aren't reflected. Changes only appear after rebuilding the whole clusters docker-compose up -d build." which is time-consuming.

My question is; how should I handle reloading packages installed via editable mode such that I don't need to rebuild every time?

I can confirm that adding sys.exit(0) inside the editable module launches a reload, but without the newly added line.

CharlesFr avatar Oct 03 '23 09:10 CharlesFr