From c6a9f6fe3baf1c01b3fc42f1ef1ad2919c2e370f Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 7 Oct 2025 17:07:19 +0200 Subject: [PATCH] Update to Python 3.14.0 --- 00251-change-user-install-location.patch | 8 ++++---- ...y-install-wheel-in-test-venvs-when-setuptools-71.patch | 4 ++-- ...-skip-tests-not-working-with-older-expat-version.patch | 4 ++-- python3.14.spec | 5 ++++- sources | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/00251-change-user-install-location.patch b/00251-change-user-install-location.patch index a207721..ff9c69b 100644 --- a/00251-change-user-install-location.patch +++ b/00251-change-user-install-location.patch @@ -51,7 +51,7 @@ index f932719715..e4ef914ec2 100644 if os.path.isdir(sitedir): addsitedir(sitedir, known_paths) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py -index f93b98dd68..f6dbd5f5c3 100644 +index 2ecbff222f..7211773bad 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -106,6 +106,12 @@ @@ -130,7 +130,7 @@ index f93b98dd68..f6dbd5f5c3 100644 # On Windows we want to substitute 'lib' for schemes rather # than the native value (without modifying vars, in case it diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py -index 9faabc2e25..b1532ad90b 100644 +index 09eff11179..c227815ebd 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -132,8 +132,19 @@ def test_get_path(self): @@ -154,7 +154,7 @@ index 9faabc2e25..b1532ad90b 100644 os.path.normpath(expected), ) -@@ -388,7 +399,7 @@ def test_get_config_h_filename(self): +@@ -395,7 +406,7 @@ def test_get_config_h_filename(self): self.assertTrue(os.path.isfile(config_h), config_h) def test_get_scheme_names(self): @@ -163,7 +163,7 @@ index 9faabc2e25..b1532ad90b 100644 if HAS_USER_BASE: wanted.extend(['nt_user', 'osx_framework_user', 'posix_user']) self.assertEqual(get_scheme_names(), tuple(sorted(wanted))) -@@ -400,6 +411,8 @@ def test_symlink(self): # Issue 7880 +@@ -407,6 +418,8 @@ def test_symlink(self): # Issue 7880 cmd = "-c", "import sysconfig; print(sysconfig.get_platform())" self.assertEqual(py.call_real(*cmd), py.call_link(*cmd)) diff --git a/00461-downstream-only-install-wheel-in-test-venvs-when-setuptools-71.patch b/00461-downstream-only-install-wheel-in-test-venvs-when-setuptools-71.patch index b59776b..aea27d9 100644 --- a/00461-downstream-only-install-wheel-in-test-venvs-when-setuptools-71.patch +++ b/00461-downstream-only-install-wheel-in-test-venvs-when-setuptools-71.patch @@ -10,10 +10,10 @@ This can be removed when Fedora 41 goes EOL (or updates setuptools). 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py -index a719e49ef3..209f77d52d 100644 +index 88f6110351..210ddcdbe3 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py -@@ -2502,9 +2502,16 @@ def run_command(cmd): +@@ -2512,9 +2512,16 @@ def run_command(cmd): else: python = os.path.join(venv, 'bin', python_exe) diff --git a/00466-downstream-only-skip-tests-not-working-with-older-expat-version.patch b/00466-downstream-only-skip-tests-not-working-with-older-expat-version.patch index 2ae139a..953c18d 100644 --- a/00466-downstream-only-skip-tests-not-working-with-older-expat-version.patch +++ b/00466-downstream-only-skip-tests-not-working-with-older-expat-version.patch @@ -15,10 +15,10 @@ which is tested as working. 3 files changed, 10 insertions(+) diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py -index 1d56ccd71c..5ef5517828 100644 +index a091430463..55ebf34c52 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py -@@ -790,6 +790,8 @@ def start_element(name, _): +@@ -826,6 +826,8 @@ def start_element(name, _): self.assertEqual(started, ['doc']) diff --git a/python3.14.spec b/python3.14.spec index 6fa4862..46f9134 100644 --- a/python3.14.spec +++ b/python3.14.spec @@ -46,7 +46,7 @@ URL: https://www.python.org/ # WARNING When rebasing to a new Python version, # remember to update the python3-docs package as well %global general_version %{pybasever}.0 -%global prerel rc3 +#global prerel ... %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} Release: 1%{?dist} @@ -1771,6 +1771,9 @@ CheckPython freethreading # ====================================================== %changelog +* Tue Oct 07 2025 Karolina Surma - 3.14.0-1 +- Update to Python 3.14.0 + * Thu Sep 18 2025 Karolina Surma - 3.14.0~rc3-1 - Update to Python 3.14.0rc3 - The .pyc magic number was bumped again diff --git a/sources b/sources index 20f5496..3a6d2f0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Python-3.14.0rc3.tar.xz) = 15c55660fc0168bd0f2348fa6d669352b422a626b151b7a7131eb338459e552a15908874ad872eea0eea48801d5a489647e1643bf00548fd6d9c1aff6fc2044f +SHA512 (Python-3.14.0.tar.xz) = 46e9e205c3a084cba68bf7f267ab2fd0862a05430165e0eb713f2d6b3a1a4452f72f563de5de55caea824be9df56f66dd568f4814941667a9bb0954229772c53