python: Make GPGME's version easily accessible.

* lang/python/pyme/version.py.in (gpgme_versionstr): New variable.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-07-15 18:27:04 +02:00
parent 1f318b7aaa
commit e545ca3f68

View File

@ -16,12 +16,11 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from . import pygpgme
productname = 'pyme'
versionstr = "@VERSION@"
# XXX: Do we want to embed such information?
#revno = int('$Rev: 281 $'[6:-2])
#revstr = "Rev %d" % revno
gpgme_versionstr = pygpgme.GPGME_VERSION
versionlist = versionstr.split(".")
major = versionlist[0]