Try using versioneer.

See https://github.com/warner/python-versioneer.

Open questions:
 - Python 3?
 - [PEP 440](https://www.python.org/dev/peps/pep-0440/) compliant versions