On 13/08/2015 at 11:26, xxxxxxxx wrote:
Hi,
This is perhaps more of a general Python question, than a Py4D question, but I thought I'd run it by you guys. Do you have any recommendations on how to automatically prepare your plugins for distribution?
My current system
---------------------
1. Commit my source in Git (private hosting via BitBucket).
2. Manually increment version number in README, and source files.
2b. Review my commit history between my last distribution and the current version, and update the Changelog in my plugin's documentation.
3. Duplicate my "src" directory, give it the same name as my plugin
4. Manually source-protect all of my .pyp files
5. Run python script to byte-compile all of my libs
6. Delete all of my .pyp and .py files
7. .zip up the "PluginName" directory.
8. Rename the .zip "PluginName v01_05" or whatever the version is.
9. Move the .zip into a "distributions" folder in my repo.
10. Commit my updated repo.
11. Upload the file to my website / distribution location.
Why certainly not difficult, this process gets a little bit tedious, especially when I'm updating dozens of plugins. To the point that I don't update for minor bugfixes, but instead wait for big version changes - to the detriment of my end-users.
I'm looking for something that will automate as much of the above process as possible. Any suggestions?
I can probably write a python script that does most of the above, but I suspect someone else has already solved this problem. If not, any suggestions on how to source protect more than one .pyp file at a time?
Thanks!
Donovan