metadata 1.3 edits
This commit is contained in:
parent
2270cb831f
commit
6a93f82c5d
20
pep-0426.txt
20
pep-0426.txt
|
@ -33,9 +33,9 @@ Metadata Files
|
||||||
|
|
||||||
The syntax defined in this PEP is for use with Python distribution
|
The syntax defined in this PEP is for use with Python distribution
|
||||||
metadata files. The file format is a simple UTF-8 encoded Key: value
|
metadata files. The file format is a simple UTF-8 encoded Key: value
|
||||||
format with no line length parsable by the ``email`` module with an
|
format with no maximum line length. It is parsable by the ``email``
|
||||||
appropriate ``email.policy.Policy()``. The field names listed in the
|
module with an appropriate ``email.policy.Policy()``. The field names
|
||||||
`Fields`_ section are used as the header names.
|
listed in the `Fields`_ section are used as the header names.
|
||||||
|
|
||||||
There are two standard locations for these metadata files:
|
There are two standard locations for these metadata files:
|
||||||
|
|
||||||
|
@ -52,9 +52,9 @@ binary distribution archive format).
|
||||||
Encoding
|
Encoding
|
||||||
========
|
========
|
||||||
|
|
||||||
Metadata 1.3 files are UTF-8, with the restriction that keys must be
|
Metadata 1.3 files are UTF-8 with the restriction that keys must be
|
||||||
ASCII. Parsers should be aware that older versions of the Metadata
|
ASCII. Parser implementations should be aware that older versions of
|
||||||
specification do not specify an encoding.
|
the Metadata specification do not specify an encoding.
|
||||||
|
|
||||||
Fields
|
Fields
|
||||||
======
|
======
|
||||||
|
@ -560,10 +560,10 @@ Here are some example of fields using such markers::
|
||||||
Requires-Dist: bar; python_version == '2.4' or python_version == '2.5'
|
Requires-Dist: bar; python_version == '2.4' or python_version == '2.5'
|
||||||
Requires-External: libxslt; 'linux' in sys.platform
|
Requires-External: libxslt; 'linux' in sys.platform
|
||||||
|
|
||||||
The micro-language behind this is the simplest possible: it compares only
|
The micro-language behind this is a simple subset of Python: it compares
|
||||||
strings, with the ``==`` and ``in`` operators (and their opposites), and
|
only strings, with the ``==`` and ``in`` operators (and their opposites),
|
||||||
with the ability to combine expressions. Parethesis are also supported for
|
and with the ability to combine expressions. Parenthesis are supported
|
||||||
grouping.
|
for grouping.
|
||||||
|
|
||||||
The pseudo-grammar is ::
|
The pseudo-grammar is ::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue