[Pkg-gnupg-commit] [gpgme] 239/412: python: Make GPGME's version easily accessible.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:26:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit e545ca3f682b615ce447c186a2c73489a32b0592
Author: Justus Winter <justus at g10code.com>
Date: Fri Jul 15 18:27:04 2016 +0200
python: Make GPGME's version easily accessible.
* lang/python/pyme/version.py.in (gpgme_versionstr): New variable.
Signed-off-by: Justus Winter <justus at g10code.com>
---
lang/python/pyme/version.py.in | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lang/python/pyme/version.py.in b/lang/python/pyme/version.py.in
index 764bf69..cfa49a2 100644
--- a/lang/python/pyme/version.py.in
+++ b/lang/python/pyme/version.py.in
@@ -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]
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list