8000 Update how to upgrade by humitos · Pull Request #1842 · python/python-docs-es · GitHub
[go: up one dir, main page]

Skip to content

Update how to upgrade #1842

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 6 commits into from
Oct 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update guide to upgrade the Python version
- add step for GitHub Action
- add step for Read the Docs
  • Loading branch information
humitos committed Oct 25, 2022
commit 58c3e8c512a8ed81b55623fe17e18a57bce9d359
14 changes: 11 additions & 3 deletions .overrides/upgrade-python-version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
pip install -r requirements.txt


#. Create the .po files from the new source code. This will generate all the .po files for version 3.8::
#. Create the .po files from the new source code. This will generate all the .po files for version 3.11::

SPHINX_GETTEXT=True sphinx-build -j auto -b gettext -d _build/doctrees . ../python-docs-es-pot

Expand All @@ -69,8 +69,8 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
#. At this point, all the `.po` files will have a different comment on each translation phrase,
for example::

-#: ../Doc/whatsnew/3.9.rst:3
+#: ../python-docs-es/cpython/Doc/whatsnew/3.9.rst:3
-#: ../Doc/whatsnew/3.11.rst:3
+#: ../python-docs-es/cpython/Doc/whatsnew/3.11.rst:3

As you can see, it added the path of the local repository, but you can
remove it from it with this regular expression::
Expand All @@ -91,3 +91,11 @@ We are currently in branch 3.10, and we want to update the strings from 3.11.
you will find many warnings that needs to be fixed before the push
of the new branch is done. So prepare a cup of any hot beverage
and fix them.


Once the process is completely and you are happy with the results,
there are a few extra steps to finish the process::

#. Upgrade GitHub Actions to use Python 3.11

#. Update Read the Docs project to use 3.11 in the build and also as default branch/version
0