[Python-checkins] peps: pep-0426: add generator field
daniel.holth
python-checkins at python.org
Sat Jul 6 22:39:00 CEST 2013
http://hg.python.org/peps/rev/cc4da4be3838
changeset: 4979:cc4da4be3838
user: Daniel Holth <dholth at fastmail.fm>
date: Sat Jul 06 16:38:22 2013 -0400
summary:
pep-0426: add generator field
files:
pep-0426.txt | 12 ++++++++++++
pep-0426/pymeta-schema.json | 5 +++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/pep-0426.txt b/pep-0426.txt
--- a/pep-0426.txt
+++ b/pep-0426.txt
@@ -415,6 +415,7 @@
fields:
* ``metadata_version``
+* ``generator``
* ``name``
* ``version``
* ``source_label``
@@ -502,6 +503,17 @@
"metadata_version": "2.0"
+Generator
+---------
+
+Name (and optional version) of the program that generated the file,
+if any. A manually produced file would omit this field.
+
+Example::
+
+ "generator": "setuptools (0.8)"
+
+
Name
----
diff --git a/pep-0426/pymeta-schema.json b/pep-0426/pymeta-schema.json
--- a/pep-0426/pymeta-schema.json
+++ b/pep-0426/pymeta-schema.json
@@ -9,6 +9,11 @@
"type": "string",
"pattern": "^(\\d+(\\.\\d+)*)$"
},
+ "generator": {
+ "description": "Name and version of the program that produced this file.",
+ "type": "string",
+ "pattern": "^[0-9A-Za-z]([0-9A-Za-z_.-]*[0-9A-Za-z])( \\((\\d+(\\.\\d+)*)((a|b|c|rc)(\\d+))?(\\.(post)(\\d+))?(\\.(dev)(\\d+))\\))?$"
+ },
"name": {
"description": "The name of the distribution.",
"type": "string",
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list