-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Infra: Add directives to show warning banner for deprecated PEPs #3682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
754db5e
Add directives to show warning banner for deprecated PEPs
hugovk d5cf328
Apply directives
hugovk 20ed22a
Add directive to show warning banner for superseded PEP
hugovk e5f451f
Apply directive
hugovk 87ea181
Remove redundant Abandoned directive
hugovk 78b0634
Include "This PEP has been superseded by PEP xxx" in directive template
hugovk ac2c015
PEP 3: Intro section is withdrawal notice
hugovk efd0955
PEP 3: ... and de-duplicate
hugovk 48cb093
PEP 42: update links
hugovk 2e41ad9
PEP 216: rejection by author is really withdrawal
hugovk c131de6
PEP 216: rejection by author is really withdrawal
hugovk 08fbdec
PEP 224: Add reference to rejection section
hugovk ccd3192
PEP 224: Fix reference and link from banner
hugovk ec983b0
PEP 239: Fix banner text
hugovk 5169af7
PEP 242: rejection by author is really withdrawal
hugovk aba6113
PEP 426: first section is withdrawal notice
hugovk 5cb05c2
PEP 363: link to rejection discussion from banner
hugovk 6d3e572
PEP 426: ... and de-duplicate
hugovk afa418d
Move common directive logic into a subclass
hugovk f56fcd9
Merge branch 'main' into deprecated-directives
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,27 +3,16 @@ Title: Guidelines for Handling Bug Reports | |
Author: Jeremy Hylton <[email protected]> | ||
Status: Withdrawn | ||
Type: Process | ||
Content-Type: text/x-rst | ||
Created: 25-Sep-2000 | ||
Post-History: | ||
|
||
|
||
Introduction | ||
============ | ||
|
||
This PEP contained guidelines for handling bug reports in the Python | ||
bug tracker. It has been replaced by the Developer's Guide | ||
description of issue triaging at | ||
|
||
:: | ||
|
||
https://docs.python.org/devguide/triaging.html | ||
|
||
Guidelines for people submitting Python bugs are at | ||
|
||
:: | ||
|
||
http://docs.python.org/bugs.html | ||
.. withdrawn:: | ||
This PEP contained guidelines for handling bug reports in the Python | ||
bug tracker. It has been replaced by the | ||
`Developer's Guide description of issue triaging | ||
<https://devguide.python.org/triage/triaging/index.html>`_. | ||
Guidelines for people submitting Python bugs are `in the Python docs | ||
<http://docs.python.org/bugs.html>`__. | ||
|
||
Original Guidelines | ||
=================== | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
PEP: 9 | ||
Title: Sample Plaintext PEP Template | ||
Version: $Revision$ | ||
Last-Modified: $Date$ | ||
Author: Barry Warsaw <[email protected]> | ||
Status: Withdrawn | ||
Type: Process | ||
Content-Type: text/x-rst | ||
Created: 14-Aug-2001 | ||
Post-History: | ||
Resolution: https://mail.python.org/archives/list/[email protected]/thread/2YMHVPRDWGQLA5A2FKXE2JMLM2HQEEGW/ | ||
|
||
.. withdrawn:: | ||
As of 05-Jan-2016, this PEP is officially deprecated and replaced | ||
by :pep:`12`. All PEPs should now use the reStructuredText format | ||
described by :pep:`12`, and plaintext PEPs will no longer be | ||
accepted. | ||
|
||
:: | ||
|
||
Update | ||
|
||
As of 05-Jan-2016, this PEP is officially deprecated and replaced | ||
by PEP 12. All PEPs should now use the reStructuredText format | ||
described by PEP 12, and plaintext PEPs will no longer be | ||
accepted. | ||
|
||
Abstract | ||
|
||
This PEP provides a boilerplate or sample template for creating | ||
|
@@ -225,14 +220,3 @@ Resolution: https://mail.python.org/archives/list/[email protected]/thread/2 | |
Copyright | ||
|
||
This document has been placed in the public domain. | ||
|
||
|
||
|
||
.. | ||
Local Variables: | ||
mode: indented-text | ||
indent-tabs-mode: nil | ||
sentence-end-double-space: t | ||
fill-column: 70 | ||
coding: utf-8 | ||
End: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
PEP: 42 | ||
Title: Feature Requests | ||
Version: $Revision$ | ||
Last-Modified: $Date$ | ||
Author: Jeremy Hylton <[email protected]> | ||
Status: Withdrawn | ||
Type: Process | ||
Content-Type: text/x-rst | ||
Created: 12-Sep-2000 | ||
Post-History: | ||
|
||
|
||
.. note:: This PEP has been `withdrawn as obsolete`_. | ||
.. withdrawn:: | ||
This PEP has been `withdrawn as obsolete`_. | ||
All new feature requests should either go to the `Python bug tracker`_ | ||
for very simple requests or the `python-ideas`_ mailing list for | ||
for very simple requests or the `Ideas Discourse category`_ for | ||
everything else. The rest of this document is retained for historical | ||
purposes only. | ||
|
||
|
@@ -332,13 +329,6 @@ Building and Installing | |
|
||
http://bugs.python.org/issue588756 | ||
|
||
.. _`Python bug tracker`: https://bugs.python.org | ||
.. _`python-ideas`: https://mail.python.org/mailman/listinfo/python-ideas | ||
.. _`Python bug tracker`: https://github.com/python/cpython/issues | ||
.. _`Ideas Discourse category`: https://discuss.python.org/c/ideas/6 | ||
.. _`withdrawn as obsolete`: https://github.com/python/peps/pull/108#issuecomment-249603204 | ||
|
||
|
||
.. | ||
Local Variables: | ||
mode: indented-text | ||
indent-tabs-mode: nil | ||
End: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
PEP: 103 | ||
Title: Collecting information about git | ||
Version: $Revision$ | ||
Last-Modified: $Date$ | ||
Author: Oleg Broytman <[email protected]> | ||
Status: Withdrawn | ||
Type: Informational | ||
Content-Type: text/x-rst | ||
Created: 01-Jun-2015 | ||
Post-History: 12-Sep-2015 | ||
|
||
Withdrawal | ||
========== | ||
.. withdrawn:: | ||
This PEP was withdrawn as it's too generic and doesn't really deals | ||
with Python development. It is no longer updated. | ||
|
||
This PEP was withdrawn as it's too generic and doesn't really deals | ||
with Python development. It is no longer updated. | ||
The content was moved to `Python Wiki`_. Make further updates in the | ||
wiki. | ||
|
||
The content was moved to `Python Wiki`_. Make further updates in the | ||
wiki. | ||
|
||
.. _`Python Wiki`: https://wiki.python.org/moin/Git | ||
.. _`Python Wiki`: https://wiki.python.org/moin/Git | ||
|
||
Abstract | ||
======== | ||
|
@@ -1076,15 +1071,3 @@ Copyright | |
========= | ||
|
||
This document has been placed in the public domain. | ||
|
||
|
||
|
||
.. | ||
Local Variables: | ||
mode: indented-text | ||
indent-tabs-mode: nil | ||
sentence-end-double-space: t | ||
fill-column: 70 | ||
coding: utf-8 | ||
End: | ||
vim: set fenc=us-ascii tw=70 : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,21 @@ Title: Range Literals | |
Author: Thomas Wouters <[email protected]> | ||
Status: Rejected | ||
Type: Standards Track | ||
Content-Type: text/x-rst | ||
Created: 14-Jul-2000 | ||
Python-Version: 2.0 | ||
Post-History: | ||
|
||
.. rejected:: | ||
After careful consideration, and a period of meditation, this | ||
proposal has been rejected. The open issues, as well as some | ||
confusion between ranges and slice syntax, raised enough questions | ||
for Guido not to accept it for Python 2.0, and later to reject the | ||
proposal altogether. The new syntax and its intentions were deemed | ||
not obvious enough. | ||
|
||
[ TBD: Guido, amend/confirm this, please. Preferably both; this | ||
is a PEP, it should contain *all* the reasons for rejection | ||
and/or reconsideration, for future reference. ] | ||
|
||
Introduction | ||
============ | ||
|
@@ -270,21 +280,6 @@ Open issues | |
made private functions? | ||
|
||
|
||
Rejection | ||
========= | ||
|
||
After careful consideration, and a period of meditation, this | ||
proposal has been rejected. The open issues, as well as some | ||
confusion between ranges and slice syntax, raised enough questions | ||
for Guido not to accept it for Python 2.0, and later to reject the | ||
proposal altogether. The new syntax and its intentions were deemed | ||
not obvious enough. | ||
|
||
[ TBD: Guido, amend/confirm this, please. Preferably both; this | ||
is a PEP, it should contain *all* the reasons for rejection | ||
and/or reconsideration, for future reference. ] | ||
|
||
|
||
Copyright | ||
========= | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
PEP: 206 | ||
Title: Python Advanced Library | ||
Version: $Revision$ | ||
Last-Modified: $Date$ | ||
Author: A.M. Kuchling <[email protected]> | ||
Status: Withdrawn | ||
Type: Informational | ||
Content-Type: text/x-rst | ||
Created: 14-Jul-2000 | ||
Post-History: | ||
|
||
.. withdrawn:: | ||
|
||
Introduction | ||
============ | ||
|
@@ -119,10 +117,3 @@ Acknowledgements | |
|
||
The PEP is based on an earlier draft PEP by Moshe Zadka, titled | ||
"2.0 Batteries Included." | ||
|
||
|
||
.. | ||
Local Variables: | ||
mode: indented-text | ||
indent-tabs-mode: nil | ||
End: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ Title: Multi-dimensional Arrays | |
Author: Paul Barrett <[email protected]>, Travis Oliphant <[email protected]> | ||
Status: Withdrawn | ||
Type: Standards Track | ||
Content-Type: text/x-rst | ||
Created: 03-Jan-2001 | ||
Python-Version: 2.2 | ||
Post-History: | ||
|
||
.. withdrawn:: | ||
|
||
Abstract | ||
======== | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,8 @@ Title: Decoupling the Interpreter Loop | |
Author: David Ascher <[email protected]> | ||
Status: Rejected | ||
Type: Standards Track | ||
Content-Type: text/x-rst | ||
Created: 15-Jul-2000 | ||
Python-Version: 2.1 | ||
Post-History: | ||
|
||
|
||
|
||
.. | ||
Local Variables: | ||
mode: indented-text | ||
indent-tabs-mode: nil | ||
End: | ||
.. rejected:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,12 @@ Title: Adding A New Outer Product Operator | |
Author: Greg Wilson <[email protected]> | ||
Status: Rejected | ||
Type: Standards Track | ||
Content-Type: text/x-rst | ||
Created: 15-Jul-2000 | ||
Python-Version: 2.1 | ||
Post-History: | ||
|
||
|
||
.. note:: | ||
|
||
.. rejected:: | ||
The approach in the later :pep:`465` was eventually accepted | ||
in lieu of this PEP. The :pep:`Rejected Ideas | ||
<465#rejected-alternatives-to-adding-a-new-operator>` | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ Title: String Interpolation | |
Author: Ka-Ping Yee <[email protected]> | ||
Status: Superseded | ||
Type: Standards Track | ||
Content-Type: text/x-rst | ||
Created: 24-Jul-2000 | ||
Python-Version: 2.1 | ||
Post-History: | ||
Superseded-By: 292 | ||
|
||
.. superseded:: 292 | ||
|
||
Abstract | ||
======== | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
PEP: 216 | ||
Title: Docstring Format | ||
Author: Moshe Zadka <[email protected]> | ||
Status: Rejected | ||
Status: Withdrawn | ||
Type: Informational | ||
Content-Type: text/x-rst | ||
Created: 31-Jul-2000 | ||
Post-History: | ||
Superseded-By: 287 | ||
|
||
|
||
Notice | ||
====== | ||
|
||
This PEP is rejected by the author. It has been superseded by PEP | ||
287. | ||
.. withdrawn:: | ||
This PEP is withdrawn by the author. It has been superseded by :pep:`287`. | ||
|
||
|
||
Abstract | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ Title: Coroutines, Generators, Continuations | |
Author: Gordon McMillan <[email protected]> | ||
Status: Rejected | ||
Type: Informational | ||
Content-Type: text/x-rst | ||
Created: 14-Aug-2000 | ||
Post-History: | ||
|
||
.. rejected:: | ||
|
||
Abstract | ||
======== | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.