[Python-Dev] Distutils ML wrap-up: setup.cfg new format
mal at egenix.com
Wed Sep 23 09:49:16 CEST 2009
Tarek Ziadé wrote:
> Here's a wrapup of the Distutils-SIG discussion
> we had on the "static metadata" topic.
> I realize that it's a good thing to send in.
> python-dev such wrapup on distutils design
> decisions, to keep everyone informed and get
> more feedback when required.
> I will try to do it for every upcoming changes
> that are not going in a PEP process (when it's not
> a 'big' change). The rate of such mails should
> not be very high. (around 1 mail in python-dev
> for +150 mails in distutils-SIG)
> If you feel that what we are about to change in distutils
> is wrong, you can go ahead and help us by participating
> in Distutils-ML, so we keep one and only one media
> for these discussions.
> The four sentences summary for people in a hurry:
> Getting metadata of a distribution that is not.
> installed means running its setup.py. This means.
> downloading the whole archive, and running.
> third party code on your system.
> To avoid it, we are adding a [setup] section in.
> setup.cfg where you can express the package metadata
> Conditional sections, specific to some system.
> can be added to add some specific fields in [setup].
> At the end, you will be able to get metadata fields
> without running any third-party code, and possibly
> get only the distribution setup.cfg for this.
While it's a good idea to put up some form of meta-data
into an index, I wonder why you are using setup.cfg
setup.cfg has traditionally been used to configure distutils,
not to define meta-data. As such you wouldn't want to
put such a configuration file up on PyPI.
Wouldn't it be better use a new file for this (with the
same syntax), e.g. metadata.cfg ?! This would then just
contain the meta data that needs to be published.
Professional Python Services directly from the Source (#1, Sep 23 2009)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-Dev