[Python-Dev] no consensus on static metadata (original) (raw)

Chris Withers chris at simplistix.co.uk
Fri Oct 9 17:32:05 CEST 2009


Tarek Ziadé wrote:

== The fate of setup.py, and static metadata ==

So we are going to separate the metadata description from setup.py, in a static configuration file, that can be open and read by anyone without running any code.

So we've worked on that lately in Distutils-SIG and came up with a micro-language, based on a ConfigParser file, that allows writing metadata fields that depends on sys.platform etc. I won't detail the syntax here but the idea is that the interpretation of this file can be done with a vanilla Python without running arbitrary code.

I don't understand how the above two paragraphs are compatible.

So I am adding this in Distutils for 2.7.

NB: There was no consensus on this "micro-language" on distutils-sig. While I suspect I don't care as none of my packages rely on anything other than other python packages, others did care, and I found the syntax Tarek was proposing pretty clumsy.

Does the PEP386 or the changes you're proposing for PEP314 cater for the extra_requires stuff in setuptools? I know I use that quite heavily and I'm not the only one...

-- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk



More information about the Python-Dev mailing list