Claim the packaging PEPs (and strip trailing whitespace)
This commit is contained in:
parent
0a717addf7
commit
27cfb6131a
|
@ -1,8 +1,9 @@
|
|||
PEP: 425
|
||||
Title: Compatibility Tags for Built Distributions
|
||||
Title: Compatibility Tags for Built Distributions
|
||||
Version: $Revision$
|
||||
Last-Modified: 07-Aug-2012
|
||||
Author: Daniel Holth <dholth@fastmail.fm>
|
||||
BDFL-Delegate: Nick Coghlan <ncoghlan@gmail.com>
|
||||
Status: Draft
|
||||
Type: Standards Track
|
||||
Content-Type: text/x-rst
|
||||
|
@ -216,7 +217,7 @@ Why isn't there a `.` in the Python version number?
|
|||
Who will maintain the registry of abbreviated implementations?
|
||||
New two-letter abbreviations can be requested on the python-dev
|
||||
mailing list. As a rule of thumb, abbreviations are reserved for
|
||||
the current 4 most prominent implementations.
|
||||
the current 4 most prominent implementations.
|
||||
|
||||
Does the compatibility tag go into METADATA or PKG-INFO?
|
||||
No. The compatibility tag is part of the built distribution's
|
||||
|
@ -253,7 +254,7 @@ Copyright
|
|||
This document has been placed in the public domain.
|
||||
|
||||
|
||||
|
||||
|
||||
..
|
||||
Local Variables:
|
||||
mode: indented-text
|
||||
|
|
23
pep-0426.txt
23
pep-0426.txt
|
@ -3,6 +3,7 @@ Title: Metadata for Python Software Packages 1.3
|
|||
Version: $Revision$
|
||||
Last-Modified: $Date$
|
||||
Author: Daniel Holth <dholth@fastmail.fm>
|
||||
BDFL-Delegate: Nick Coghlan <ncoghlan@gmail.com>
|
||||
Discussions-To: Distutils SIG
|
||||
Status: Draft
|
||||
Type: Standards Track
|
||||
|
@ -618,7 +619,7 @@ Summary of Differences From PEP 345
|
|||
- Extension
|
||||
- Provides-Extra
|
||||
- Setup-Requires-Dist
|
||||
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
|
@ -643,15 +644,15 @@ Python 3.3::
|
|||
|
||||
# Metadata 1.3 demo
|
||||
from email.generator import Generator
|
||||
from email import header
|
||||
from email.parser import Parser
|
||||
from email.policy import Compat32
|
||||
from email import header
|
||||
from email.parser import Parser
|
||||
from email.policy import Compat32
|
||||
from email.utils import _has_surrogates
|
||||
|
||||
class MetadataPolicy(Compat32):
|
||||
max_line_length = 0
|
||||
continuation_whitespace = '\t'
|
||||
|
||||
|
||||
def _sanitize_header(self, name, value):
|
||||
if not isinstance(value, str):
|
||||
return value
|
||||
|
@ -676,8 +677,8 @@ Python 3.3::
|
|||
Summary: A package.
|
||||
Description: Description
|
||||
===========
|
||||
|
||||
|
||||
|
||||
|
||||
A description of the package.
|
||||
|
||||
"""
|
||||
|
@ -687,9 +688,9 @@ Python 3.3::
|
|||
m['License'] = 'GPL'
|
||||
description = m['Description']
|
||||
description_lines = description.splitlines()
|
||||
m.set_payload(description_lines[0]
|
||||
+ '\n'
|
||||
+ textwrap.dedent('\n'.join(description_lines[1:]))
|
||||
m.set_payload(description_lines[0]
|
||||
+ '\n'
|
||||
+ textwrap.dedent('\n'.join(description_lines[1:]))
|
||||
+ '\n')
|
||||
del m['Description']
|
||||
|
||||
|
@ -701,7 +702,7 @@ Copyright
|
|||
|
||||
This document has been placed in the public domain.
|
||||
|
||||
|
||||
|
||||
..
|
||||
Local Variables:
|
||||
mode: indented-text
|
||||
|
|
|
@ -3,6 +3,7 @@ Title: The Wheel Binary Package Format 0.1
|
|||
Version: $Revision$
|
||||
Last-Modified: $Date$
|
||||
Author: Daniel Holth <dholth@fastmail.fm>
|
||||
BDFL-Delegate: Nick Coghlan <ncoghlan@gmail.com>
|
||||
Discussions-To: <distutils-sig@python.org>
|
||||
Status: Draft
|
||||
Type: Standards Track
|
||||
|
@ -319,7 +320,7 @@ Appendix
|
|||
========
|
||||
|
||||
Example urlsafe-base64-nopad implementation::
|
||||
|
||||
|
||||
# urlsafe-base64-nopad for Python 3
|
||||
import base64
|
||||
|
||||
|
@ -337,7 +338,7 @@ Copyright
|
|||
This document has been placed into the public domain.
|
||||
|
||||
|
||||
|
||||
|
||||
..
|
||||
Local Variables:
|
||||
mode: indented-text
|
||||
|
|
Loading…
Reference in New Issue