[Python-checkins] peps: PEP 426: extensions are 0..1

daniel.holth python-checkins at python.org
Sun Mar 10 19:33:15 CET 2013


http://hg.python.org/peps/rev/4fc7b84ee3e7
changeset:   4790:4fc7b84ee3e7
user:        Daniel Holth <dholth at fastmail.fm>
date:        Sun Mar 10 13:34:21 2013 -0400
summary:
  PEP 426: extensions are 0..1

files:
  pep-0426.txt |  16 +++++++++++-----
  1 files changed, 11 insertions(+), 5 deletions(-)


diff --git a/pep-0426.txt b/pep-0426.txt
--- a/pep-0426.txt
+++ b/pep-0426.txt
@@ -2,7 +2,7 @@
 Title: Metadata for Python Software Packages 2.0
 Version: $Revision$
 Last-Modified: $Date$
-Author: Daniel Holth <dholth at fastmail.fm>,
+Author: Daniel Holth <dholth at gmail.com>,
         Donald Stufft <donald at stufft.io>,
         Nick Coghlan <ncoghlan at gmail.com>
 BDFL-Delegate: Nick Coghlan <ncoghlan at gmail.com>
@@ -527,13 +527,22 @@
 An ASCII string, not containing whitespace or the ``/`` character, that
 indicates the presence of extended metadata. The additional fields
 defined by the extension are then prefixed with the name of the extension
-and the ``/`` character.
+and the ``/`` character. The additional fields are optional (0..1).
 
 For example::
 
     Extension: Chili
     Chili/Type: Poblano
     Chili/Heat: Mild
+    Chili/json: { 
+        "type" : "Poblano", 
+        "heat" : "Mild" }
+
+The special ``{extension name}/json`` permits embedded JSON. It may be
+parsed automatically by a future tool.
+
+Values in extension fields must still respect the general formatting
+requirements for metadata headers.
 
 To avoid name conflicts, it is recommended that distribution names be used
 to identify metadata extensions. This practice will also make it easier to
@@ -543,9 +552,6 @@
 ``Extension: Chili`` field may appear before or after the corresponding
 extension fields ``Chili/Type:`` etc.
 
-Values in extension fields must still respect the general formatting
-requirements for metadata headers.
-
 A bare ``Extension: Name`` entry with no corresponding extension fields is
 permitted. It may, for example, indicate the expected presence of an
 additional metadata file rather than the presence of extension fields.

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list