[Distutils] Static metadata using setup.cfg

Hanno Schlichting hanno at hannosch.eu
Mon Aug 17 11:48:24 CEST 2009


On Mon, Aug 17, 2009 at 9:34 AM, Tarek Ziadé<ziade.tarek at gmail.com> wrote:
> Following the discussion on the format of the static metadata file,
> it's evident for me that it has to be a ConfigParser file.

Big +1

> I am proposing the current scheme (applying it in this precise order):
>
> 1/ if the value contains '\n' signs, it's a  list and values are
> splitted using \n, then each element is left stripped
>   (not sure yet if we want to right strip them too)
>
> 2/ if the value contains ',' signs, it's a list and values are
> splitted using ','    (not sure yet if we want to strip them)
> 3/ else, it's a value

I'd generally prefer a full strip() on list entries. People tend to
put trailing whitespace into files without noticing it too much. The
number of whitespace fanatics is certainly larger in Python cycles,
but not among casual developers.

Hanno


More information about the Distutils-SIG mailing list