Re: uses for setup.cfg and extracting data from it

2009-09-16 Thread Ben Finney
"P.J. Eby" writes: > http://docs.python.org/distutils/apiref.html#module-distutils.core - > specifically the run_setup() function. (It appears the docs do not > have link anchors for individual functions, alas.) http://docs.python.org/distutils/apiref.html#distutils.core.run_setup> Sphinx (th

Re: uses for setup.cfg and extracting data from it

2009-09-11 Thread Ben Finney
"P.J. Eby" writes: > If you're talking about setup.py, all you need to do is use the > distutils functions that allow you to run a setup.py without executing > any of its commands. Specifically, I want to programmatically access the metadata that is held in the arguments to the ‘distutils.setup(

Re: uses for setup.cfg and extracting data from it

2009-09-09 Thread Ben Finney
Chris Withers writes: > Do people generally source control their package's setup.cfg? Yes. I prefer the distribution metadata to be declarative, for the reasons you touch on later in your message. So where it makes sense I store it in ‘setup.cfg’ or some other declarative file, and put it under