libgit2/pygit2 — pull request #128 by wking (2012-09-13 12:02:01+00:00)
Title: Add 'pygit2.__version__' for easy access from client software.

Moved the hardcoded version from `setup.py` to `pygit2/__init__.py` so client software can figure out which version of pygit2 it's using. Having `setup.py` import `pygit2.__version__` removes duplication, but it also means that you'll need `_pygit2` installed somewhere in order to run `setup.py`. If this is unacceptable, I can alter `setup.py` to `open()` `pygit2/__init__.py` and extract the version string without needing a full import.