Blame lang/python/doc/rst/maintenance-mode.rst

Packit Service 30b792
.. _maintenance-mode:
Packit Service 30b792
Packit Service 30b792
Maintenance Mode from 2019
Packit Service 30b792
==========================
Packit Service 30b792
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| Version:        | 0.0.1                                    |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| GPGME Version:  | 1.13.0                                   |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| Author:         | Ben McGinnes <ben@gnupg.org>             |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| Language:       | Australian English, British English      |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
| xml:lang:       | en-AU, en-GB, en                         |
Packit Service 30b792
+-----------------+------------------------------------------+
Packit Service 30b792
Packit Service 30b792
From the beginning of 2019 the Python bindings to GPGME will enter
Packit Service 30b792
maintenance mode, meaning that new features will not be added and only
Packit Service 30b792
bug fixes and security fixes will be made. This also means that
Packit Service 30b792
documentation beyond that existing at the end of 2018 will not be
Packit Service 30b792
developed further except to correct errors.
Packit Service 30b792
Packit Service 30b792
Though use of these bindings appears to have been quite well received,
Packit Service 30b792
there has been no indication of what demand there is, if any for either
Packit Service 30b792
financial backing of the current Python bindings development or support
Packit Service 30b792
contracts with g10code GmbH citing the necessity of including the
Packit Service 30b792
bindings.
Packit Service 30b792
Packit Service 30b792
.. _maintenance-mode-bm:
Packit Service 30b792
Packit Service 30b792
Maintainer from 2019 onward
Packit Service 30b792
---------------------------
Packit Service 30b792
Packit Service 30b792
How does this affect the position of GnuPG Python Bindings Maintainer?
Packit Service 30b792
Packit Service 30b792
Well, I will remain as maintainer of the bindings; but without funding
Packit Service 30b792
for that position, the amount of time I will be able to dedicate solely
Packit Service 30b792
to this task will be limited and reduced to volunteered time. As with
Packit Service 30b792
all volunteered time and effort in free software projects, this will be
Packit Service 30b792
subject to numerous external imperatives.
Packit Service 30b792
Packit Service 30b792
.. _maintenance-mode-blade-runner:
Packit Service 30b792
Packit Service 30b792
Using the Python Bindings from 2019 and beyond
Packit Service 30b792
----------------------------------------------
Packit Service 30b792
Packit Service 30b792
For most, if not all, Python developers using these bindings; they will
Packit Service 30b792
continue to "just work" the same as they always have. Expansions of
Packit Service 30b792
GPGME itself are usually handled by SWIG with the existing code and thus
Packit Service 30b792
bindings are generated properly when the bindings are installed
Packit Service 30b792
alongside GPGME and when the latter is built from source.
Packit Service 30b792
Packit Service 30b792
In the rare circumstances where that is not enough to address some new
Packit Service 30b792
addition to GPGME, then that is a bug and thus subject to the
Packit Service 30b792
maintenance mode provisions (i.e. it will be fixed following a bug
Packit Service 30b792
report being raised and your humble author will need to remember where
Packit Service 30b792
the timesheet template was filed, depending on how many years off such
Packit Service 30b792
an event is).
Packit Service 30b792
Packit Service 30b792
All the GPGME functionality will continue to be accessible via the lower
Packit Service 30b792
level, dynamically generated methods which match the GPGME C
Packit Service 30b792
documentation. While the more intuitively Pythonic higher level layer
Packit Service 30b792
already covers the vast majority of functionality people require with
Packit Service 30b792
key generation, signatures, certifications (key signing), encryption,
Packit Service 30b792
decryption, verification, validation, trust levels and so on.
Packit Service 30b792
Packit Service 30b792
Any wanted features lacking in the Python bindings are usually lacking
Packit Service 30b792
because they are missing from GPGME itself (e.g. revoking keys via the
Packit Service 30b792
API) and in such cases they are usually deliberately excluded. More
Packit Service 30b792
discussion of these issues can be found in the archives of the
Packit Service 30b792
`gnupg-devel mailing
Packit Service 30b792
list <https://lists.gnupg.org/mailman/listinfo/gnupg-devel>`__.
Packit Service 30b792
Packit Service 30b792
Any features existing in the dynamically generated layer for which
Packit Service 30b792
people want a specific, higher level function included to make it more
Packit Service 30b792
Pythonic (e.g. to avoid needing to learn or memorise cryptographic mode
Packit Service 30b792
values or GnuPG status code numbers), would be a feature request and
Packit Service 30b792
*not* a bug.
Packit Service 30b792
Packit Service 30b792
It is still worthwhile requesting it, but the addition of such a feature
Packit Service 30b792
would not be guaranteed and provided on a purely volunteer basis.
Packit Service 30b792
Expediting such a request would require funding that request.
Packit Service 30b792
Packit Service 30b792
Those with a commercial interest in expediting such a feature request
Packit Service 30b792
already know how to `expedite
Packit Service 30b792
it <https://gnupg.org/cgi-bin/procdonate.cgi?mode=preset>`__ (use the
Packit Service 30b792
message field to state what feature is being requested).
Packit Service 30b792
Packit Service 30b792
.. _docs:
Packit Service 30b792
Packit Service 30b792
Documentation formats
Packit Service 30b792
---------------------
Packit Service 30b792
Packit Service 30b792
The documentation has been written in Org mode for GNU Emacs, with both
Packit Service 30b792
Texinfo and reStructuredText formats generated from that. The Texinfo
Packit Service 30b792
files are intended for use with the rest of the GnuPG documentation;
Packit Service 30b792
while the reStructuredText files are intended for use with Docutils and
Packit Service 30b792
Sphinx, as with other Python projects.
Packit Service 30b792
Packit Service 30b792
.. _sphinx-made-epubs-suck:
Packit Service 30b792
Packit Service 30b792
Cautionary Notes regarding Sphinx and EPUB
Packit Service 30b792
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit Service 30b792
Packit Service 30b792
Though Python\'s Docutils in conjunction with Sphinx is capable of
Packit Service 30b792
generating some very useful HTML sites, as proven by `Read the
Packit Service 30b792
Docs <https://readthedocs.org/>`__ and the `Python
Packit Service 30b792
documentation <https://docs.python.org/>`__, there are a number of
Packit Service 30b792
output formats it does not handle well. At the top of the list of things
Packit Service 30b792
it manages to break so atrociously as to be embarassing is the `EPUB
Packit Service 30b792
3 <http://idpf.org/epub>`__ format.
Packit Service 30b792
Packit Service 30b792
The automatically generated EPUB of the CPython documentation always
Packit Service 30b792
contains hundreds of validation errors and even the modest amount of
Packit Service 30b792
documentation here `produced a
Packit Service 30b792
file <https://files.au.adversary.org.s3.amazonaws.com/crypto/gpgme-python/rst/epub/GPGMEPythonBindings.epub>`__
Packit Service 30b792
with approximately thirty validation errors. As the volume of
Packit Service 30b792
documentation content increases, so does the induced errors. Whereas
Packit Service 30b792
Texinfo doesn\'t produce EPUB output at all, nor does Org-mode.
Packit Service 30b792
Packit Service 30b792
Should there ever be genuine demand for this format, lodge a `feature
Packit Service 30b792
request <https://dev.gnupg.org/maniphest/task/edit/form/4/>`__ case
Packit Service 30b792
marked for `my <https://dev.gnupg.org/p/BenM/>`__ attention. The means
Packit Service 30b792
of generating such files flawlessly is already available, but is not yet
Packit Service 30b792
part of the GnuPG build system. Nor is it integrated with a means of
Packit Service 30b792
converting Org mode input files to the relevant base format
Packit Service 30b792
automatically, as can already be done when converting Org to
Packit Service 30b792
reStructuredText or Org to Texinfo. As a certain amount of work would be
Packit Service 30b792
required to get it done, there would need to be clear demand for that
Packit Service 30b792
work to be done.