Skip to content

Commit 755f034

Browse files
authored
Merge branch 'main' into abi3t-guide-setuptools-workaround
2 parents b9aef3c + f7586aa commit 755f034

165 files changed

Lines changed: 5161 additions & 2018 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@
6363
.azure-pipelines/ @AA-Turner
6464

6565
# GitHub & related scripts
66-
.github/ @ezio-melotti @hugovk @AA-Turner @webknjaz @itamaro @JacobCoffee
67-
Tools/build/compute-changes.py @AA-Turner @hugovk @webknjaz
68-
Lib/test/test_tools/test_compute_changes.py @AA-Turner @hugovk @webknjaz
66+
.github/ @ezio-melotti @hugovk @AA-Turner @webknjaz @itamaro @JacobCoffee @StanFromIreland
67+
Tools/build/compute-changes.py @AA-Turner @hugovk @webknjaz @StanFromIreland
68+
Lib/test/test_tools/test_compute_changes.py @AA-Turner @hugovk @webknjaz @StanFromIreland
6969
Tools/build/verify_ensurepip_wheels.py @AA-Turner @pfmoore @pradyunsg
7070

7171
# Pre-commit
72-
.pre-commit-config.yaml @hugovk @JacobCoffee
73-
.ruff.toml @hugovk @AlexWaygood @AA-Turner @JacobCoffee
72+
.pre-commit-config.yaml @hugovk @JacobCoffee @StanFromIreland
73+
.ruff.toml @hugovk @AlexWaygood @AA-Turner @JacobCoffee @StanFromIreland
7474

7575
# Patchcheck
7676
Tools/patchcheck/ @AA-Turner @itamaro

‎.github/ISSUE_TEMPLATE/bug.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
Make sure to also search the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc) to check that the bug has not already been reported.
1717
- type: textarea
1818
attributes:
19-
label: "Bug description:"
19+
label: "Bug report"
2020
description: >
2121
Give a clear and concise description of what happened.
2222
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.

