Skip to content

Commit 2f6e29e

Browse files
Merge branch 'main' into patch-4
2 parents 7195d12 + b0aefe9 commit 2f6e29e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+850
-338
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ venv:
5858
.PHONY: ensure-venv
5959
ensure-venv:
6060
@if [ ! -d $(VENVDIR) ] ; then \
61+
set -e; \
6162
echo "Creating venv in $(VENVDIR)"; \
6263
if $(UV) --version >/dev/null 2>&1; then \
6364
$(UV) venv --python=$(PYTHON) $(VENVDIR); \

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The CPython Developer's Guide
1717

1818

1919
This guide covers how to contribute to CPython. It is known by the
20-
nickname of "the devguide" by the Python core developers.
20+
nickname of "the devguide" by the Python core team.
2121

2222
The official home of this guide is https://devguide.python.org.
2323

conf.py

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import json
2+
13
extensions = [
24
'notfound.extension',
35
'sphinx.ext.extlinks',
@@ -109,12 +111,21 @@
109111
# Advanced Tools was renamed Development Tools in gh-1149
110112
"advanced-tools/clang.rst": "development-tools/clang.rst",
111113
"advanced-tools/gdb.rst": "development-tools/gdb.rst",
112-
# Core Developers
113-
"coredev.rst": "core-developers/become-core-developer.rst",
114-
"committing.rst": "core-developers/committing.rst",
115-
"developers.rst": "core-developers/developer-log.rst",
116-
"experts.rst": "core-developers/experts.rst",
117-
"motivations.rst": "core-developers/motivations.rst",
114+
# Core team
115+
"coredev.rst": "core-team/join-team.rst",
116+
"committing.rst": "core-team/committing.rst",
117+
"developers.rst": "core-team/team-log.rst",
118+
"experts.rst": "core-team/experts.rst",
119+
"motivations.rst": "core-team/motivations.rst",
120+
# core-developers/ -> core-team/
121+
"core-developers/become-core-developer.rst": "core-team/join-team.rst",
122+
"core-developers/committing.rst": "core-team/committing.rst",
123+
"core-developers/developer-log.rst": "core-team/team-log.rst",
124+
"core-developers/experts.rst": "core-team/experts.rst",
125+
"core-developers/index.rst": "core-team/index.rst",
126+
"core-developers/memorialization.rst": "core-team/memorialization.rst",
127+
"core-developers/motivations.rst": "core-team/motivations.rst",
128+
"core-developers/responsibilities.rst": "core-team/responsibilities.rst",
118129
# Developer Workflow
119130
"c-api.rst": "developer-workflow/c-api.rst",
120131
"communication.rst": "developer-workflow/communication-channels.rst",
@@ -165,8 +176,17 @@
165176
# sphinx-notfound-page
166177
notfound_urls_prefix = "/"
167178

179+
# Dynamically expose the Python version associated with the "main" branch.
180+
# Exactly one entry in ``release-cycle.json`` should have ``"branch": "main"``.
181+
with open("include/release-cycle.json", encoding="UTF-8") as _f:
182+
_cycle = json.load(_f)
183+
184+
_main_version = next(
185+
version for version, data in _cycle.items() if data.get("branch") == "main"
186+
)
187+
168188
# prolog and epilogs
169-
rst_prolog = """
189+
rst_prolog = f"""
170190
.. |draft| replace::
171191
This is part of a **Draft** of the Python Contributor's Guide.
172192
Text in square brackets are notes about content to fill in.
@@ -183,6 +203,8 @@
183203
184204
.. _Refactoring the DevGuide: https://discuss.python.org/t/refactoring-the-devguide-into-a-contribution-guide/63409
185205
206+
.. |main_version| replace:: {_main_version}
207+
186208
"""
187209

188210
# sphinx.ext.extlinks

contrib/core-team/committing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
[This is the existing core developers :ref:`committing` page from the devguide. We'll
99
adjust "core developer" to "core team" where appropriate.]
1010

11-
.. include:: ../../core-developers/committing.rst
11+
.. include:: ../../core-team/committing.rst

contrib/core-team/developer-log.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

contrib/core-team/experts.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
|purpose|
66

77

8-
[This is the existing core developers :ref:`experts` page from the devguide. We'll
9-
adjust "core developer" to "core team" where appropriate.]
8+
[This is the existing core team :ref:`experts` page from the devguide.]
109

11-
.. include:: ../../core-developers/experts.rst
10+
.. include:: ../../core-team/experts.rst

contrib/core-team/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@
55
|purpose|
66

77

8-
.. _c_coreteam:
8+
.. _c_core-team:
99

1010
=========
1111
Core team
1212
=========
1313

14-
[This is mostly re-organized from the :ref:`core-dev` section of the devguide,
15-
but with "core developer" language changed to "core team" where possible.]
14+
[This is mostly re-organized from the :ref:`core-team` section of the devguide]
1615

1716
.. toctree::
1817
:maxdepth: 5
1918

2019
responsibilities
2120
committing
2221
experts
23-
developer-log
22+
team-log
2423
motivations
2524
join-team

contrib/core-team/join-team.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
|purpose|
66

77

8-
[This is the existing core developers :ref:`become-core-developer` page from the devguide with the title changed. We'll
9-
adjust "core developer" to "core team" where appropriate.]
8+
[This is the existing core team :ref:`join-core-team` page from the devguide.]
109

11-
=========================
12-
How to join the core team
13-
=========================
14-
15-
.. include:: ../../core-developers/become-core-developer.rst
16-
:start-line: 7
10+
.. include:: ../../core-team/join-team.rst

contrib/core-team/motivations.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
|purpose|
66

77

8-
[This is the existing core developers :ref:`motivations` page from the devguide. We'll
9-
adjust "core developer" to "core team" where appropriate.]
8+
[This is the existing core team :ref:`motivations` page from the devguide.]
109

11-
.. include:: ../../core-developers/motivations.rst
10+
.. include:: ../../core-team/motivations.rst

contrib/core-team/responsibilities.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
|purpose|
66

77

8-
[This is the existing core developers :ref:`responsibilities` page from the devguide. We'll
9-
adjust "core developer" to "core team" where appropriate.]
8+
[This is the existing core team :ref:`responsibilities` page from the devguide.]
109

11-
.. include:: ../../core-developers/responsibilities.rst
10+
.. include:: ../../core-team/responsibilities.rst

0 commit comments

Comments
 (0)