From e951843196653ac0475555208a19f3d6e1bb0fae Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 4 Feb 2025 13:10:26 +0100 Subject: [PATCH 1/3] [3.10] gh-129641: Switch Docs GHA build to actions/upload-artifact@v4 Add options for backwards compatibility, from the docs at: https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes --- .github/workflows/doc.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index ee02848417c2e7..7c0689d0ae4df8 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -46,10 +46,12 @@ jobs: - name: 'Build HTML documentation' run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html - name: 'Upload' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: doc-html path: Doc/build/html + include-hidden-files: true + overwrite: true # Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release doctest: From 960a5423f6ad9e25a888643388ce48ff7c987f7a Mon Sep 17 00:00:00 2001 From: shallow-beach <96891913+shallow-beach@users.noreply.github.com> Date: Fri, 20 Dec 2024 09:09:56 -0800 Subject: [PATCH 2/3] Python Tutorial typo fix (#128077) Backported form commit: 5a584c8f54bbeceae7ffa501291e29b7ddc8a0b9 This is a trivial change meant to trigger a Docs build. --- Doc/tutorial/classes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 30450c70f3e8e9..71d081cb6fa4e7 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -325,7 +325,7 @@ Now what can we do with instance objects? The only operations understood by instance objects are attribute references. There are two kinds of valid attribute names: data attributes and methods. -*data attributes* correspond to "instance variables" in Smalltalk, and to "data +*Data attributes* correspond to "instance variables" in Smalltalk, and to "data members" in C++. Data attributes need not be declared; like local variables, they spring into existence when they are first assigned to. For example, if ``x`` is the instance of :class:`MyClass` created above, the following piece of From a72a598fb7f149198f81cfe1a7cc4667c4a8733d Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 4 Feb 2025 14:09:43 +0100 Subject: [PATCH 3/3] Use Python 3.12 for the 3.10 docs build The pinned version of Sphinx requires `imghdr`, removed in Python 3.13. --- .github/workflows/doc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 7c0689d0ae4df8..dd3a26775d9288 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -38,7 +38,7 @@ jobs: - name: 'Set up Python' uses: actions/setup-python@v4 with: - python-version: '3' + python-version: '3.12' cache: 'pip' cache-dependency-path: 'Doc/requirements.txt' - name: 'Install build dependencies'