Skip to content

Commit fdca906

Browse files
Merge branch '3.12' into backport-64c876d-3.12
2 parents 8095d91 + ade85bc commit fdca906

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

.github/workflows/reusable-windows-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
build:
1919
name: installer for ${{ inputs.arch }}
20-
runs-on: windows-latest
20+
runs-on: windows-2022
2121
timeout-minutes: 60
2222
env:
2323
ARCH: ${{ inputs.arch }}

.github/workflows/reusable-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121
jobs:
2222
build:
2323
name: ${{ inputs.arch == 'arm64' && 'build' || 'build and test' }} (${{ inputs.arch }})
24-
runs-on: windows-latest
24+
runs-on: windows-2022
2525
timeout-minutes: 60
2626
env:
2727
ARCH: ${{ inputs.arch }}

Doc/conf.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,17 @@
598598
# Options for sphinxext-opengraph
599599
# -------------------------------
600600

601-
ogp_site_url = 'https://docs.python.org/3/'
601+
ogp_canonical_url = 'https://docs.python.org/3/'
602602
ogp_site_name = 'Python documentation'
603-
ogp_image = '_static/og-image.png'
604-
ogp_custom_meta_tags = (
605-
'<meta property="og:image:width" content="200">',
606-
'<meta property="og:image:height" content="200">',
607-
'<meta name="theme-color" content="#3776ab">',
608-
)
603+
ogp_social_cards = { # Used when matplotlib is installed
604+
'image': '_static/og-image.png',
605+
'line_color': '#3776ab',
606+
}
607+
ogp_custom_meta_tags = ('<meta name="theme-color" content="#3776ab">',)
608+
if 'create-social-cards' not in tags: # noqa: F821
609+
# Define a static preview image when not creating social cards
610+
ogp_image = '_static/og-image.png'
611+
ogp_custom_meta_tags += (
612+
'<meta property="og:image:width" content="200">',
613+
'<meta property="og:image:height" content="200">',
614+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SBOM generation tool didn't cross-check the version and checksum values
2+
against the ``Modules/expat/refresh.sh`` script, leading to the values
3+
becoming out-of-date during routine updates.

Misc/sbom.spdx.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/build/generate_sbom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,14 @@ def check_sbom_packages(sbom_data: dict[str, typing.Any]) -> None:
224224
)
225225

226226
# libexpat specifies its expected rev in a refresh script.
227-
if package["name"] == "libexpat":
227+
if package["name"] == "expat":
228228
libexpat_refresh_sh = (CPYTHON_ROOT_DIR / "Modules/expat/refresh.sh").read_text()
229229
libexpat_expected_version_match = re.search(
230230
r"expected_libexpat_version=\"([0-9]+\.[0-9]+\.[0-9]+)\"",
231231
libexpat_refresh_sh
232232
)
233233
libexpat_expected_sha256_match = re.search(
234-
r"expected_libexpat_sha256=\"[a-f0-9]{40}\"",
234+
r"expected_libexpat_sha256=\"([a-f0-9]{64})\"",
235235
libexpat_refresh_sh
236236
)
237237
libexpat_expected_version = libexpat_expected_version_match and libexpat_expected_version_match.group(1)

0 commit comments

Comments
 (0)