bindings: python: add the __version__ module attribute
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 2 Apr 2020 08:11:23 +0000 (10:11 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 2 Apr 2020 09:02:20 +0000 (11:02 +0200)
commit7f30548da656b9a6092e441b1179b4dbd7472a21
tree7d603b6ff560880653cfe17c509e945905e60bcc
parentc89e9565cf37fee0f917abaacc8e87880c76d27c
bindings: python: add the __version__ module attribute

The python module provides the version_string() function that returns
the API version but the standard way to do this according to PEP 396
is by providing the __version__ attribute at the module level.

Add __version__ constant to gpiod module and mark version_string() as
deprecated in the doc.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/python/gpiodmodule.c