On Fri, Jan 29, 2010 at 10:54 PM, Barry Warsaw <ba...@python.org> wrote:
[..]
>
> * One place to bump version numbers
> * Available from setup.py without importing from the package

So yes, setup.cfg would work here.

> * Available from the package's namespace

Yes, that's how Jinja does already for example, using Setuptools's
pkg_resources :

__version__ = __import__('pkg_resources').get_distribution('Jinja2').version

see http://dev.pocoo.org/projects/jinja/browser/jinja2/__init__.py

Notice that this pkg_resources browsing feature would be in Distutils
once PEP 376 is accepted, so until then, I could probably backport in
Distribute the setup.cfg feature.

Tarek
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to