diff --git a/7.2.10.tar.gz b/7.2.10.tar.gz deleted file mode 100644 index 3c6fffb..0000000 --- a/7.2.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2bae8a555e695248a6dd75322ca8867cc8fcd29d09ec6f1fc405519ac3e8433 -size 3376786 diff --git a/8.0.0.tar.gz b/8.0.0.tar.gz new file mode 100644 index 0000000..fa5b6bd --- /dev/null +++ b/8.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d9f70542cd78a366bbca8357b172bb9bed6d9f177a1cc4e89c030996465ead7 +size 3278876 diff --git a/python-cx_Freeze.changes b/python-cx_Freeze.changes index 1597390..f09e131 100644 --- a/python-cx_Freeze.changes +++ b/python-cx_Freeze.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Thu Apr 3 01:23:28 UTC 2025 - Steve Kowalik + +- Update to 8.0.0: + * Python 3.13 support. + * Python 3.13 free-threaded support for Linux and macOS. + * Download and extract the MSVC Redistributable files. + * Implement bases using PEP587 - Python Initialization Configuration. + * Drop Python 3.8 support. + * New and Improved hooks. + * Bug fixes and improvements. +- Add patch use-only-console-on-python-313.patch: + * Only build legacy console for Python 3.12 and earlier. +- Stop skipping Python 3.13, it's supported upstream. +- Normalize metadata directory name. + ------------------------------------------------------------------- Thu Mar 20 07:52:59 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-cx_Freeze.spec b/python-cx_Freeze.spec index 01891a2..60c88ea 100644 --- a/python-cx_Freeze.spec +++ b/python-cx_Freeze.spec @@ -16,16 +16,16 @@ # -# https://github.com/marcelotduarte/cx_Freeze/issues/2568 -%define skip_python313 1 %define oldpython python Name: python-cx_Freeze -Version: 7.2.10 +Version: 8.0.0 Release: 0 Summary: Scripts to create standalone executables from Python scripts License: Python-2.0 URL: https://github.com/anthony-tuininga/cx_Freeze Source: https://github.com/anthony-tuininga/cx_Freeze/archive/%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#marcelotduarte/cx_Freeze#2842 +Patch0: use-only-console-on-python-313.patch BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module devel} BuildRequires: %{python_module filelock >= 3.12.3} @@ -101,6 +101,6 @@ export CFLAGS="%{optflags}" %python_alternative %{_bindir}/cxfreeze %python_alternative %{_bindir}/cxfreeze-quickstart %{python_sitearch}/cx_Freeze -%{python_sitearch}/cx_Freeze-%{version}.dist-info +%{python_sitearch}/cx_[Ff]reeze-%{version}.dist-info %changelog diff --git a/use-only-console-on-python-313.patch b/use-only-console-on-python-313.patch new file mode 100644 index 0000000..c70e6fb --- /dev/null +++ b/use-only-console-on-python-313.patch @@ -0,0 +1,86 @@ +From 4d1325fedc01defcc5053672fc8eeb47ef81db57 Mon Sep 17 00:00:00 2001 +From: Marcelo Duarte +Date: Fri, 21 Mar 2025 18:27:46 -0300 +Subject: [PATCH] fix: use only console based on PEP587 on Python 3.13 + +--- + cx_Freeze/executable.py | 11 +++-------- + setup.py | 6 +----- + tests/test_executables.py | 8 +------- + 3 files changed, 5 insertions(+), 20 deletions(-) + +diff --git a/cx_Freeze/executable.py b/cx_Freeze/executable.py +index b19b50555..56cc0f041 100644 +--- a/cx_Freeze/executable.py ++++ b/cx_Freeze/executable.py +@@ -11,7 +11,6 @@ + from typing import TYPE_CHECKING + + from cx_Freeze._compat import ( +- ABI_THREAD, + EXE_SUFFIX, + IS_MACOS, + IS_MINGW, +@@ -75,14 +74,10 @@ def base(self) -> Path: + + @base.setter + def base(self, name: str | Path | None) -> None: +- # The default base is the legacy console, except for Python 3.13t and +- # Python 3.13 on macOS, that supports only the new console ++ # The default base is the legacy console, except for ++ # Python 3.13, that supports only the new console + version = sys.version_info[:2] +- if ( +- version <= (3, 13) +- and ABI_THREAD == "" +- and not (IS_MACOS and version == (3, 13)) +- ): ++ if version < (3, 13): + name = name or "console_legacy" + else: + name = name or "console" +diff --git a/setup.py b/setup.py +index 7185a255a..8278a42f4 100644 +--- a/setup.py ++++ b/setup.py +@@ -285,11 +285,7 @@ def get_extensions() -> list[Extension]: + optional=optional, + ) + ] +- if ( +- version <= (3, 13) +- and abi_thread == "" +- and not (IS_MACOS and version == (3, 13)) +- ): ++ if version < (3, 13): + extensions += [ + Extension( + "cx_Freeze.bases.console_legacy", +diff --git a/tests/test_executables.py b/tests/test_executables.py +index cdba2c9de..7e95bf161 100644 +--- a/tests/test_executables.py ++++ b/tests/test_executables.py +@@ -12,10 +12,8 @@ + + from cx_Freeze import Executable + from cx_Freeze._compat import ( +- ABI_THREAD, + BUILD_EXE_DIR, + EXE_SUFFIX, +- IS_MACOS, + IS_MINGW, + IS_WINDOWS, + ) +@@ -242,11 +240,7 @@ def test_executables( + ("icon.ico", "icon.icns", "icon.png", "icon.svg"), + ), + ] +-if ( +- sys.version_info[:2] <= (3, 13) +- and ABI_THREAD == "" +- and not (IS_MACOS and sys.version_info[:2] == (3, 13)) +-): ++if sys.version_info[:2] < (3, 13): + TEST_VALID_PARAMETERS += [ + ("base", None, "console_legacy-"), + ("base", "console_legacy", "console_legacy-"),