Auto-add revision information to __version__?

@astrofrog is there an easy way to automatically assign a unique and "valid" value for `__version__` for each commit? It would help when trying to reproduce bugs