|
Packit Service |
30b792 |
# -*- coding: utf-8 -*-
|
|
Packit Service |
30b792 |
|
|
Packit Service |
30b792 |
# Copyright (C) 2016-2018 g10 Code GmbH
|
|
Packit |
d7e8d0 |
# Copyright (C) 2015 Ben McGinnes <ben@adversary.org>
|
|
Packit |
d7e8d0 |
# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
|
|
Packit |
d7e8d0 |
#
|
|
Packit |
d7e8d0 |
# This library is free software; you can redistribute it and/or
|
|
Packit |
d7e8d0 |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
# License as published by the Free Software Foundation; either
|
|
Packit |
d7e8d0 |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
d7e8d0 |
#
|
|
Packit |
d7e8d0 |
# This library is distributed in the hope that it will be useful,
|
|
Packit |
d7e8d0 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
d7e8d0 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
d7e8d0 |
# Lesser General Public License for more details.
|
|
Packit |
d7e8d0 |
#
|
|
Packit |
d7e8d0 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
# License along with this library; if not, write to the Free Software
|
|
Packit |
d7e8d0 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
from __future__ import absolute_import, print_function
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
from . import gpgme
|
|
Packit |
d7e8d0 |
|
|
Packit Service |
30b792 |
del absolute_import, print_function
|
|
Packit Service |
30b792 |
|
|
Packit |
d7e8d0 |
productname = 'gpg'
|
|
Packit |
d7e8d0 |
versionstr = "@VERSION@"
|
|
Packit |
d7e8d0 |
gpgme_versionstr = gpgme.GPGME_VERSION
|
|
Packit |
d7e8d0 |
in_tree_build = bool(gpgme.cvar.gpg_in_tree_build)
|
|
Packit Service |
30b792 |
is_beta = False
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
versionlist = versionstr.split(".")
|
|
Packit |
d7e8d0 |
major = versionlist[0]
|
|
Packit |
d7e8d0 |
minor = versionlist[1]
|
|
Packit |
d7e8d0 |
patch = versionlist[2]
|
|
Packit |
d7e8d0 |
|
|
Packit Service |
30b792 |
versionintlist = []
|
|
Packit Service |
30b792 |
versionintlist.append(int(major))
|
|
Packit Service |
30b792 |
versionintlist.append(int(minor))
|
|
Packit Service |
30b792 |
|
|
Packit Service |
30b792 |
try:
|
|
Packit Service |
30b792 |
int(patch)
|
|
Packit Service |
30b792 |
except ValueError as e:
|
|
Packit Service |
30b792 |
is_beta = True
|
|
Packit Service |
30b792 |
|
|
Packit Service |
30b792 |
if is_beta is False:
|
|
Packit Service |
30b792 |
versionintlist.append(int(patch))
|
|
Packit Service |
30b792 |
else:
|
|
Packit Service |
30b792 |
try:
|
|
Packit Service |
30b792 |
beta_patch = patch.split("-")
|
|
Packit Service |
30b792 |
versionintlist.append(int(beta_patch[0]))
|
|
Packit Service |
30b792 |
except Exception as e:
|
|
Packit Service |
30b792 |
# This should never happen, if it does then lodge a bug report.
|
|
Packit Service |
30b792 |
versionintlist.append(-1)
|
|
Packit Service |
30b792 |
|
|
Packit |
d7e8d0 |
copyright = """\
|
|
Packit Service |
30b792 |
Copyright (C) 2016-2018 g10 Code GmbH
|
|
Packit Service |
30b792 |
Copyright (C) 2015 Benjamin D. McGinnes
|
|
Packit |
d7e8d0 |
Copyright (C) 2014-2015 Martin Albrecht
|
|
Packit |
d7e8d0 |
Copyright (C) 2004-2008 Igor Belyi
|
|
Packit |
d7e8d0 |
Copyright (C) 2002 John Goerzen"""
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
author = "The GnuPG hackers"
|
|
Packit |
d7e8d0 |
author_email = "gnupg-devel@gnupg.org"
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
description = "Python support for GPGME GnuPG cryptography library"
|
|
Packit |
d7e8d0 |
homepage = "https://gnupg.org"
|
|
Packit |
d7e8d0 |
|
|
Packit Service |
30b792 |
license = """Copyright (C) 2016-2018 g10 Code GmbH
|
|
Packit Service |
30b792 |
Copyright (C) 2015 Benjamin D. McGinnes <ben@adversary.org>
|
|
Packit |
d7e8d0 |
Copyright (C) 2014, 2015 Martin Albrecht <martinralbrecht@googlemail.com>
|
|
Packit |
d7e8d0 |
Copyright (C) 2004, 2008 Igor Belyi <belyi@users.sourceforge.net>
|
|
Packit |
d7e8d0 |
Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
This library is free software; you can redistribute it and/or
|
|
Packit |
d7e8d0 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
License as published by the Free Software Foundation; either
|
|
Packit |
d7e8d0 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
This library is distributed in the hope that it will be useful,
|
|
Packit |
d7e8d0 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
d7e8d0 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
d7e8d0 |
Lesser General Public License for more details.
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
License along with this library; if not, write to the Free Software
|
|
Packit |
d7e8d0 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"""
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
# Interface hygiene. Keep this at the end.
|
|
Packit |
d7e8d0 |
del gpgme
|