summaryrefslogtreecommitdiff
path: root/lang/python/gpg/constants
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:37 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-01 16:54:37 +0900
commit442a1386c9708114c2b721afea60d5593e36c423 (patch)
treed3b22c8ec8d6aaa40297028da6f9da358bb15f80 /lang/python/gpg/constants
parent214479142a766516e8770c3e1a3b0b0cc37c239e (diff)
downloadgpgme-442a1386c9708114c2b721afea60d5593e36c423.tar.gz
gpgme-442a1386c9708114c2b721afea60d5593e36c423.tar.bz2
gpgme-442a1386c9708114c2b721afea60d5593e36c423.zip
Imported Upstream version 1.10.0upstream/1.10.0
Diffstat (limited to 'lang/python/gpg/constants')
-rw-r--r--lang/python/gpg/constants/__init__.py142
-rw-r--r--lang/python/gpg/constants/create.py25
-rw-r--r--lang/python/gpg/constants/data/__init__.py6
-rw-r--r--lang/python/gpg/constants/data/encoding.py23
-rw-r--r--lang/python/gpg/constants/event.py23
-rw-r--r--lang/python/gpg/constants/import.py23
-rw-r--r--lang/python/gpg/constants/keylist/__init__.py6
-rw-r--r--lang/python/gpg/constants/keylist/mode.py23
-rw-r--r--lang/python/gpg/constants/keysign.py25
-rw-r--r--lang/python/gpg/constants/md.py23
-rw-r--r--lang/python/gpg/constants/pk.py23
-rw-r--r--lang/python/gpg/constants/protocol.py23
-rw-r--r--lang/python/gpg/constants/sig/__init__.py6
-rw-r--r--lang/python/gpg/constants/sig/mode.py23
-rw-r--r--lang/python/gpg/constants/sig/notation.py25
-rw-r--r--lang/python/gpg/constants/sigsum.py23
-rw-r--r--lang/python/gpg/constants/status.py124
-rw-r--r--lang/python/gpg/constants/tofu/__init__.py24
-rw-r--r--lang/python/gpg/constants/tofu/policy.py25
-rw-r--r--lang/python/gpg/constants/validity.py23
20 files changed, 0 insertions, 638 deletions
diff --git a/lang/python/gpg/constants/__init__.py b/lang/python/gpg/constants/__init__.py
deleted file mode 100644
index 484ffd2..0000000
--- a/lang/python/gpg/constants/__init__.py
+++ /dev/null
@@ -1,142 +0,0 @@
-# Constants.
-#
-# Copyright (C) 2016 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_', globals())
-del util
-
-# For convenience, we import the modules here.
-from . import data, keylist, sig, tofu # The subdirs.
-from . import create, event, keysign, md, pk, protocol, sigsum, status, validity
-
-# A complication arises because 'import' is a reserved keyword.
-# Import it as 'Import' instead.
-globals()['Import'] = getattr(__import__('', globals(), locals(),
- [str('import')], 1), "import")
-
-__all__ = ['data', 'event', 'import', 'keysign', 'keylist', 'md', 'pk',
- 'protocol', 'sig', 'sigsum', 'status', 'tofu', 'validity', 'create']
-
-# GPGME 1.7 replaced gpgme_op_edit with gpgme_op_interact. We
-# implement gpg.Context.op_edit using gpgme_op_interact, so the
-# callbacks will be called with string keywords instead of numeric
-# status messages. Code that is using these constants will continue
-# to work.
-
-STATUS_ABORT = "ABORT"
-STATUS_ALREADY_SIGNED = "ALREADY_SIGNED"
-STATUS_ATTRIBUTE = "ATTRIBUTE"
-STATUS_BACKUP_KEY_CREATED = "BACKUP_KEY_CREATED"
-STATUS_BAD_PASSPHRASE = "BAD_PASSPHRASE"
-STATUS_BADARMOR = "BADARMOR"
-STATUS_BADMDC = "BADMDC"
-STATUS_BADSIG = "BADSIG"
-STATUS_BEGIN_DECRYPTION = "BEGIN_DECRYPTION"
-STATUS_BEGIN_ENCRYPTION = "BEGIN_ENCRYPTION"
-STATUS_BEGIN_SIGNING = "BEGIN_SIGNING"
-STATUS_BEGIN_STREAM = "BEGIN_STREAM"
-STATUS_CARDCTRL = "CARDCTRL"
-STATUS_DECRYPTION_FAILED = "DECRYPTION_FAILED"
-STATUS_DECRYPTION_INFO = "DECRYPTION_INFO"
-STATUS_DECRYPTION_OKAY = "DECRYPTION_OKAY"
-STATUS_DELETE_PROBLEM = "DELETE_PROBLEM"
-STATUS_ENC_TO = "ENC_TO"
-STATUS_END_DECRYPTION = "END_DECRYPTION"
-STATUS_END_ENCRYPTION = "END_ENCRYPTION"
-STATUS_END_STREAM = "END_STREAM"
-STATUS_ENTER = "ENTER"
-STATUS_ERRMDC = "ERRMDC"
-STATUS_ERROR = "ERROR"
-STATUS_ERRSIG = "ERRSIG"
-STATUS_EXPKEYSIG = "EXPKEYSIG"
-STATUS_EXPSIG = "EXPSIG"
-STATUS_FAILURE = "FAILURE"
-STATUS_FILE_DONE = "FILE_DONE"
-STATUS_FILE_ERROR = "FILE_ERROR"
-STATUS_FILE_START = "FILE_START"
-STATUS_GET_BOOL = "GET_BOOL"
-STATUS_GET_HIDDEN = "GET_HIDDEN"
-STATUS_GET_LINE = "GET_LINE"
-STATUS_GOOD_PASSPHRASE = "GOOD_PASSPHRASE"
-STATUS_GOODMDC = "GOODMDC"
-STATUS_GOODSIG = "GOODSIG"
-STATUS_GOT_IT = "GOT_IT"
-STATUS_IMPORT_OK = "IMPORT_OK"
-STATUS_IMPORT_PROBLEM = "IMPORT_PROBLEM"
-STATUS_IMPORT_RES = "IMPORT_RES"
-STATUS_IMPORTED = "IMPORTED"
-STATUS_INQUIRE_MAXLEN = "INQUIRE_MAXLEN"
-STATUS_INV_RECP = "INV_RECP"
-STATUS_INV_SGNR = "INV_SGNR"
-STATUS_KEY_CONSIDERED = "KEY_CONSIDERED"
-STATUS_KEY_CREATED = "KEY_CREATED"
-STATUS_KEY_NOT_CREATED = "KEY_NOT_CREATED"
-STATUS_KEYEXPIRED = "KEYEXPIRED"
-STATUS_KEYREVOKED = "KEYREVOKED"
-STATUS_LEAVE = "LEAVE"
-STATUS_MISSING_PASSPHRASE = "MISSING_PASSPHRASE"
-STATUS_MOUNTPOINT = "MOUNTPOINT"
-STATUS_NEED_PASSPHRASE = "NEED_PASSPHRASE"
-STATUS_NEED_PASSPHRASE_PIN = "NEED_PASSPHRASE_PIN"
-STATUS_NEED_PASSPHRASE_SYM = "NEED_PASSPHRASE_SYM"
-STATUS_NEWSIG = "NEWSIG"
-STATUS_NO_PUBKEY = "NO_PUBKEY"
-STATUS_NO_RECP = "NO_RECP"
-STATUS_NO_SECKEY = "NO_SECKEY"
-STATUS_NO_SGNR = "NO_SGNR"
-STATUS_NODATA = "NODATA"
-STATUS_NOTATION_DATA = "NOTATION_DATA"
-STATUS_NOTATION_FLAGS = "NOTATION_FLAGS"
-STATUS_NOTATION_NAME = "NOTATION_NAME"
-STATUS_PINENTRY_LAUNCHED = "PINENTRY_LAUNCHED"
-STATUS_PKA_TRUST_BAD = "PKA_TRUST_BAD"
-STATUS_PKA_TRUST_GOOD = "PKA_TRUST_GOOD"
-STATUS_PLAINTEXT = "PLAINTEXT"
-STATUS_PLAINTEXT_LENGTH = "PLAINTEXT_LENGTH"
-STATUS_POLICY_URL = "POLICY_URL"
-STATUS_PROGRESS = "PROGRESS"
-STATUS_REVKEYSIG = "REVKEYSIG"
-STATUS_RSA_OR_IDEA = "RSA_OR_IDEA"
-STATUS_SC_OP_FAILURE = "SC_OP_FAILURE"
-STATUS_SC_OP_SUCCESS = "SC_OP_SUCCESS"
-STATUS_SESSION_KEY = "SESSION_KEY"
-STATUS_SHM_GET = "SHM_GET"
-STATUS_SHM_GET_BOOL = "SHM_GET_BOOL"
-STATUS_SHM_GET_HIDDEN = "SHM_GET_HIDDEN"
-STATUS_SHM_INFO = "SHM_INFO"
-STATUS_SIG_CREATED = "SIG_CREATED"
-STATUS_SIG_ID = "SIG_ID"
-STATUS_SIG_SUBPACKET = "SIG_SUBPACKET"
-STATUS_SIGEXPIRED = "SIGEXPIRED"
-STATUS_SUCCESS = "SUCCESS"
-STATUS_TOFU_STATS = "TOFU_STATS"
-STATUS_TOFU_STATS_LONG = "TOFU_STATS_LONG"
-STATUS_TOFU_USER = "TOFU_USER"
-STATUS_TRUNCATED = "TRUNCATED"
-STATUS_TRUST_FULLY = "TRUST_FULLY"
-STATUS_TRUST_MARGINAL = "TRUST_MARGINAL"
-STATUS_TRUST_NEVER = "TRUST_NEVER"
-STATUS_TRUST_ULTIMATE = "TRUST_ULTIMATE"
-STATUS_TRUST_UNDEFINED = "TRUST_UNDEFINED"
-STATUS_UNEXPECTED = "UNEXPECTED"
-STATUS_USERID_HINT = "USERID_HINT"
-STATUS_VALIDSIG = "VALIDSIG"
diff --git a/lang/python/gpg/constants/create.py b/lang/python/gpg/constants/create.py
deleted file mode 100644
index 132e96d..0000000
--- a/lang/python/gpg/constants/create.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Flags for key creation
-#
-# Copyright (C) 2017 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_CREATE_', globals())
-del util
diff --git a/lang/python/gpg/constants/data/__init__.py b/lang/python/gpg/constants/data/__init__.py
deleted file mode 100644
index 8274ab9..0000000
--- a/lang/python/gpg/constants/data/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from . import encoding
-__all__ = ['encoding']
diff --git a/lang/python/gpg/constants/data/encoding.py b/lang/python/gpg/constants/data/encoding.py
deleted file mode 100644
index e76a22e..0000000
--- a/lang/python/gpg/constants/data/encoding.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_DATA_ENCODING_', globals())
-del util
diff --git a/lang/python/gpg/constants/event.py b/lang/python/gpg/constants/event.py
deleted file mode 100644
index 1b14d1d..0000000
--- a/lang/python/gpg/constants/event.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_EVENT_', globals())
-del util
diff --git a/lang/python/gpg/constants/import.py b/lang/python/gpg/constants/import.py
deleted file mode 100644
index 47c296c..0000000
--- a/lang/python/gpg/constants/import.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_IMPORT_', globals())
-del util
diff --git a/lang/python/gpg/constants/keylist/__init__.py b/lang/python/gpg/constants/keylist/__init__.py
deleted file mode 100644
index 2ce0edf..0000000
--- a/lang/python/gpg/constants/keylist/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from . import mode
-__all__ = ['mode']
diff --git a/lang/python/gpg/constants/keylist/mode.py b/lang/python/gpg/constants/keylist/mode.py
deleted file mode 100644
index 39e1819..0000000
--- a/lang/python/gpg/constants/keylist/mode.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_KEYLIST_MODE_', globals())
-del util
diff --git a/lang/python/gpg/constants/keysign.py b/lang/python/gpg/constants/keysign.py
deleted file mode 100644
index fccdbc4..0000000
--- a/lang/python/gpg/constants/keysign.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Flags for key signing
-#
-# Copyright (C) 2017 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_KEYSIGN_', globals())
-del util
diff --git a/lang/python/gpg/constants/md.py b/lang/python/gpg/constants/md.py
deleted file mode 100644
index f3e8bbd..0000000
--- a/lang/python/gpg/constants/md.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_MD_', globals())
-del util
diff --git a/lang/python/gpg/constants/pk.py b/lang/python/gpg/constants/pk.py
deleted file mode 100644
index 6bf2a21..0000000
--- a/lang/python/gpg/constants/pk.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_PK_', globals())
-del util
diff --git a/lang/python/gpg/constants/protocol.py b/lang/python/gpg/constants/protocol.py
deleted file mode 100644
index d086bbd..0000000
--- a/lang/python/gpg/constants/protocol.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_PROTOCOL_', globals())
-del util
diff --git a/lang/python/gpg/constants/sig/__init__.py b/lang/python/gpg/constants/sig/__init__.py
deleted file mode 100644
index 39d4e6e..0000000
--- a/lang/python/gpg/constants/sig/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from . import mode, notation
-__all__ = ['mode', 'notation']
diff --git a/lang/python/gpg/constants/sig/mode.py b/lang/python/gpg/constants/sig/mode.py
deleted file mode 100644
index 0f4f0ef..0000000
--- a/lang/python/gpg/constants/sig/mode.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_SIG_MODE_', globals())
-del util
diff --git a/lang/python/gpg/constants/sig/notation.py b/lang/python/gpg/constants/sig/notation.py
deleted file mode 100644
index 9a79e01..0000000
--- a/lang/python/gpg/constants/sig/notation.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Constants for signature notation data.
-#
-# Copyright (C) 2016 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_SIG_NOTATION_', globals())
-del util
diff --git a/lang/python/gpg/constants/sigsum.py b/lang/python/gpg/constants/sigsum.py
deleted file mode 100644
index 09ef9d7..0000000
--- a/lang/python/gpg/constants/sigsum.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_SIGSUM_', globals())
-del util
diff --git a/lang/python/gpg/constants/status.py b/lang/python/gpg/constants/status.py
deleted file mode 100644
index a0ad073..0000000
--- a/lang/python/gpg/constants/status.py
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-# GPGME 1.7 replaced gpgme_op_edit with gpgme_op_interact. We
-# implement gpg.Context.op_edit using gpgme_op_interact, so the
-# callbacks will be called with string keywords instead of numeric
-# status messages. Code that is using these constants will continue
-# to work.
-
-ABORT = "ABORT"
-ALREADY_SIGNED = "ALREADY_SIGNED"
-ATTRIBUTE = "ATTRIBUTE"
-BACKUP_KEY_CREATED = "BACKUP_KEY_CREATED"
-BAD_PASSPHRASE = "BAD_PASSPHRASE"
-BADARMOR = "BADARMOR"
-BADMDC = "BADMDC"
-BADSIG = "BADSIG"
-BEGIN_DECRYPTION = "BEGIN_DECRYPTION"
-BEGIN_ENCRYPTION = "BEGIN_ENCRYPTION"
-BEGIN_SIGNING = "BEGIN_SIGNING"
-BEGIN_STREAM = "BEGIN_STREAM"
-CARDCTRL = "CARDCTRL"
-DECRYPTION_FAILED = "DECRYPTION_FAILED"
-DECRYPTION_INFO = "DECRYPTION_INFO"
-DECRYPTION_OKAY = "DECRYPTION_OKAY"
-DELETE_PROBLEM = "DELETE_PROBLEM"
-ENC_TO = "ENC_TO"
-END_DECRYPTION = "END_DECRYPTION"
-END_ENCRYPTION = "END_ENCRYPTION"
-END_STREAM = "END_STREAM"
-ENTER = "ENTER"
-ERRMDC = "ERRMDC"
-ERROR = "ERROR"
-ERRSIG = "ERRSIG"
-EXPKEYSIG = "EXPKEYSIG"
-EXPSIG = "EXPSIG"
-FAILURE = "FAILURE"
-FILE_DONE = "FILE_DONE"
-FILE_ERROR = "FILE_ERROR"
-FILE_START = "FILE_START"
-GET_BOOL = "GET_BOOL"
-GET_HIDDEN = "GET_HIDDEN"
-GET_LINE = "GET_LINE"
-GOOD_PASSPHRASE = "GOOD_PASSPHRASE"
-GOODMDC = "GOODMDC"
-GOODSIG = "GOODSIG"
-GOT_IT = "GOT_IT"
-IMPORT_OK = "IMPORT_OK"
-IMPORT_PROBLEM = "IMPORT_PROBLEM"
-IMPORT_RES = "IMPORT_RES"
-IMPORTED = "IMPORTED"
-INQUIRE_MAXLEN = "INQUIRE_MAXLEN"
-INV_RECP = "INV_RECP"
-INV_SGNR = "INV_SGNR"
-KEY_CONSIDERED = "KEY_CONSIDERED"
-KEY_CREATED = "KEY_CREATED"
-KEY_NOT_CREATED = "KEY_NOT_CREATED"
-KEYEXPIRED = "KEYEXPIRED"
-KEYREVOKED = "KEYREVOKED"
-LEAVE = "LEAVE"
-MISSING_PASSPHRASE = "MISSING_PASSPHRASE"
-MOUNTPOINT = "MOUNTPOINT"
-NEED_PASSPHRASE = "NEED_PASSPHRASE"
-NEED_PASSPHRASE_PIN = "NEED_PASSPHRASE_PIN"
-NEED_PASSPHRASE_SYM = "NEED_PASSPHRASE_SYM"
-NEWSIG = "NEWSIG"
-NO_PUBKEY = "NO_PUBKEY"
-NO_RECP = "NO_RECP"
-NO_SECKEY = "NO_SECKEY"
-NO_SGNR = "NO_SGNR"
-NODATA = "NODATA"
-NOTATION_DATA = "NOTATION_DATA"
-NOTATION_FLAGS = "NOTATION_FLAGS"
-NOTATION_NAME = "NOTATION_NAME"
-PINENTRY_LAUNCHED = "PINENTRY_LAUNCHED"
-PKA_TRUST_BAD = "PKA_TRUST_BAD"
-PKA_TRUST_GOOD = "PKA_TRUST_GOOD"
-PLAINTEXT = "PLAINTEXT"
-PLAINTEXT_LENGTH = "PLAINTEXT_LENGTH"
-POLICY_URL = "POLICY_URL"
-PROGRESS = "PROGRESS"
-REVKEYSIG = "REVKEYSIG"
-RSA_OR_IDEA = "RSA_OR_IDEA"
-SC_OP_FAILURE = "SC_OP_FAILURE"
-SC_OP_SUCCESS = "SC_OP_SUCCESS"
-SESSION_KEY = "SESSION_KEY"
-SHM_GET = "SHM_GET"
-SHM_GET_BOOL = "SHM_GET_BOOL"
-SHM_GET_HIDDEN = "SHM_GET_HIDDEN"
-SHM_INFO = "SHM_INFO"
-SIG_CREATED = "SIG_CREATED"
-SIG_ID = "SIG_ID"
-SIG_SUBPACKET = "SIG_SUBPACKET"
-SIGEXPIRED = "SIGEXPIRED"
-SUCCESS = "SUCCESS"
-TOFU_STATS = "TOFU_STATS"
-TOFU_STATS_LONG = "TOFU_STATS_LONG"
-TOFU_USER = "TOFU_USER"
-TRUNCATED = "TRUNCATED"
-TRUST_FULLY = "TRUST_FULLY"
-TRUST_MARGINAL = "TRUST_MARGINAL"
-TRUST_NEVER = "TRUST_NEVER"
-TRUST_ULTIMATE = "TRUST_ULTIMATE"
-TRUST_UNDEFINED = "TRUST_UNDEFINED"
-UNEXPECTED = "UNEXPECTED"
-USERID_HINT = "USERID_HINT"
-VALIDSIG = "VALIDSIG"
diff --git a/lang/python/gpg/constants/tofu/__init__.py b/lang/python/gpg/constants/tofu/__init__.py
deleted file mode 100644
index 819a58b..0000000
--- a/lang/python/gpg/constants/tofu/__init__.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# TOFU
-#
-# Copyright (C) 2017 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from . import policy
-__all__ = ['policy']
diff --git a/lang/python/gpg/constants/tofu/policy.py b/lang/python/gpg/constants/tofu/policy.py
deleted file mode 100644
index 5a61f06..0000000
--- a/lang/python/gpg/constants/tofu/policy.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# TOFU policies
-#
-# Copyright (C) 2017 g10 Code GmbH
-#
-# This file is part of GPGME.
-#
-# GPGME is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 2.1 of the
-# License, or (at your option) any later version.
-#
-# GPGME is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-# Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, see <http://www.gnu.org/licenses/>.
-
-from __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_TOFU_POLICY_', globals())
-del util
diff --git a/lang/python/gpg/constants/validity.py b/lang/python/gpg/constants/validity.py
deleted file mode 100644
index d3c5345..0000000
--- a/lang/python/gpg/constants/validity.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright (C) 2004 Igor Belyi <belyi@users.sourceforge.net>
-# Copyright (C) 2002 John Goerzen <jgoerzen@complete.org>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# 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 __future__ import absolute_import, print_function, unicode_literals
-del absolute_import, print_function, unicode_literals
-
-from gpg import util
-util.process_constants('GPGME_VALIDITY_', globals())
-del util