14
0

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=38
This commit is contained in:
2025-03-31 05:26:28 +00:00
committed by Git OBS Bridge
parent 2c3685b54c
commit f112787ed1
5 changed files with 109 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2bae8a555e695248a6dd75322ca8867cc8fcd29d09ec6f1fc405519ac3e8433
size 3376786

3
8.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d9f70542cd78a366bbca8357b172bb9bed6d9f177a1cc4e89c030996465ead7
size 3278876

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Mar 31 05:25:46 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <adrian.glaubitz@suse.com> Thu Mar 20 07:52:59 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -16,16 +16,16 @@
# #
# https://github.com/marcelotduarte/cx_Freeze/issues/2568
%define skip_python313 1
%define oldpython python %define oldpython python
Name: python-cx_Freeze Name: python-cx_Freeze
Version: 7.2.10 Version: 8.0.0
Release: 0 Release: 0
Summary: Scripts to create standalone executables from Python scripts Summary: Scripts to create standalone executables from Python scripts
License: Python-2.0 License: Python-2.0
URL: https://github.com/anthony-tuininga/cx_Freeze URL: https://github.com/anthony-tuininga/cx_Freeze
Source: https://github.com/anthony-tuininga/cx_Freeze/archive/%{version}.tar.gz 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 base >= 3.9}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module filelock >= 3.12.3} BuildRequires: %{python_module filelock >= 3.12.3}
@@ -101,6 +101,6 @@ export CFLAGS="%{optflags}"
%python_alternative %{_bindir}/cxfreeze %python_alternative %{_bindir}/cxfreeze
%python_alternative %{_bindir}/cxfreeze-quickstart %python_alternative %{_bindir}/cxfreeze-quickstart
%{python_sitearch}/cx_Freeze %{python_sitearch}/cx_Freeze
%{python_sitearch}/cx_Freeze-%{version}.dist-info %{python_sitearch}/cx_freeze-%{version}.dist-info
%changelog %changelog

View File

@@ -0,0 +1,86 @@
From 4d1325fedc01defcc5053672fc8eeb47ef81db57 Mon Sep 17 00:00:00 2001
From: Marcelo Duarte <marcelotduarte@users.noreply.github.com>
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-"),