fontforge/fontforge — pull request #88 by dmeranda (2012-09-10 06:55:00+00:00)
Title: Add __version__ and __date__ to python modules.

This adds standard Python metadata variables to the python extension modules "fontforge" and "psMat". In particular it adds "__version__" and "__date__". This will work with both python 2 and 3.

This patch does not alter the return value of the fontforge.version() function (yet?).

For FF version 1.0 (those using the date as the effective "version"), the variables will look like:
````python
fontforge.__version__ = '1.0.20120731'
fontforge.__date__ = '2012-07-31'
````

For FF version 2.0+ (starting with the "autotools" merge) the datestamp is dropped from the version:
````python
fontforge.__version__ = '2.0'
fontforge.__date__ = '2012-09-10'
````
For information, the "__date__" by convention is given in ISO-8601 format (YYYY-MM-DD). The "__version__" is a little more structured, and follows Python PEP 396 and 386: