commit python313 for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python313 for openSUSE:Factory checked in at 2024-07-25 15:38:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python313 (Old) and /work/SRC/openSUSE:Factory/.python313.new.1882 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python313" Thu Jul 25 15:38:59 2024 rev:3 rq:1189339 version:3.13.0~b4 Changes: -------- --- /work/SRC/openSUSE:Factory/python313/python313.changes 2024-07-12 17:04:56.896791301 +0200 +++ /work/SRC/openSUSE:Factory/.python313.new.1882/python313.changes 2024-07-25 16:00:13.093893554 +0200 @@ -1,0 +2,152 @@ +Wed Jul 24 08:30:54 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com> + +- Update F00251-change-user-install-location.patch to install packages + in /usr/local by default when using pip outside of a RPMBUILD + environment. + +------------------------------------------------------------------- +Mon Jul 22 18:55:00 UTC 2024 - Matej Cepl <mcepl@cepl.eu> + +- Update to 3.13.0~b4: + - Tests + - 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. + - 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. + - 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. + - Library + - gh-57141: The shallow argument to filecmp.dircmp (new in + Python 3.13) is now keyword-only. + - gh-121245: Simplify handling of the history file in + site.register_readline() helper. The CAN_USE_PYREPL + variable now will be initialized, when imported. + - gh-121332: Fix constructor of ast nodes with custom + _attributes. Previously, passing custom attributes would + raise a DeprecationWarning. Passing arguments to the + constructor that are not in _fields or _attributes remains + deprecated. + - gh-121279: Avoid NameError for the warnings module when + accessing the depracated atributes of the importlib.abc + module. + - gh-121245: Fix a bug in the handling of the command history + of the new REPL that caused the history file to be wiped at + REPL exit. + - gh-87744: Fix waitpid race while calling send_signal() in + asyncio. + - gh-121018: Fixed other issues where argparse.ArgumentParser + did not honor exit_on_error=False. + - gh-120678: Fix regression in the new REPL that meant that + globals from files passed using the -i argument would not + be included in the REPL’s global namespace. + - gh-120782: Fix wrong references of the datetime types after + reloading the module. + - gh-120713: datetime.datetime.strftime() now 0-pads years + with less than four digits for the format specifiers %Y and + %G on Linux. + - gh-117983: Defer the threading import in importlib.util + until lazy loading is used. + - 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-118714: Allow restart in post-mortem debugging of + pdb. Removed restart message when the user quits pdb from + post-mortem mode. + - gh-105623: Fix performance degradation in + logging.handlers.RotatingFileHandler. + - IDLE + - gh-78889: Stop Shell freezes by blocking user access to + non-method sys.stdout.shell attributes, which are all + private. + - Documentation + - gh-121749: Fix documentation for PyModule_AddObjectRef(). + - gh-120012: Clarify the behaviours of + multiprocessing.Queue.empty() and + multiprocessing.SimpleQueue.empty() on closed queues. + - Core and Builtins + - gh-121860: Fix crash when rematerializing a managed + dictionary after it was deleted. + - gh-121814: Fixed the SegFault when PyEval_SetTrace() is + used with no Python frame on stack. + - gh-121295: Fix PyREPL console getting into a blocked state + after interrupting a long paste + - gh-121794: Fix bug in free-threaded Python where a + resurrected object could lead to a negative ref count + assertion failure. + - gh-121657: Improve the SyntaxError message if the user + tries to use yield from outside a function. + - gh-121609: Fix pasting of characters containing unicode + character joiners in the new REPL. Patch by Marta Gomez + Macias + - gh-117482: Unexpected slot wrappers are no longer created + for builtin static types in subinterpreters. + - gh-121499: Fix a bug affecting how multi-line history was + being rendered in the new REPL after interacting with the + new screen cache. Patch by Pablo Galindo + - gh-121497: Fix a bug that was preventing the REPL to + correctly respect the history when an input hook was + set. Patch by Pablo Galindo + - gh-121012: Tier 2 execution now ensures that list iterators + remain exhausted, once they become exhausted. + - gh-121439: Allow tuples of length 20 in the freelist to be + reused. + - gh-121368: Fix race condition in _PyType_Lookup in the + free-threaded build due to a missing memory fence. This + could lead to _PyType_Lookup returning incorrect results on + arm64. + - gh-121130: Fix f-strings with debug expressions in format + specifiers. Patch by Pablo Galindo + - gh-121115: PyLong_AsNativeBytes() no longer + uses __index__() methods by default. The + Py_ASNATIVEBYTES_ALLOW_INDEX flag has been added to allow + it. + - C API + - gh-89364: Export the PySignal_SetWakeupFd() + function. Previously, the function was documented but + it couldn’t be used in 3rd party code. Patch by Victor + Stinner. + - gh-113993: PyUnicode_InternInPlace() no longer + Seprevents its argument from being garbage collected + Several functions that take char * are now documented + Seas possibly preventing string objects from being + Segarbage collected; refer to their documentation + Sefor details: PyUnicode_InternFromString(), + SePyDict_SetItemString(), PyObject_SetAttrString(), + SePyObject_DelAttrString(), PyUnicode_InternFromString(), + Seand PyModule_Add* convenience functions + - gh-113601: Removed debug build assertions related to + interning strings, which were falsely triggered by stable + ABI extensions. + - gh-112136: Restore the private _PyArg_Parser structure and + the private _PyArg_ParseTupleAndKeywordsFast() function, + previously removed in Python 3.13 alpha 1. Patch by Victor + Stinner. + - Build + - gh-120371: Support WASI SDK 22 by explicitly skipping + functions that are just stubs in wasi-libc. + - gh-121731: Fix mimalloc compile error on GNU/Hurd + - gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in + mimalloc. + - gh-121467: Fix a Makefile bug that prevented mimalloc + header files from being installed. + - gh-121103: On POSIX systems, excluding macOS framework + installs, the lib directory for the free-threaded build now + includes a “t” suffix to avoid conflicts with a co-located + default build installation. + - gh-120831: The default minimum iOS version was increased to + 13.0. + - gh-113565: Improve curses and curses.panel dependency + checks in configure. +- Remove %suse_update_desktop_file macro as it is not useful any + more. + +------------------------------------------------------------------- Old: ---- Python-3.13.0b3.tar.xz Python-3.13.0b3.tar.xz.asc New: ---- Python-3.13.0b4.tar.xz Python-3.13.0b4.tar.xz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python313.spec ++++++ --- /var/tmp/diff_new_pack.062U7W/_old 2024-07-25 16:00:13.985929223 +0200 +++ /var/tmp/diff_new_pack.062U7W/_new 2024-07-25 16:00:13.985929223 +0200 @@ -112,8 +112,8 @@ %define dynlib() %{sitedir}/lib-dynload/%{1}.cpython-%{abi_tag}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}.so %bcond_without profileopt Name: %{python_pkg_name}%{psuffix} -Version: 3.13.0~b3 -%define tarversion 3.13.0b3 +Version: 3.13.0~b4 +%define tarversion 3.13.0b4 %define tarname Python-%{tarversion} Release: 0 Summary: Python 3 Interpreter @@ -218,7 +218,6 @@ BuildRequires: readline-devel BuildRequires: sqlite-devel BuildRequires: timezone -BuildRequires: update-desktop-files BuildRequires: pkgconfig(ncurses) BuildRequires: pkgconfig(tk) BuildRequires: pkgconfig(x11) @@ -680,7 +679,6 @@ cp %{SOURCE19} idle%{python_version}.desktop sed -i -e 's:idle3:idle%{python_version}:g' idle%{python_version}.desktop install -m 644 -D -t %{buildroot}%{_datadir}/applications idle%{python_version}.desktop -%suse_update_desktop_file idle%{python_version} cp %{SOURCE20} idle%{python_version}.appdata.xml sed -i -e 's:idle3.desktop:idle%{python_version}.desktop:g' idle%{python_version}.appdata.xml @@ -793,6 +791,7 @@ %files -n %{python_pkg_name}-curses %{sitedir}/curses %{dynlib _curses} +%{dynlib _curses_panel} %files -n %{python_pkg_name}-dbm %{sitedir}/dbm ++++++ F00251-change-user-install-location.patch ++++++ --- /var/tmp/diff_new_pack.062U7W/_old 2024-07-25 16:00:14.013930342 +0200 +++ /var/tmp/diff_new_pack.062U7W/_new 2024-07-25 16:00:14.017930502 +0200 @@ -24,31 +24,15 @@ Co-authored-by: Michal Cyprian <m.cyprian@gmail.com> Co-authored-by: Lumír Balhar <frenzy.madness@gmail.com> --- - Lib/site.py | 9 ++++++++- - Lib/test/test_sysconfig.py | 17 +++++++++++++++-- - 2 files changed, 23 insertions(+), 3 deletions(-) + Lib/site.py | 9 ++++++- + Lib/sysconfig.py | 49 +++++++++++++++++++++++++++++++++++++- + Lib/test/test_sysconfig.py | 17 +++++++++++-- + 3 files changed, 71 insertions(+), 4 deletions(-) ---- a/Lib/site.py -+++ b/Lib/site.py -@@ -406,8 +406,15 @@ def getsitepackages(prefixes=None): - return sitepackages - - def addsitepackages(known_paths, prefixes=None): -- """Add site-packages to sys.path""" -+ """Add site-packages to sys.path -+ -+ '/usr/local' is included in PREFIXES if RPM build is not detected -+ to make packages installed into this location visible. -+ -+ """ - _trace("Processing global site-packages") -+ if ENABLE_USER_SITE and 'RPM_BUILD_ROOT' not in os.environ: -+ PREFIXES.insert(0, "/usr/local") - for sitedir in getsitepackages(prefixes): - if os.path.isdir(sitedir): - addsitedir(sitedir, known_paths) ---- a/Lib/test/test_sysconfig.py -+++ b/Lib/test/test_sysconfig.py +Index: Python-3.13.0b4/Lib/test/test_sysconfig.py +=================================================================== +--- Python-3.13.0b4.orig/Lib/test/test_sysconfig.py ++++ Python-3.13.0b4/Lib/test/test_sysconfig.py @@ -121,8 +121,19 @@ class TestSysConfig(unittest.TestCase): for scheme in _INSTALL_SCHEMES: for name in _INSTALL_SCHEMES[scheme]: @@ -88,4 +72,82 @@ def test_user_similar(self): # Issue #8759: make sure the posix scheme for the users # is similar to the global posix_prefix one +Index: Python-3.13.0b4/Lib/sysconfig/__init__.py +=================================================================== +--- Python-3.13.0b4.orig/Lib/sysconfig/__init__.py ++++ Python-3.13.0b4/Lib/sysconfig/__init__.py +@@ -106,6 +106,11 @@ if os.name == 'nt': + else: + _INSTALL_SCHEMES['venv'] = _INSTALL_SCHEMES['posix_venv'] + ++# For a brief period of time in the Fedora 36 life cycle, ++# this installation scheme existed and was documented in the release notes. ++# For backwards compatibility, we keep it here (at least on 3.10 and 3.11). ++_INSTALL_SCHEMES['rpm_prefix'] = _INSTALL_SCHEMES['posix_prefix'] ++ + def _get_implementation(): + return 'Python' + +@@ -167,6 +172,19 @@ if _HAS_USER_BASE: + }, + } + ++# This is used by distutils.command.install in the stdlib ++# as well as pypa/distutils (e.g. bundled in setuptools). ++# The self.prefix value is set to sys.prefix + /local/ ++# if neither RPM build nor virtual environment is ++# detected to make distutils install packages ++# into the separate location. ++# https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe ++if (not (hasattr(sys, 'real_prefix') or ++ sys.prefix != sys.base_prefix) and ++ 'RPM_BUILD_ROOT' not in os.environ): ++ _prefix_addition = '/local' ++ ++ + _SCHEME_KEYS = ('stdlib', 'platstdlib', 'purelib', 'platlib', 'include', + 'scripts', 'data') + +@@ -261,11 +279,40 @@ def _extend_dict(target_dict, other_dict + target_dict[key] = value + + ++_CONFIG_VARS_LOCAL = None ++ ++ ++def _config_vars_local(): ++ # This function returns the config vars with prefixes amended to /usr/local ++ # https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe ++ global _CONFIG_VARS_LOCAL ++ if _CONFIG_VARS_LOCAL is None: ++ _CONFIG_VARS_LOCAL = dict(get_config_vars()) ++ _CONFIG_VARS_LOCAL['base'] = '/usr/local' ++ _CONFIG_VARS_LOCAL['platbase'] = '/usr/local' ++ return _CONFIG_VARS_LOCAL ++ ++ + def _expand_vars(scheme, vars): + res = {} + if vars is None: + vars = {} +- _extend_dict(vars, get_config_vars()) ++ ++ # when we are not in a virtual environment or an RPM build ++ # we change '/usr' to '/usr/local' ++ # to avoid surprises, we explicitly check for the /usr/ prefix ++ # Python virtual environments have different prefixes ++ # we only do this for posix_prefix, not to mangle the venv scheme ++ # posix_prefix is used by sudo pip install ++ # we only change the defaults here, so explicit --prefix will take precedence ++ # https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe ++ if (scheme == 'posix_prefix' and ++ _PREFIX == '/usr' and ++ 'RPM_BUILD_ROOT' not in os.environ): ++ _extend_dict(vars, _config_vars_local()) ++ else: ++ _extend_dict(vars, get_config_vars()) ++ + if os.name == 'nt': + # On Windows we want to substitute 'lib' for schemes rather + # than the native value (without modifying vars, in case it ++++++ Python-3.13.0b3.tar.xz -> Python-3.13.0b4.tar.xz ++++++ /work/SRC/openSUSE:Factory/python313/Python-3.13.0b3.tar.xz /work/SRC/openSUSE:Factory/.python313.new.1882/Python-3.13.0b4.tar.xz differ: char 26, line 1 ++++++ bpo-31046_ensurepip_honours_prefix.patch ++++++ --- /var/tmp/diff_new_pack.062U7W/_old 2024-07-25 16:00:14.113934341 +0200 +++ /var/tmp/diff_new_pack.062U7W/_new 2024-07-25 16:00:14.113934341 +0200 @@ -139,7 +139,7 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -2142,7 +2142,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTAL +@@ -2144,7 +2144,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTAL install|*) ensurepip="" ;; \ esac; \ $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ @@ -148,7 +148,7 @@ fi .PHONY: altinstall -@@ -2153,7 +2153,7 @@ altinstall: commoninstall +@@ -2155,7 +2155,7 @@ altinstall: commoninstall install|*) ensurepip="--altinstall" ;; \ esac; \ $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ ++++++ fix_configure_rst.patch ++++++ --- /var/tmp/diff_new_pack.062U7W/_old 2024-07-25 16:00:14.141935461 +0200 +++ /var/tmp/diff_new_pack.062U7W/_new 2024-07-25 16:00:14.141935461 +0200 @@ -4,7 +4,7 @@ --- a/Misc/NEWS +++ b/Misc/NEWS -@@ -17608,7 +17608,7 @@ C API +@@ -17527,7 +17527,7 @@ C API - bpo-40939: Removed documentation for the removed ``PyParser_*`` C API. - bpo-43795: The list in :ref:`limited-api-list` now shows the public name ++++++ python-3.3.0b1-fix_date_time_compiler.patch ++++++ --- /var/tmp/diff_new_pack.062U7W/_old 2024-07-25 16:00:14.213938340 +0200 +++ /var/tmp/diff_new_pack.062U7W/_new 2024-07-25 16:00:14.213938340 +0200 @@ -4,7 +4,7 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1664,11 +1664,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ +@@ -1666,11 +1666,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ $(DTRACE_OBJS) \ $(srcdir)/Modules/getbuildinfo.c $(CC) -c $(PY_CORE_CFLAGS) \
participants (1)
-
Source-Sync