From 43a2b5754571292b25402e20cd044ebda9316c77 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Fri, 29 Jun 2018 14:26:30 +1000 Subject: [PATCH] python bindings: python 3.7 * Bindings confirmed to work with the newly released 3.7.0. * Updated M4 file to reflect this change and correct the Python binary search order (3.7 is not yet given priority, but will still be found first via the more generic python3 executable). * Updated setup.py.in, bindings documentation and README to reflect this. --- lang/python/README | 4 ++-- lang/python/README.org | 4 ++-- lang/python/docs/GPGMEpythonHOWTOen.org | 8 ++++++-- lang/python/setup.py.in | 1 + m4/python.m4 | 8 ++++++-- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/lang/python/README b/lang/python/README index 99da4dd7..aadf980c 100644 --- a/lang/python/README +++ b/lang/python/README @@ -44,8 +44,8 @@ functionality of the underlying library. ═════════ PyME was created by John Goerzen, and maintained, developed, and - cherished by Igor Belyi, Martin Albrecht, Ben McGinnes, and everyone - who contributed to it in any way. + cherished by Igor Belyi, Martin Albrecht, Ben McGinnes, Justus + Winter, and everyone who contributed to it in any way. In 2016 we merged a port of PyME to into the GPGME repository, and development will continue there. Please see the VCS history for the diff --git a/lang/python/README.org b/lang/python/README.org index cba99669..df6c63d9 100644 --- a/lang/python/README.org +++ b/lang/python/README.org @@ -27,8 +27,8 @@ Please report bugs using our bug tracker * Authors PyME was created by John Goerzen, and maintained, developed, and -cherished by Igor Belyi, Martin Albrecht, Ben McGinnes, and everyone -who contributed to it in any way. +cherished by Igor Belyi, Martin Albrecht, Ben McGinnes, Justus Winter, +and everyone who contributed to it in any way. In 2016 we merged a port of PyME to into the GPGME repository, and development will continue there. Please see the VCS history for the diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org index 6a3f9db0..5fa01365 100644 --- a/lang/python/docs/GPGMEpythonHOWTOen.org +++ b/lang/python/docs/GPGMEpythonHOWTOen.org @@ -14,7 +14,7 @@ :CUSTOM_ID: intro :END: - | Version: | 0.1.1 | + | Version: | 0.1.2 | | Author: | Ben McGinnes | | Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D | | Language: | Australian English, British English | @@ -247,7 +247,7 @@ =python=, =python2= and =python2.7=. For Python 3 it checks for these executables in this order: - =python3=, =python3.6=, =python3.5= and =python3.4=. + =python3=, =python3.6=, =python3.5=, =python3.4= and =python3.7=.[fn:4] *** Installing GPGME @@ -1777,3 +1777,7 @@ keyservers for "gnupg.org" produces over 400 results, the majority of which aren't actually at the gnupg.org domain, but just included a comment regarding the project in their key somewhere. + +[fn:4] As Python 3.7 is a very recent release, it is not given +priority over 3.6 yet, but will probably be prioritised by the release +of Python 3.7.2. diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in index 2595073f..0622b614 100755 --- a/lang/python/setup.py.in +++ b/lang/python/setup.py.in @@ -246,6 +246,7 @@ setup(name="gpg", 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Topic :: Communications :: Email', diff --git a/m4/python.m4 b/m4/python.m4 index 822b2ddf..db7b4822 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -39,8 +39,12 @@ AC_DEFUN([AM_PATH_PYTHON], m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python2 python2.7 dnl python dnl - python3 python3.0 python3.1 python3.2 python3.3 dnl - python3.4 python3.5 python3.6 python3.7 python3.8]) + dnl old listing was pointless since biundings only work from Python 3.4: + dnl python3 python3.0 python3.1 python3.2 python3.3 + dnl move 3.7 to the front once 3.7.1 or 3.7.2 is released: + dnl python3 python3.7 python3.6 python3.5 python3.4 python3.8]) + dnl until then: + python3 python3.6 python3.5 python3.4 python3.7 python3.8]) AC_ARG_VAR([PYTHON], [the Python interpreter])