I'm writing an add-on for Blender. Typically to test my code I have a massive script that has all the details so it can register all the operators, UI Panels etc when I run it through the text editor.
Unfortunately, this means I have a mess of a script that has multiple classes and methods spread out. This is hard to manage and isn't great architecture. Of course in typical IDEs you would break components out into separate files, and for release you would typically bundle them in a .zip which is installed the normal way through Blender. Refactoring one script into multiple scripts at the end of production is cumbersome, and maintaining both a Blender Test script with everything and a Library for my IDE is cumbersome.
Is there a better way to write my scripts as a library without needing to reinstall it as an an addon, or making a massive conglomerate script to run in the Text Editor?
I use PyCharm because I like it, but I know of the VSC Blender Addon. I have used VSC before but I swapped to Jetbrains products because they played a bit nicer with other tools (mainly Unity.)