For the most part, the Plugin Tutorial is an excellent resource for someone starting out but I have a couple of questions that I couldn't find answers for.
However, since we are still working on our plugin, it makes more sense to use
python setup.py developfor now – this way the plugin becomes discoverable by OctoPrint, however we don’t have to reinstall it after any changes we will still do.
I understand the "don't have to reinstall it" part but it isn't clear to me what steps to take after each code change. Do I
python setup.py develop after each change or just restart OctoPrint?
I stumbled through the creation of the git repository and I probably could have done that better but it isn't clear from the tutorial how to transition from
python setup.py develop to
octoprint dev plugin:install and then transition to
pip install https://github.com/yourGithubName/OctoPrint-HelloWorld/archive/master.zip. How should these transitions be done? When do I delete files in ~/devel?
Once the github repository is created and the plugin is submitted for approval. What are the recommended steps for making changes? Should I and if so, how would I return to using ~/devel for a more rapid debugging phase?
In addition to being new to writing a plugin for OctoPrint, I'm also a newbie git user and a novice Python programmer. Any additional pointers or suggestions on the lifecycle of an OctoPrint plugin are welcome.