Version
Created by: ederag
Followup of #483, that unfortunately was closed, but both commits were still available;
this PR starts with these commits (thanks @GeraldJansen !),
centralize the version in hamster.__version__
This takes less than 8 ms, negligible compared to the python script launch itself (150 ms).
The effort necessary to evaluate that only when needed would be disproportionate.
(except creating a version()
function, but that would be less
By the way, the "running installed" test is now centralized. bump2version is used to set the default values, and update the NEWS headers as well.
The D-Bus service has now a Version()
method.
Added a warning for client/server version mismatch (#526 (closed) and others).