Skip to content

Commit 4c3bddd

Browse files
authored
Merge branch 'main' into gh-139624
2 parents 3a41a55 + d1ca001 commit 4c3bddd

28 files changed

+858
-749
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ jobs:
273273
# Keep 1.1.1w in our list despite it being upstream EOL and otherwise
274274
# unsupported as it most resembles other 1.1.1-work-a-like ssl APIs
275275
# supported by important vendors such as AWS-LC.
276-
openssl_ver: [1.1.1w, 3.0.17, 3.2.5, 3.3.4, 3.4.2, 3.5.2]
276+
openssl_ver: [1.1.1w, 3.0.18, 3.2.6, 3.3.5, 3.4.3, 3.5.4]
277277
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
278278
env:
279279
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -438,7 +438,7 @@ jobs:
438438
needs: build-context
439439
if: needs.build-context.outputs.run-tests == 'true'
440440
env:
441-
OPENSSL_VER: 3.0.16
441+
OPENSSL_VER: 3.0.18
442442
PYTHONSTRICTEXTENSIONBUILD: 1
443443
steps:
444444
- uses: actions/checkout@v4
@@ -558,7 +558,7 @@ jobs:
558558
matrix:
559559
os: [ubuntu-24.04]
560560
env:
561-
OPENSSL_VER: 3.0.16
561+
OPENSSL_VER: 3.0.18
562562
PYTHONSTRICTEXTENSIONBUILD: 1
563563
ASAN_OPTIONS: detect_leaks=0:allocator_may_return_null=1:handle_segv=0
564564
steps:

.github/workflows/reusable-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ${{ inputs.os }}
3131
timeout-minutes: 60
3232
env:
33-
OPENSSL_VER: 3.0.15
33+
OPENSSL_VER: 3.0.18
3434
PYTHONSTRICTEXTENSIONBUILD: 1
3535
TERM: linux
3636
steps:

Android/android.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,16 @@ def make_build_python(context):
184184
run(["make", "-j", str(os.cpu_count())])
185185

186186

187+
# To create new builds of these dependencies, usually all that's necessary is to
188+
# push a tag to the cpython-android-source-deps repository, and GitHub Actions
189+
# will do the rest.
190+
#
191+
# If you're a member of the Python core team, and you'd like to be able to push
192+
# these tags yourself, please contact Malcolm Smith or Russell Keith-Magee.
187193
def unpack_deps(host, prefix_dir):
188194
os.chdir(prefix_dir)
189195
deps_url = "https://github.com/beeware/cpython-android-source-deps/releases/download"
190-
for name_ver in ["bzip2-1.0.8-3", "libffi-3.4.4-3", "openssl-3.0.15-4",
196+
for name_ver in ["bzip2-1.0.8-3", "libffi-3.4.4-3", "openssl-3.0.18-0",
191197
"sqlite-3.50.4-0", "xz-5.4.6-1", "zstd-1.5.7-1"]:
192198
filename = f"{name_ver}-{host}.tar.gz"
193199
download(f"{deps_url}/{name_ver}/{filename}")

Apple/__main__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,18 @@ def unpack_deps(
312312
On iOS, as a safety mechanism, any dynamic libraries will be purged from
313313
the unpacked dependencies.
314314
"""
315+
# To create new builds of these dependencies, usually all that's necessary
316+
# is to push a tag to the cpython-apple-source-deps repository, and GitHub
317+
# Actions will do the rest.
318+
#
319+
# If you're a member of the Python core team, and you'd like to be able to
320+
# push these tags yourself, please contact Malcolm Smith or Russell
321+
# Keith-Magee.
315322
deps_url = "https://github.com/beeware/cpython-apple-source-deps/releases/download"
316323
for name_ver in [
317324
"BZip2-1.0.8-2",
318325
"libFFI-3.4.7-2",
319-
"OpenSSL-3.0.17-1",
326+
"OpenSSL-3.0.18-1",
320327
"XZ-5.6.4-2",
321328
"mpdecimal-4.0.0-2",
322329
"zstd-1.5.7-1",

Doc/deprecations/pending-removal-in-future.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ although there is currently no date scheduled for their removal.
1515

1616
* :mod:`builtins`:
1717

18-
* ``bool(NotImplemented)``.
1918
* Generators: ``throw(type, exc, tb)`` and ``athrow(type, exc, tb)``
2019
signature is deprecated: use ``throw(exc)`` and ``athrow(exc)`` instead,
2120
the single argument signature.

Doc/library/difflib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
231231
*linejunk*: A function that accepts a single string argument, and returns
232232
true if the string is junk, or false if not. The default is ``None``. There
233233
is also a module-level function :func:`IS_LINE_JUNK`, which filters out lines
234-
without visible characters, except for at most one pound character (``'#'``)
234+
without visible characters, except for at most one hash character (``'#'``)
235235
-- however the underlying :class:`SequenceMatcher` class does a dynamic
236236
analysis of which lines are so frequent as to constitute noise, and this
237237
usually works better than using this function.

Doc/library/string.templatelib.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Template strings
2424
Template strings are a mechanism for custom string processing.
2525
They have the full flexibility of Python's :ref:`f-strings`,
2626
but return a :class:`Template` instance that gives access
27-
to the static and interpolated (in curly braces) parts of a string
27+
to the static and interpolated (in curly brackets) parts of a string
2828
*before* they are combined.
2929

3030
To write a t-string, use a ``'t'`` prefix instead of an ``'f'``, like so:
@@ -258,13 +258,16 @@ Types
258258
.. attribute:: expression
259259
:type: str
260260

261-
The text of a valid Python expression, or an empty string.
261+
For interpolations created by t-string literals, :attr:`!expression`
262+
is the expression text found inside the curly brackets (``{`` & ``}``),
263+
including any whitespace, excluding the curly brackets themselves,
264+
and ending before the first ``!``, ``:``, or ``=`` if any is present.
265+
For manually created interpolations, :attr:`!expression` is the arbitrary
266+
string provided when constructing the interpolation instance.
262267

263-
The :attr:`.expression` is the original text of the
264-
interpolation's Python expression, if the interpolation was created
265-
from a t-string literal. Developers creating interpolations manually
266-
should either set this to an empty string or choose a suitable valid
267-
Python expression.
268+
We recommend using valid Python expressions or the empty string for the
269+
``expression`` field of manually created :class:`!Interpolation`
270+
instances, although this is not enforced at runtime.
268271

269272
>>> t'{1 + 2}'.interpolations[0].expression
270273
'1 + 2'

Doc/using/configure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Features and minimum versions required to build CPython:
2222

2323
* Support for threads.
2424

25-
* OpenSSL 1.1.1 is the minimum version and OpenSSL 3.0.16 is the recommended
25+
* OpenSSL 1.1.1 is the minimum version and OpenSSL 3.0.18 is the recommended
2626
minimum version for the :mod:`ssl` and :mod:`hashlib` extension modules.
2727

2828
* SQLite 3.15.2 for the :mod:`sqlite3` extension module.

0 commit comments

Comments
 (0)