astropy/astropy — pull request #12 by iguananaut (2011-10-13 19:23:40+00:00)
Title: Fix setup version

This request illustrates my proposed solution to issue #8. There's plenty of room here for massaging, but I wanted to put something up as a starting point.

This fix has 3 advantages over the current situation:

* version.py is updated for commands besides build, such as sdist
* the base version string is kept in the setup.py, which is the first place where most people and tools will look for it
* the revision number is automatically updated on each astropy import if the package is installed in develop mode