forked from pool/python312
- Update to 3.12.5:
- Tests
- gh-59022: Add tests for pkgutil.extend_path(). Patch by
Andreas Stocker.
- gh-99242: os.getloadavg() may throw OSError when
running regression tests under certain conditions (e.g.
chroot). This error is now caught and ignored, since
reporting load average is optional.
- gh-121084: Fix test_typing random leaks. Clear typing ABC
caches when running tests for refleaks (-R option): call
_abc_caches_clear() on typing abstract classes and their
subclasses. Patch by Victor Stinner.
- gh-121160: Add a test for
readline.set_history_length(). Note that this test may fail
on readline libraries.
- gh-121200: Fix test_expanduser_pwd2() of
test_posixpath. Call getpwnam() to get pw_dir, since it
can be different than getpwall() pw_dir. Patch by Victor
Stinner.
- gh-121188: When creating the JUnit XML file, regrtest
now escapes characters which are invalid in XML, such
as the chr(27) control character used in ANSI escape
sequences. Patch by Victor Stinner.
- Security
- gh-121957: Fixed missing audit events around interactive
use of Python, now also properly firing for python -i, as
well as for python -m asyncio. The event in question is
cpython.run_stdin.
- gh-122133: Authenticate the socket connection for the
socket.socketpair() fallback on platforms where AF_UNIX is
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=60
This commit is contained in:
@@ -1,9 +1,214 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 18:05:57 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to 3.12.5:
|
||||
- Tests
|
||||
- gh-59022: Add tests for pkgutil.extend_path(). Patch by
|
||||
Andreas Stocker.
|
||||
- gh-99242: os.getloadavg() may throw OSError when
|
||||
running regression tests under certain conditions (e.g.
|
||||
chroot). This error is now caught and ignored, since
|
||||
reporting load average is optional.
|
||||
- gh-121084: Fix test_typing random leaks. Clear typing ABC
|
||||
caches when running tests for refleaks (-R option): call
|
||||
_abc_caches_clear() on typing abstract classes and their
|
||||
subclasses. Patch by Victor Stinner.
|
||||
- gh-121160: Add a test for
|
||||
readline.set_history_length(). Note that this test may fail
|
||||
on readline libraries.
|
||||
- gh-121200: Fix test_expanduser_pwd2() of
|
||||
test_posixpath. Call getpwnam() to get pw_dir, since it
|
||||
can be different than getpwall() pw_dir. Patch by Victor
|
||||
Stinner.
|
||||
- gh-121188: When creating the JUnit XML file, regrtest
|
||||
now escapes characters which are invalid in XML, such
|
||||
as the chr(27) control character used in ANSI escape
|
||||
sequences. Patch by Victor Stinner.
|
||||
- Security
|
||||
- gh-121957: Fixed missing audit events around interactive
|
||||
use of Python, now also properly firing for python -i, as
|
||||
well as for python -m asyncio. The event in question is
|
||||
cpython.run_stdin.
|
||||
- gh-122133: Authenticate the socket connection for the
|
||||
socket.socketpair() fallback on platforms where AF_UNIX is
|
||||
not available like Windows.
|
||||
- Patch by Gregory P. Smith <greg@krypto.org> and Seth Larson
|
||||
<seth@python.org>. Reported by Ellie <el@horse64.org>
|
||||
- Library
|
||||
- gh-122744: Bump the version of pip bundled in ensurepip to
|
||||
version 24.2.
|
||||
- gh-122334: Fix crash when importing ssl after the main
|
||||
interpreter restarts.
|
||||
- gh-87320: In code.InteractiveInterpreter, handle exceptions
|
||||
caused by calling a non-default sys.excepthook(). Before,
|
||||
the exception bubbled up to the caller, ending the REPL.
|
||||
- gh-122400: Handle ValueErrors raised by os.stat() in
|
||||
filecmp.dircmp and filecmp.cmpfiles(). Patch by Bénédikt
|
||||
Tran.
|
||||
- gh-122311: Fix some error messages in pickle.
|
||||
- gh-121650: email headers with embedded newlines are
|
||||
now quoted on output. The generator will now refuse to
|
||||
serialize (write) headers that are unsafely folded or
|
||||
delimited; see verify_generated_headers. (Contributed by
|
||||
Bas Bloemsaat and Petr Viktorin in gh-121650; bsc#1228780,
|
||||
CVE-2024-6923).
|
||||
- gh-122332: Fixed segfault with asyncio.Task.get_coro() when
|
||||
using an eager task factory.
|
||||
- gh-122170: Handle ValueErrors raised by os.stat() in
|
||||
linecache. Patch by Bénédikt Tran.
|
||||
- gh-121723: Make logging.config.dictConfig() accept any
|
||||
object implementing the Queue public API. See the queue
|
||||
configuration section for details. Patch by Bénédikt Tran.
|
||||
- gh-82951: Serializing objects with complex __qualname__
|
||||
(such as unbound methods and nested classes) by name no
|
||||
longer involves serializing parent objects by value in
|
||||
pickle protocols < 4.
|
||||
- gh-120930: Fixed a bug introduced by gh-92081 that added an
|
||||
incorrect extra blank to encoded words occurring in wrapped
|
||||
headers.
|
||||
- gh-121474: Fix missing sanity check for parties arg in
|
||||
threading.Barrier constructor. Patch by Clinton Christian
|
||||
(pygeek).
|
||||
- gh-121025: Improve the __repr__() of
|
||||
functools.partialmethod. Patch by Bénédikt Tran.
|
||||
- gh-121018: Fixed issues where
|
||||
argparse.ArgumentParser.parse_args() did not honor
|
||||
exit_on_error=False. Based on patch by Ben Hsing.
|
||||
- gh-119614: Fix truncation of strings with embedded null
|
||||
characters in some internal operations in tkinter.
|
||||
- gh-120910: When reading installed files from an egg, use
|
||||
relative_to(walk_up=True) to honor files installed outside
|
||||
of the installation root.
|
||||
- gh-101830: Accessing the tkinter object’s string
|
||||
representation no longer converts the underlying Tcl object
|
||||
to a string on Windows.
|
||||
- gh-120811: Fix possible memory leak in
|
||||
contextvars.Context.run().
|
||||
- gh-120769: Make empty line in pdb repeats the last command
|
||||
even when the command is from cmdqueue.
|
||||
- gh-120732: Fix name passing to unittest.mock.Mock object
|
||||
when using unittest.mock.create_autospec().
|
||||
- gh-120495: Fix incorrect exception handling in Tab
|
||||
Nanny. Patch by Wulian233.
|
||||
- gh-120343: Fix column offset reporting for tokens that come
|
||||
after multiline f-strings in the tokenize module.
|
||||
- gh-119600: Fix unittest.mock.patch() to not read attributes
|
||||
of the target when new_callable is set. Patch by Robert
|
||||
Collins.
|
||||
- gh-120289: Fixed the use-after-free issue in cProfile by
|
||||
disallowing disable() and clear() in external timers.
|
||||
- gh-114053: Fix edge-case bug where typing.get_type_hints()
|
||||
would produce incorrect results if type parameters in a
|
||||
class scope were overridden by assignments in a class scope
|
||||
and from __future__ import annotations semantics were
|
||||
enabled. Patch by Alex Waygood.
|
||||
- gh-114053: Fix erroneous NameError when calling
|
||||
inspect.get_annotations() with eval_str=True` on a class
|
||||
that made use of PEP 695 type parameters in a module that
|
||||
had from __future__ import annotations at the top of the
|
||||
file. Patch by Alex Waygood.
|
||||
- gh-120268: Prohibit passing None to pure-Python
|
||||
datetime.date.fromtimestamp() to achieve consistency with
|
||||
C-extension implementation.
|
||||
- gh-120244: Fix memory leak in re.sub() when the replacement
|
||||
string contains backreferences.
|
||||
- gh-120211: Fix tkinter.ttk with Tcl/Tk 9.0.
|
||||
- gh-71587: Fix crash in C version of
|
||||
datetime.datetime.strptime() when called again on the
|
||||
restarted interpreter.
|
||||
- gh-117983: Defer the threading import in importlib.util
|
||||
until lazy loading is used.
|
||||
- gh-119698: Fix symtable.Class.get_methods() and document
|
||||
its behaviour. Patch by Bénédikt Tran.
|
||||
- gh-120121: Add concurrent.futures.InvalidStateError to
|
||||
module’s __all__.
|
||||
- gh-112672: Support building tkinter with Tcl 9.0.
|
||||
- gh-65454: unittest.mock.Mock.attach_mock() no longer
|
||||
triggers a call to a PropertyMock being attached.
|
||||
- gh-81936: help() and showtopic() methods now respect a
|
||||
configured output argument to pydoc.Helper and not use the
|
||||
pager in such cases. Patch by Enrico Tröger.
|
||||
- gh-119577: The DeprecationWarning emitted when testing
|
||||
the truth value of an xml.etree.ElementTree.Element now
|
||||
describes unconditionally returning True in a future
|
||||
version rather than raising an exception in Python 3.14.
|
||||
- gh-119506: Fix io.TextIOWrapper.write() method breaks
|
||||
internal buffer when the method is called again during
|
||||
flushing internal buffer.
|
||||
- gh-119189: When using the ** operator or pow() with
|
||||
Fraction as the base and an exponent that is not rational,
|
||||
a float, or a complex, the fraction is no longer converted
|
||||
to a float.
|
||||
- gh-105623: Fix performance degradation in
|
||||
logging.handlers.RotatingFileHandler. Patch by Craig
|
||||
Robson.
|
||||
- bpo-39324: Add mime type mapping for .md <-> text/markdown
|
||||
- IDLE
|
||||
- gh-122482: Change About IDLE to direct users to
|
||||
discuss.python.org instead of the now unused idle-dev email
|
||||
and mailing list.
|
||||
- gh-78889: Stop Shell freezes by blocking user access to
|
||||
non-method sys.stdout.shell attributes, which are all
|
||||
private.
|
||||
- gh-120104: Fix padding in config and search dialog windows
|
||||
in IDLE.
|
||||
- Documentation
|
||||
- gh-121749: Fix documentation for PyModule_AddObjectRef().
|
||||
- gh-120012: Clarify the behaviours of
|
||||
multiprocessing.Queue.empty() and
|
||||
multiprocessing.SimpleQueue.empty() on closed queues. Patch
|
||||
by Bénédikt Tran.
|
||||
- gh-121871: Documentation HTML varies from timestamp. Patch by
|
||||
Bernhard M. Wiedemann (bsc#1227999).
|
||||
- Core and Builtins
|
||||
- gh-122208: Dictionary watchers now only deliver the
|
||||
PyDict_EVENT_ADDED event when the insertion is in a known
|
||||
good state to succeed.
|
||||
- gh-122300: Preserve AST nodes for f-string with
|
||||
single-element format specifiers. Patch by Pablo Galindo
|
||||
- gh-122029: Emit c_call events in sys.setprofile() when a
|
||||
PyMethodObject pointing to a PyCFunction is called.
|
||||
- gh-122026: Fix a bug that caused the tokenizer to not
|
||||
correctly identify mismatched parentheses inside f-strings
|
||||
in some situations. Patch by Pablo Galindo
|
||||
- gh-121657: Improve the SyntaxError message if the user
|
||||
tries to use yield from outside a function.
|
||||
- gh-117482: Unexpected slot wrappers are no longer created
|
||||
for builtin static types in subinterpreters.
|
||||
- gh-121439: Allow tuples of length 20 in the freelist to be
|
||||
reused.
|
||||
- gh-121130: Fix f-strings with debug expressions in format
|
||||
specifiers. Patch by Pablo Galindo
|
||||
- gh-120722: Correctly set the bytecode position on return
|
||||
instructions within lambdas. Patch by Jelle Zijlstra.
|
||||
- gh-120384: Fix an array out of bounds crash in
|
||||
list_ass_subscript, which could be invoked via some
|
||||
specificly tailored input: including concurrent
|
||||
modification of a list object, where one thread assigns a
|
||||
slice and another clears it.
|
||||
- gh-120380: Fix Python implementation of pickle.Pickler for
|
||||
bytes and bytearray objects when using protocol version
|
||||
5. Patch by Bénédikt Tran.
|
||||
- gh-93691: Fix source locations of instructions generated
|
||||
for the iterator of a for statement.
|
||||
- gh-120198: Fix a crash when multiple threads read and write
|
||||
to the same __class__ of an object concurrently.
|
||||
- gh-120298: Fix use-after free in list_richcompare_impl
|
||||
which can be invoked via some specificly tailored evil
|
||||
input.
|
||||
- gh-119666: Fix a compiler crash in the case where two
|
||||
comprehensions in class scope both reference __class__.
|
||||
- bpo-24766: Fix handling of doc argument to subclasses of
|
||||
property.
|
||||
- Build
|
||||
- gh-120671: Fix failing configure tests due to a missing
|
||||
space when appending to CFLAGS.
|
||||
- gh-115983: Skip building test modules that must be built as
|
||||
shared under WASI.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 7 13:40:44 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Add CVE-2024-6923-email-hdr-inject.patch to prevent email
|
||||
header injection due to unquoted newlines (bsc#1228780,
|
||||
CVE-2024-6923).
|
||||
- %{profileopt} variable is set according to the variable
|
||||
%{do_profiling} (bsc#1227999)
|
||||
- Update bluez-devel-vendor.tar.xz
|
||||
@@ -14,19 +219,6 @@ Mon Jul 22 21:20:55 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
- Remove %suse_update_desktop_file macro as it is not useful any
|
||||
more.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 18 22:37:07 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Adding bso1227999-reproducible-builds.patch fixing bsc#1227999
|
||||
adding reproducibility patches from gh#python/cpython!121872
|
||||
and gh#python/cpython!121883.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 15 12:14:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Stop using %%defattr, it seems to be breaking proper executable
|
||||
attributes on /usr/bin/ scripts (bsc#1227378).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 4 16:04:05 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user