Justus Winter
|
1f318b7aaa
|
python: Add an idiomatic interface.
* configure.ac: Bump required Python version.
* lang/python/pyme/__init__.py: Update docstring. Import Context and
Data.
* lang/python/pyme/core.py (Context.encrypt): New function.
(Context.decrypt): Likewise.
(Context.sign): Likewise.
(Context.verify): Likewise.
* lang/python/pyme/errors.py: Add new errors.
* lang/python/pyme/util.py (process_constants): Rework and return the
inserted keys.
* lang/python/tests/Makefile.am (EXTRA_DIST): Add new keys.
* lang/python/tests/encrypt-only.asc: New file.
* lang/python/tests/sign-only.asc: Likewise.
* lang/python/tests/initial.py: Mark key 'Alpha' as trusted, import
new keys.
* lang/python/tests/support.py: Add fingerprints of known keys.
(in_srcdir): New function.
(print_data): Handle bytes too.
(mark_key_trusted): New function.
* lang/python/tests/t-decrypt-verify.py: Adjust test. Test idiomatic
interface.
* lang/python/tests/t-decrypt.py: Test idiomatic interface.
* lang/python/tests/t-encrypt-sign.py: Likewise.
* lang/python/tests/t-encrypt-sym.py: Likewise.
* lang/python/tests/t-encrypt.py: Likewise.
* lang/python/tests/t-idiomatic.py: Simplify.
* lang/python/tests/t-keylist.py: Adjust to newly trusted key.
* lang/python/tests/t-sign.py: Likewise. Test idiomatic interface.
* lang/python/tests/t-signers.py: Likewise.
* lang/python/tests/t-verify.py: Likewise.
Signed-off-by: Justus Winter <justus@g10code.com>
|
2016-07-15 18:28:09 +02:00 |
|
Justus Winter
|
2055a63605
|
python: Drop obsolete VCS keywords.
--
Signed-off-by: Justus Winter <justus@g10code.com>
|
2016-06-06 14:16:01 +02:00 |
|
Justus Winter
|
7bc9cc717e
|
python: Make all GnuPG errors available.
* lang/python/Makefile.am (errors.i): Generate file.
* lang/python/gpgme.i: Include generated file.
* lang/python/pyme/errors.py: Pull in all errors and error sources.
Signed-off-by: Justus Winter <justus@gnupg.org>
|
2016-05-24 18:00:16 +02:00 |
|
Justus Winter
|
c5d118b2a7
|
python: Raise exceptions on write errors.
* lang/python/pyme/core.py (Data.write): Handle errors.
* lang/python/pyme/errors.py (GPGMEError.fromSyserror): New function.
Signed-off-by: Justus Winter <justus@gnupg.org>
|
2016-05-12 18:01:24 +02:00 |
|
Justus Winter
|
aade53a12b
|
python: Delete trailing whitespace.
--
Signed-off-by: Justus Winter <justus@gnupg.org>
|
2016-05-10 13:30:30 +02:00 |
|
Justus Winter
|
f4ba16b31e
|
python: Rename bindings.
--
Signed-off-by: Justus Winter <justus@gnupg.org>
|
2016-05-10 13:19:26 +02:00 |
|