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