On Jan 29, 2010, at 06:53 PM, P.J. Eby wrote:
At 04:05 PM 1/29/2010 -0500, Barry Warsaw wrote:
The important thing is to have exactly one place to set
the package's version number.
Put it in setup.py, then. If you absolutely must have a __version__
at runtime, use this to extract it from the
On Jan 29, 2010, at 11:03 PM, Tarek Ziadé wrote:
Yes, that's how Jinja does already for example, using Setuptools's
pkg_resources :
__version__ = __import__('pkg_resources').get_distribution('Jinja2').version
And that's different yet again from what PJE suggests. This is screaming for
a
At 07:08 PM 1/30/2010 -0500, Barry Warsaw wrote:
On Jan 29, 2010, at 11:03 PM, Tarek Ziadé wrote:
Yes, that's how Jinja does already for example, using Setuptools's
pkg_resources :
__version__ = __import__('pkg_resources').get_distribution('Jinja2').version
And that's different yet again
Hi Tarek,
For metadata fields like version, one option I am working on in
Distutils itself is to have a complementary section in the static
setup.cfg file, where you can set some fields:
[setup]
name=foo
version=1.9.8
Interesting.
Well it was discussed on the mailing list