Skip to content

Commit 9cc4a47

Browse files
authored
Merge branch 'main' into packaging-governance
2 parents d340de6 + d4dba2d commit 9cc4a47

38 files changed

Lines changed: 2727 additions & 666 deletions

.github/CODEOWNERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,14 @@ peps/pep-0776.rst @hoodmane @ambv
658658
peps/pep-0777.rst @warsaw
659659
# ...
660660
peps/pep-0779.rst @Yhg1s @colesbury @mpage
661+
peps/pep-0780.rst @lysnikolaou
662+
peps/pep-0781.rst @methane
663+
peps/pep-0782.rst @vstinner
664+
peps/pep-0783.rst @hoodmane @ambv
665+
peps/pep-0784.rst @gpshead
666+
peps/pep-0785.rst @gpshead
667+
# ...
668+
peps/pep-0787.rst @ncoghlan
661669
# ...
662670
peps/pep-0789.rst @njsmith
663671
# ...

.github/PULL_REQUEST_TEMPLATE/Mark a PEP Accepted or Rejected.md renamed to .github/PULL_REQUEST_TEMPLATE/Mark a PEP as Accepted or Rejected.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ If you're unsure about anything, just leave it blank and we'll take a look.
88
* [ ] SC/PEP Delegate has formally accepted/rejected the PEP and posted to the ``Discussions-To`` thread
99
* [ ] Pull request title in appropriate format (``PEP 123: Mark as Accepted``)
1010
* [ ] ``Status`` changed to ``Accepted``/``Rejected``
11-
* [ ] ``Resolution`` link points directly to SC/PEP Delegate official acceptance/rejected post
11+
* [ ] ``Resolution`` field points directly to SC/PEP Delegate official acceptance/rejected post, including the date (e.g. `` `01-Jan-2000 <https://discuss.python.org/t/12345/100>`__ ``)
1212
* [ ] Acceptance/rejection notice added, if the SC/PEP delegate had major conditions or comments
1313
* [ ] ``Discussions-To``, ``Post-History`` and ``Python-Version`` up to date

.github/PULL_REQUEST_TEMPLATE/Mark a PEP Final.md renamed to .github/PULL_REQUEST_TEMPLATE/Mark a PEP as Final.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ If you're unsure about something, just leave it blank and we'll take a look.
77
* [ ] Final implementation has been merged (including tests and docs)
88
* [ ] PEP matches the final implementation
99
* [ ] Any substantial changes since the accepted version approved by the SC/PEP delegate
10-
* [ ] Pull request title in appropriate format (``PEP 123: Mark Final``)
10+
* [ ] Pull request title in appropriate format (``PEP 123: Mark as Final``)
1111
* [ ] ``Status`` changed to ``Final`` (and ``Python-Version`` is correct)
1212
* [ ] Canonical docs/spec linked with a ``canonical-doc`` directive
1313
(or ``canonical-pypa-spec`` for packaging PEPs,

check-peps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ def _validate_discussions_to(line_num: int, line: str) -> MessageIterator:
303303
"""'Discussions-To' must be a thread URL"""
304304

305305
yield from _thread(line_num, line, "Discussions-To", discussions_to=True)
306+
if line == "Pending":
307+
return
306308
if line.startswith("https://"):
307309
return
308310
for suffix in "@python.org", "@googlegroups.com":
@@ -311,7 +313,7 @@ def _validate_discussions_to(line_num: int, line: str) -> MessageIterator:
311313
if re.fullmatch(r"[\w\-]+", remainder) is None:
312314
yield line_num, "Discussions-To must be a valid mailing list"
313315
return
314-
yield line_num, "Discussions-To must be a valid thread URL or mailing list"
316+
yield line_num, "Discussions-To must be a valid thread URL, mailing list, or 'Pending'"
315317

316318

317319
def _validate_status(line_num: int, line: str) -> MessageIterator:

pep_sphinx_extensions/LICENCE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This files in this directory are placed in the public domain or under the
1+
The files in this directory are placed in the public domain or under the
22
CC0-1.0-Universal license, whichever is more permissive.

pep_sphinx_extensions/generate_rss.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ def pep_abstract(document: nodes.document) -> str:
6060
continue
6161

6262
if title_node.astext() == "Abstract":
63-
return node.next_node(nodes.paragraph).astext().strip().replace("\n", " ")
64-
elif title_node.astext() == "Introduction":
63+
if (para_node := node.next_node(nodes.paragraph)) is not None:
64+
return para_node.astext().strip().replace("\n", " ")
65+
return ""
66+
if title_node.astext() == "Introduction":
6567
introduction = node.next_node(nodes.paragraph).astext().strip().replace("\n", " ")
6668

6769
return introduction

pep_sphinx_extensions/tests/pep_lint/test_pep_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_with_fake_pep():
3737
(14, "Topic must be for a valid sub-index"),
3838
(14, "Topic must be sorted lexicographically"),
3939
(16, "PEP references must be separated by comma-spaces (', ')"),
40-
(17, "Discussions-To must be a valid thread URL or mailing list"),
40+
(17, "Discussions-To must be a valid thread URL, mailing list, or 'Pending'"),
4141
(18, "Post-History must be a 'DD-mmm-YYYY' date: '2-Feb-2000'"),
4242
(18, "Post-History must be a valid thread URL"),
4343
(19, "Post-History must be a 'DD-mmm-YYYY' date: '3-Mar-2001'"),

pep_sphinx_extensions/tests/pep_lint/test_post_url.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@pytest.mark.parametrize(
66
"line",
77
[
8+
"Pending",
89
"list-name@python.org",
910
"distutils-sig@python.org",
1011
"csv@python.org",
@@ -52,7 +53,7 @@ def test_validate_discussions_to_invalid_list_domain(line: str):
5253
warning for (_, warning) in check_peps._validate_discussions_to(1, line)
5354
]
5455
assert warnings == [
55-
"Discussions-To must be a valid thread URL or mailing list"
56+
"Discussions-To must be a valid thread URL, mailing list, or 'Pending'"
5657
], warnings
5758

5859

peps/api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The structure of each JSON object is as follows:
2020
"topic": "governance" | "packaging" | "release" | "typing" | "",
2121
"created": string,
2222
"python_version": string | null,
23-
"post_history": string,
23+
"post_history": string | null,
2424
"resolution": string | null,
2525
"requires": string | null,
2626
"replaces": string | null,

peps/pep-0008.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,8 @@ Other Recommendations
617617

618618
- Always surround these binary operators with a single space on either
619619
side: assignment (``=``), augmented assignment (``+=``, ``-=``
620-
etc.), comparisons (``==``, ``<``, ``>``, ``!=``, ``<>``, ``<=``,
621-
``>=``, ``in``, ``not in``, ``is``, ``is not``), Booleans (``and``,
622-
``or``, ``not``).
620+
etc.), comparisons (``==``, ``<``, ``>``, ``!=``, ``<=``, ``>=``, ``in``,
621+
``not in``, ``is``, ``is not``), Booleans (``and``, ``or``, ``not``).
623622

624623
- If operators with different priorities are used, consider adding
625624
whitespace around the operators with the lowest priority(ies). Use

0 commit comments

Comments
 (0)