‎.github/ISSUE_TEMPLATE/crash.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ body:
1010
The CPython interpreter is written in a different programming language, C. A "CPython crash" is when Python itself fails, leading to a traceback in the C stack.
1111
- type: textarea
1212
attributes:
13-
label: What happened?
13+
label: Crash report
1414
description: >
15+
Give a clear and concise description of what happened.
1516
Include a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) if possible.
1617
[Copy and paste code where possible rather than using screenshots](https://meta.stackoverflow.com/a/285557/13990016),
1718
and put any code blocks inside triple backticks.

‎.github/ISSUE_TEMPLATE/feature.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
Major feature proposals should generally be discussed on [Discourse](https://discuss.python.org/c/ideas/6) before opening a GitHub issue. Wait until it's clear that most people support your idea before filling in this form.
1313
- type: textarea
1414
attributes:
15-
label: "Proposal:"
15+
label: "Feature or enhancement"
1616
description: >
1717
Explain your proposal, why it should be implemented, and how it would be used.
1818
Add examples, if applicable.

‎.github/workflows/add-issue-header.yml‎

Lines changed: 0 additions & 56 deletions
This file was deleted.

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,12 @@ jobs:
268268
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
269269
# supported by important vendors such as AWS-LC.
270270
- { name: openssl, version: 1.1.1w }
271-
- { name: openssl, version: 3.0.22 }
272-
- { name: openssl, version: 3.4.7 }
273-
- { name: openssl, version: 3.5.8 }
274-
- { name: openssl, version: 3.6.4 }
275-
- { name: openssl, version: 4.0.2 }
271+
- { name: openssl, version: 3.4.8 }
272+
- { name: openssl, version: 3.5.9 }
273+
- { name: openssl, version: 3.6.5 }
274+
- { name: openssl, version: 4.0.3 }
276275
## AWS-LC
277-
- { name: aws-lc, version: 5.5.0 }
276+
- { name: aws-lc, version: 5.10.0 }
278277
env:
279278
SSLLIB_VER: ${{ matrix.ssllib.version }}
280279
MULTISSL_DIR: ${{ github.workspace }}/multissl
@@ -379,7 +378,7 @@ jobs:
379378
needs: build-context
380379
if: needs.build-context.outputs.run-ubuntu == 'true'
381380
env:
382-
OPENSSL_VER: 3.5.8
381+
OPENSSL_VER: 3.5.9
383382
PYTHONSTRICTEXTENSIONBUILD: 1
384383
steps:
385384
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -493,7 +492,7 @@ jobs:
493492
matrix:
494493
os: [ubuntu-26.04]
495494
env:
496-
OPENSSL_VER: 3.5.8
495+
OPENSSL_VER: 3.5.9
497496
PYTHONSTRICTEXTENSIONBUILD: 1
498497
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
499498
steps:
@@ -587,7 +586,7 @@ jobs:
587586
- name: Display build info
588587
run: |
589588
"$BUILD_DIR/cross-python/bin/python3" -m test.pythoninfo
590-
- name: Run test subset with host build
589+
- name: Run test subset with cross build
591590
run: |
592591
"$BUILD_DIR/cross-python/bin/python3" -m test test_sysconfig test_site test_embed
593592

‎.github/workflows/reusable-san.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
env:
1919
FORCE_COLOR: 1
20-
OPENSSL_VER: 3.5.8
20+
OPENSSL_VER: 3.5.9
2121

2222
jobs:
2323
build-san-reusable:
@@ -90,10 +90,14 @@ jobs:
9090
--openssl="${OPENSSL_VER}"
9191
--system=Linux
9292
--tsan
93+
# gh-157958: -O2 instead of the pydebug default -Og to avoid a clang 21
94+
# compile-time blowup on some interpreter files.
95+
# (https://github.com/llvm/llvm-project/issues/179695)
9396
- name: Configure CPython
9497
run: >-
9598
./configure
9699
--config-cache
100+
OPT="-O2 -g"
97101
${{
98102
inputs.sanitizer == 'TSan'
99103
&& '--with-thread-sanitizer'

‎.github/workflows/reusable-ubuntu.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ${{ inputs.os }}
3636
timeout-minutes: 60
3737
env:
38-
OPENSSL_VER: 3.5.8
38+
OPENSSL_VER: 3.5.9
3939
PYTHONSTRICTEXTENSIONBUILD: 1
4040
TERM: linux
4141
steps:

‎Doc/builtins/threadsafety.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,19 +408,19 @@ as operands and always lock both objects:
408408
iterate through all the passed iterables and do the following:
409409

410410
* :meth:`set.update` and :meth:`set.union` lock both objects only when
411-
the other operand is a :class:`set`, :class:`frozenset`, or :class:`dict`.
411+
the other operand is a :class:`set`, :class:`frozenset`, or :class:`dict`.
412412
* :meth:`set.intersection` and :meth:`set.difference` always try to lock
413-
all objects.
413+
all objects.
414414

415415
:meth:`set.symmetric_difference` tries to lock both objects.
416416

417417
The update variants of the above methods also have some differences between
418418
them:
419419

420420
* :meth:`set.difference_update` and :meth:`set.intersection_update` try
421-
to lock all objects one-by-one.
421+
to lock all objects one-by-one.
422422
* :meth:`set.symmetric_difference_update` only locks the arguments if it is
423-
of type :class:`set`, :class:`frozenset`, or :class:`dict`.
423+
of type :class:`set`, :class:`frozenset`, or :class:`dict`.
424424

425425
The following methods always try to lock both objects:
426426

‎Doc/c-api/unicode.rst‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ APIs:
425425
the UCS1 range, it will be transformed into UCS1
426426
(:c:macro:`PyUnicode_1BYTE_KIND`).
427427
428+
All characters must be in range [U+0000; U+10ffff]. If *kind* is
429+
:c:macro:`PyUnicode_4BYTE_KIND` and the string contains invalid characters,
430+
the behavior is undefined.
431+
428432
.. versionadded:: 3.3
429433
430434
@@ -1896,10 +1900,13 @@ object.
18961900
18971901
.. c:function:: int PyUnicodeWriter_WriteUCS4(PyUnicodeWriter *writer, const Py_UCS4 *str, Py_ssize_t size)
18981902
1899-
Writer the UCS4 string *str* into *writer*.
1903+
Write the UCS4 string *str* into *writer*.
19001904
19011905
*size* is a number of UCS4 characters.
19021906
1907+
All characters must be in range [U+0000; U+10ffff]. If the string contains
1908+
invalid characters, the behavior is undefined.
1909+
19031910
On success, return ``0``.
19041911
On error, set an exception, leave the writer unchanged, and return ``-1``.
19051912
@@ -1945,7 +1952,7 @@ object.
19451952
On success, return ``0``.
19461953
On error, set an exception, leave the writer unchanged, and return ``-1``.
19471954
1948-
.. c:function:: int PyUnicodeWriter_DecodeUTF8Stateful(PyUnicodeWriter *writer, const char *string, Py_ssize_t length, const char *errors, Py_ssize_t *consumed)
1955+
.. c:function:: int PyUnicodeWriter_DecodeUTF8Stateful(PyUnicodeWriter *writer, const char *str, Py_ssize_t size, const char *errors, Py_ssize_t *consumed)
19491956
19501957
Decode the string *str* from UTF-8 with *errors* error handler and write the
19511958
output into *writer*.

0 commit comments

Comments
 (0)