pep-0426: add generator field

This commit is contained in:
Daniel Holth 2013-07-06 16:38:22 -04:00
parent b4738085d0
commit 41d43d2d53
2 changed files with 17 additions and 0 deletions

View File

@ -415,6 +415,7 @@ The essential dependency resolution metadata consists of the following
fields:
* ``metadata_version``
* ``generator``
* ``name``
* ``version``
* ``source_label``
@ -502,6 +503,17 @@ Example::
"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
----

View File

@ -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",