docs: Python howto update
* lang/python/docs/GPGMEpythonHOWTOen.org: Added corresponding GPGME version number to table at the start and cut the shortcut from the groups.py example. * doc/gpgme-python-howto.texi: New export of Texinfo file for docs build.
This commit is contained in:
parent
93a2ea0207
commit
7e9df9b9e3
@ -66,7 +66,7 @@ Known Issues
|
|||||||
* Breaking Builds::
|
* Breaking Builds::
|
||||||
* Multiple installations::
|
* Multiple installations::
|
||||||
* Won't Work With Windows::
|
* Won't Work With Windows::
|
||||||
* I don't like SWIG, Use CFFI instead: I don't like SWIG Use CFFI instead.
|
* I don't like SWIG, Use CFFI instead: I don't like SWIG Use CFFI instead.
|
||||||
|
|
||||||
Fundamentals
|
Fundamentals
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ Miscellaneous work-arounds
|
|||||||
|
|
||||||
Copyright and Licensing
|
Copyright and Licensing
|
||||||
|
|
||||||
* Copyright (C) The GnuPG Project, 2018: Copyright (C) The GnuPG Project 2018.
|
* Copyright (C) The GnuPG Project, 2018: Copyright (C) The GnuPG Project 2018.
|
||||||
* License GPL compatible::
|
* License GPL compatible::
|
||||||
|
|
||||||
@end detailmenu
|
@end detailmenu
|
||||||
@ -138,6 +138,8 @@ Copyright and Licensing
|
|||||||
@multitable {aaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
|
@multitable {aaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
|
||||||
@item Version:
|
@item Version:
|
||||||
@tab 0.1.4
|
@tab 0.1.4
|
||||||
|
@item GPGME Version:
|
||||||
|
@tab 1.12.0-draft
|
||||||
@item Author:
|
@item Author:
|
||||||
@tab Ben McGinnes <ben@@gnupg.org>
|
@tab Ben McGinnes <ben@@gnupg.org>
|
||||||
@item Author GPG Key:
|
@item Author GPG Key:
|
||||||
@ -279,12 +281,9 @@ version 3.0 (or any later version).
|
|||||||
@subsection The PyME package maintained by Martin Albrecht
|
@subsection The PyME package maintained by Martin Albrecht
|
||||||
|
|
||||||
This package is the origin of these bindings, though they are somewhat
|
This package is the origin of these bindings, though they are somewhat
|
||||||
different now. For details of when and how the PyME package was folded
|
different now. For details of when and how the PyME package was
|
||||||
back into GPGME itself see the @emph{Short History}
|
folded back into GPGME itself see the @emph{Short History} document@footnote{@samp{Short_History.org} and/or @samp{Short_History.html}.}
|
||||||
document@footnote{@samp{lang/python/docs/Short_History.org} and/or
|
in the Python bindings @samp{docs} directory.@footnote{The @samp{lang/python/docs/} directory in the GPGME source.}
|
||||||
@samp{lang/python/docs/Short_History.html}.} in the Python bindings
|
|
||||||
@samp{docs} directory.@footnote{The @samp{lang/python/docs/} directory
|
|
||||||
in the GPGME source.}
|
|
||||||
|
|
||||||
The PyME package was first released in 2002 and was also the first
|
The PyME package was first released in 2002 and was also the first
|
||||||
attempt to implement a low level binding to GPGME. In doing so it
|
attempt to implement a low level binding to GPGME. In doing so it
|
||||||
@ -391,7 +390,7 @@ they be encountered.
|
|||||||
* Breaking Builds::
|
* Breaking Builds::
|
||||||
* Multiple installations::
|
* Multiple installations::
|
||||||
* Won't Work With Windows::
|
* Won't Work With Windows::
|
||||||
* I don't like SWIG, Use CFFI instead: I don't like SWIG Use CFFI instead.
|
* I don't like SWIG, Use CFFI instead: I don't like SWIG Use CFFI instead.
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
@node Breaking Builds
|
@node Breaking Builds
|
||||||
@ -2073,8 +2072,13 @@ information in Python.
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
if sys.platform == "win32":
|
||||||
|
gpgconfcmd = "gpgconf.exe --list-options gpg"
|
||||||
|
else:
|
||||||
|
gpgconfcmd = "gpgconf --list-options gpg"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
|
lines = subprocess.getoutput(gpgconfcmd).splitlines()
|
||||||
except:
|
except:
|
||||||
process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE)
|
process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE)
|
||||||
procom = process.communicate()
|
procom = process.communicate()
|
||||||
@ -2121,7 +2125,7 @@ Neomutt mail clients.
|
|||||||
@chapter Copyright and Licensing
|
@chapter Copyright and Licensing
|
||||||
|
|
||||||
@menu
|
@menu
|
||||||
* Copyright (C) The GnuPG Project, 2018: Copyright (C) The GnuPG Project 2018.
|
* Copyright (C) The GnuPG Project, 2018: Copyright (C) The GnuPG Project 2018.
|
||||||
* License GPL compatible::
|
* License GPL compatible::
|
||||||
@end menu
|
@end menu
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
:END:
|
:END:
|
||||||
|
|
||||||
| Version: | 0.1.4 |
|
| Version: | 0.1.4 |
|
||||||
|
| GPGME Version: | 1.12.0-draft |
|
||||||
| Author: | Ben McGinnes <ben@gnupg.org> |
|
| Author: | Ben McGinnes <ben@gnupg.org> |
|
||||||
| Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D |
|
| Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D |
|
||||||
| Language: | Australian English, British English |
|
| Language: | Australian English, British English |
|
||||||
@ -1982,8 +1983,13 @@ information in Python.
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
if sys.platform == "win32":
|
||||||
|
gpgconfcmd = "gpgconf.exe --list-options gpg"
|
||||||
|
else:
|
||||||
|
gpgconfcmd = "gpgconf --list-options gpg"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
|
lines = subprocess.getoutput(gpgconfcmd).splitlines()
|
||||||
except:
|
except:
|
||||||
process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE)
|
process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE)
|
||||||
procom = process.communicate()
|
procom = process.communicate()
|
||||||
|
Loading…
Reference in New Issue
Block a user