Skip to content

Commit d6027a3

Browse files
committed
Merge remote-tracking branch 'upstream/main' into log-update
2 parents 372da29 + 9c94fdd commit d6027a3

25 files changed

+388
-143
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
[This is the existing core developers :ref:`experts` page from the devguide. We'll
99
adjust "core developer" to "core team" where appropriate.]
1010

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

contrib/core-team/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
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,
14+
[This is mostly re-organized from the :ref:`core-team` section of the devguide,
1515
but with "core developer" language changed to "core team" where possible.]
1616

1717
.. toctree::
@@ -20,6 +20,6 @@ but with "core developer" language changed to "core team" where possible.]
2020
responsibilities
2121
committing
2222
experts
23-
developer-log
23+
team-log
2424
motivations
2525
join-team

contrib/core-team/join-team.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
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
8+
[This is the existing core developers :ref:`join-core-team` page from the devguide. We'll
99
adjust "core developer" to "core team" where appropriate.]
1010

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

contrib/core-team/motivations.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:`motivations` page from the devguide. We'll
99
adjust "core developer" to "core team" where appropriate.]
1010

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

contrib/core-team/responsibilities.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:`responsibilities` page from the devguide. We'll
99
adjust "core developer" to "core team" where appropriate.]
1010

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

contrib/core-team/team-log.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. important::
2+
3+
|draft|
4+
5+
|purpose|
6+
7+
8+
[This is the existing core team :ref:`team-log` page from the devguide. We'll
9+
adjust "core developer" to "core team" where appropriate.]
10+
11+
.. include:: ../../core-team/team-log.rst

contrib/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ major section at the top of each column.]*
7575
* :ref:`documenting`
7676
* :ref:`style-guide`
7777
* :ref:`rst-primer`
78-
* :ref:`translating`
78+
* :doc:`documentation/translations`
7979
* :ref:`devguide`
8080
-
8181
* :ref:`setup`
@@ -95,7 +95,7 @@ major section at the top of each column.]*
9595
* :ref:`gh-faq`
9696
* :ref:`triage-team`
9797

98-
Core team members will find guidance in the :ref:`c_coreteam` section.
98+
Core team members will find guidance in the :ref:`c_core-team` section.
9999

100100
Contents
101101
========

0 commit comments

Comments
 (0)