[Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

Tarek Ziadé ziade.tarek at gmail.com
Tue Dec 22 01:25:15 CET 2009


On behalf of the Distutils-SIG, I would like to propose to addition of
PEP 345 (once and *if* PEP 386 is accepted).

It's the metadata v1.2: http://www.python.org/dev/peps/pep-0345/

PEP 345 was initiated a while ago by Richard Jones, and reworked since
then together with PEP 386, at Pycon last year and in Distutils-SIG.

The major enhancements are:

- being able to express dependencies on other *distributions* names,
rather than packages names or modules names. This
  enhancement comes from Setuptools and has been used successfully for
years by the community.

- being able to express some fields which values are specific to some
platforms. For example, being able to define "pywin32"
  as a dependency *only* on win32. This enhancement will allow any
tool to query PyPI and to get the metadata for a particular
  execution context, without having to download, build, or install the
project itself.

- being able to provide a list of browsable URLs for the project, like
a bug tracker, a repository etc,  in addition to the home url.
  This will allow UIs like PyPI to display a list of URLs for a
project. A side-effect will be that a project maintainer will be able
to drive its
  end users to the right places when they need to find detailed
documentation or provide some feedback. This enhancement
  was driven by the discussions about the rating/comment system at
PyPI on catalog-sig.

We believe that having PEP 386 and PEP 345 accepted will be a major
improvement for the Python packaging eco-system. The next PEP in the
series we are working on is PEP 376.

As a side note, I would really like to see them (hopefully) accepted
before the first beta of Python 2.7 so we can add these features in
2.7/3.2 and start to work on third-party tools (Distribute, Pip, a
standalone version of Distutils for 2.6/2.5, etc..) to get ready to
support them by the time 2.7 final is out.


Tarek Ziadé | http://ziade.org

More information about the Python-Dev mailing list