Hello,
Thank you for wanting to contribute to specto! :)
If you want to write a new watch you MUST use the bzr version from specto that can be found here:
https://code.launchpad.net/~specto/specto/main
On our download page there are instructions on how to get the source from launchpad.
Writing a new plugin is a simple as adding a new file to the "plugins" folder in the "spectlib" directory but there are some things that you have to be very careful about (i'm going to take the bzr watch as an example):
1) the filename has to be something like watch_vc_svn (vc = category, svn = your watch)
2) there have to be these lines:
type = "Watch_vc_bazaar" --> has to be the name of the class!
type_desc = _("Bazaar") --> the description that will come in the add-menu
icon = 'bazaar' --> the icon (specto looks if it is available in the theme, if not it will search in data/icons/ for an icon called bazaar.svg)
category = _("Version control") --> the category (the first level in the add menu)
so i attached a basic svn example to help you get started :)
i also attached an icon called subversion.svg (it is actually i png but specto only checks the svg extension but it should work fine).
so put the watch_vc_svn file in the plugins folder and subversion.svg in data/icons and you will have a new entry in your add menu :)
if your plugin is not loading anymore or there are errors you have to take a look at ~/.config/specto/error.log
good luck and don't hesitate to ask a question! we are here to help you!
Best regards,
Wout