savoirfairelinux / monitoring-tools

Collection of monitoring tools for Shinken, Nagios, etc.
http://sfl-monitoring-tools.readthedocs.org/
28 stars 13 forks source link

Set correctly version for each plugin #83

Open gst opened 8 years ago

gst commented 8 years ago

I would like that for each plugin its version is available within its package, that is :

from shinkenplugins.plugins.xxx import __version__
# or 
from shinkenplugins.plugins.xxx import VERSION

should give the actual plugin xxx's version (as string), like "1.2" .

actually only very few plugins have that.

See for example: https://github.com/savoirfairelinux/monitoring-tools/blob/master/plugins/check-reseaucontactcom/setup.py#L35

some refs:

https://www.python.org/dev/peps/pep-0008/#version-bookkeeping http://legacy.python.org/dev/peps/pep-0396/#specification https://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/ etc..