33How to update to a new Python version
44=====================================
55
6- We are currently in branch 3.10 , and we want to update the strings from 3.11 .
6+ We are currently in branch 3.11 , and we want to update the strings from 3.12 .
77
8+ #. Make sure you are in a clean state of the branch 3.11
89
9- #. Make sure you are in a clean state of the branch 3.10
10-
11- #. Create a new branch called ``3.11 ``
10+ #. Create a new branch called ``3.12 ``
1211
1312#. Initialize the submodules::
1413
1514 git submodule init
1615 git submodule update
1716
18- #. Fetch the `latest commit of 3.11 branch <https://github.com/python/cpython/commit/b3cafb60afeb2300002af9982d43703435b8302d >`_::
17+ #. Fetch the `latest commit of 3.12 branch <https://github.com/python/cpython/commit/0fb18b02c8ad56299d6a2910be0bab8ad601ef24 >`_::
1918
2019 cd cpython/
21- git fetch --depth 1 origin b3cafb60afeb2300002af9982d43703435b8302d
20+ git fetch --depth 1 origin 0fb18b02c8ad56299d6a2910be0bab8ad601ef24
2221
2322 .. note:: you could also base the hash on the 'git tag' from the desired
24- version: ``git checkout tags/v3.11 .0 -b 3.11 `` considering that
25- ``3.11 `` doesn't exist locally.
23+ version: ``git checkout tags/v3.12 .0 -b 3.12 `` considering that
24+ ``3.12 `` doesn't exist locally.
2625
2726#. Checkout that commit locally::
2827
29- git checkout b3cafb60afeb2300002af9982d43703435b8302d
28+ git checkout 0fb18b02c8ad56299d6a2910be0bab8ad601ef24
3029
3130#. Update the branch on the ``Makefile `` and check the ``requirements.txt `` from
32- the cpython repository , to see if upgrades on the modules like sphinx is
31+ `` ./ cpython/Doc `` directory , to see if upgrades on the modules like sphinx is
3332 needed.
3433
3534#. Commit the update of the submodule change::
@@ -43,7 +42,7 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
4342#. Verify that the docs build with the new versions you changed from
4443 ``requirements.txt `` mainly the sphinx version::
4544
46- make html
45+ make build
4746
4847 .. note ::
4948
@@ -75,7 +74,7 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
7574
7675 .. note::
7776
78- In ``../python-docs-es-pot`` directory, we will have the new .pot files with new strings from 3.11 branch.
77+ In ``../python-docs-es-pot`` directory, we will have the new .pot files with new strings from 3.12 branch.
7978 All these strings will be *untranslated* at this point.
8079
8180#. Now, we update our translated files form the source language (English) with new strings::
@@ -85,8 +84,8 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
8584#. At this point, all the ``.po `` files will have a different comment on each translation phrase,
8685 for example::
8786
88- -#: ../python-docs-es/cpython/Doc/whatsnew/3.11 .rst:3
89- +#: ../Doc/whatsnew/3.11 .rst:3
87+ -#: ../python-docs-es/cpython/Doc/whatsnew/3.12 .rst:3
88+ +#: ../Doc/whatsnew/3.12 .rst:3
9089
9190 As you can see, it added the path of the local repository, but you can
9291 remove it from it with this regular expression::
@@ -115,10 +114,9 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
115114 of the new branch is done. So prepare a cup of any hot beverage
116115 and fix them.
117116
118-
119117Once the process is completely and you are happy with the results,
120118there are a few extra steps to finish the process::
121119
122- #. Upgrade GitHub Actions to use Python 3.11
120+ #. Upgrade GitHub Actions to use Python 3.12
123121
124- #. Update Read the Docs project to use 3.11 in the build and also as default branch/version
122+ #. Update Read the Docs project to use 3.12 in the build and also as default branch/version
0 commit comments