forked from pool/python-cx_Freeze
- Update to 7.2.7:
* bdist_rpm: drop rpm2_mode and refactor spec_file * hooks: the optimized mode is the default for pip installations * hooks: support numpy 2.0 * Exit with non-zero exit code on exception * hooks: improve scipy hooks * hooks: fix matplotlib hooks used in zip_include_packages * hooks: fix scipy hooks used in zip_include_packages * linux: bdist_rpm depends on rpmbuild being installed * chore: use pytest-datafiles to run tests in temporary path * fix: zip_include_packages/zip_exclude_packages regression * chore: use pytest-xdist to speed up the tests * chore: drop support for python 3.7 * parser: support for lief 0.14 ParserConfig * chore: add basic support for Python 3.12 * fix: bdist_rpm should generate only binaries [linux] * samples: fix pydantic sample to work python < 3.10 * hooks: fix the sentry_sdk hook * hooks: move sklearn hook to a submodule * hooks: add boto3 * fix: bdist_rpm to pass tests in python 3.12b4 * hooks: multiprocessing support for forkserver and spawn * hooks: update sysconfig hook * hooks: PySide2/6 - shiboken2/6 in zip_include_packages * finder: add base modules at the end to simplify tests * hooks: fix for pyqt [conda linux] * hooks: move ssl hook to a submodule * hooks: fix pyside2 webengine [conda linux] * hooks: fix pyqt5 webengine [conda linux] * module: ModuleHook class to support inheritance OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=32
This commit is contained in:
@@ -16,29 +16,39 @@
|
||||
#
|
||||
|
||||
|
||||
# https://github.com/marcelotduarte/cx_Freeze/issues/2568
|
||||
%define skip_python313 1
|
||||
%define oldpython python
|
||||
Name: python-cx_Freeze
|
||||
Version: 6.15.16
|
||||
Version: 7.2.7
|
||||
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 python312.patch gh#marcelotduarte/cx_Freeze#1925
|
||||
Patch1: python312.patch
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module filelock >= 3.12.3}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module openpyxl}
|
||||
BuildRequires: %{python_module packaging >= 24}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-datafiles}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools >= 65}
|
||||
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: patchelf
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: patchelf
|
||||
Requires: python-filelock >= 3.12
|
||||
Requires: python-packaging >= 24
|
||||
Requires: python-setuptools >= 65
|
||||
%if 0%{python_version_nodots} < 311
|
||||
Requires: python-tomli >= 2.0.1
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# we provide same binary like the deprecated py2 variant
|
||||
@@ -75,7 +85,7 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%check
|
||||
# bdist_rpm is not long for this world, and it always execs the default Python
|
||||
%pytest_arch -k 'not (test_command_bdist_rpm or test_command_build_exe or test_command_build)'
|
||||
%pytest_arch -k 'not (test_command_bdist_rpm or test_command_build_exe or test_command_build or test_bdist_appimage)'
|
||||
|
||||
%post
|
||||
%python_install_alternative cxfreeze-quickstart
|
||||
@@ -91,6 +101,6 @@ export CFLAGS="%{optflags}"
|
||||
%python_alternative %{_bindir}/cxfreeze
|
||||
%python_alternative %{_bindir}/cxfreeze-quickstart
|
||||
%{python_sitearch}/cx_Freeze
|
||||
%{python_sitearch}/cx_Freeze-%{version}*info
|
||||
%{python_sitearch}/cx_Freeze-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user