mozilla/configman — pull request #57 by peterbe (2012-08-29 22:59:14+00:00)
Title: no import of configman in setup.py but still available as __version__

To quote of the Gods of packaging:

*"DO NOT import your package from your setup.py as suggested in another answer here: it will seem to work for you (because you already have your package's dependencies installed), but it will wreak havoc upon new users of your package, as they will not be able to install your package without manually installing the dependencies first."*

http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package

This felt like the most practical solution such that we...:

* can get the version number available in `setup.py`
* only have to maintain it in one place
* able to do things like `>>> import configman; configman.__version__` in run-time configman

If you can think of a better way of doing it, I'm all ears.

BTW, without this fix, running `tox` is unreliable since that depends on using `setup.py` to install configman and then running nosetests on it.