14
0
Files
python-cx_Freeze/python-cx_Freeze.spec

105 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-cx_Freeze
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define oldpython python
%bcond_without libalternatives
Name: python-cx_Freeze
Version: 8.0.0
Release: 0
Summary: Scripts to create standalone executables from Python scripts
License: Python-2.0
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
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}
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module packaging >= 24}
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-datafiles}
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
BuildRequires: %{python_module pytest-mock}
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 65}
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: chrpath
BuildRequires: fdupes
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
BuildRequires: patchelf
BuildRequires: python-rpm-macros
Requires: alts
Requires: patchelf
Requires: python-filelock >= 3.12
Requires: python-packaging >= 24
Requires: python-setuptools >= 65
# we provide same binary like the deprecated py2 variant
Conflicts: %{oldpython}-cx_Freeze
%if 0%{python_version_nodots} < 311
Requires: python-tomli >= 2.0.1
%endif
%python_subpackages
%description
CX_Freeze is a set of scripts and modules for turning Python scripts
into executables in much the same way that py2exe and py2app do.
It works by bundling Python executables and libraries from the local
Python installation. As such, the distribution produced by CX_Freeze
shares the very same dependencies. System libraries are not bundled
however, so additional dependencies may need to be manually installed
before being able to run "cx-frozen" executables that were created by
other systems.
%prep
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
%autosetup -p1 -n cx_Freeze-%{version}
sed -i -e '/^#!\//, 1d' samples/*/*.py
sed -i -e 's/-nauto//' pyproject.toml
chmod a-x cx_Freeze/initscripts/*.py
%build
export CFLAGS="%{optflags}"
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
%pyproject_wheel
%install
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/cxfreeze-quickstart
%python_clone -a %{buildroot}%{_bindir}/cxfreeze
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
%python_expand chrpath -d %{buildroot}%{$python_sitearch}/cx_Freeze/bases/console*
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
# bdist_rpm is not long for this world, and it always execs the default Python
# test_bdist_deb_simple_pyproject runs the binary, which is currently complicated with libalternatives: https://github.com/openSUSE/python-rpm-macros/pull/196
%pytest_arch -k 'not (test_command_bdist_rpm or test_command_build_exe or test_command_build or test_bdist_appimage or test_bdist_deb_simple_pyproject)'
%pre
%python_libalternatives_reset_alternative cxfreeze-quickstart
%python_libalternatives_reset_alternative cxfreeze
%files %{python_files}
%doc README.md
- Update to 6.0: * Corrected support for Python 3.7 (PR #395). * Use importlib and other Python 3 improvements (PR #484, PR #485, PR #486, PR #490). * Fixed issue with @rpath causing file copy errors on macOS (PR #307). * Replaced file() with open() and use context manager to ensure the file handle is closed and deleted (PR #348). * Corrected invalid version handling in bdist_msi (PR #349, Issue #340). * Corrected hook for clr module (PR #397, PR #444). * Corrected documentation for compress option (PR #358). * Ensure that the pythoncom and pywintypes DLLs are found in the lib directory and not in the base directory (Issue #332). * Always copy dependent files to root directory on macOS (PR #365). * Skip self referencing archive on macOS (PR #364, Issue #304). * Include doc directory in source distribution (PR #394, Issue #376). * Force msilib module to be reloaded in order to allow for the generation of multiple MSI packages in a single session (PR #419). * Added hook for PyQt5.QtPrintSupport module (PR #401). * Added ability to include an icon on the add/remove program window that pops up during installation (PR #387). * Prevent spurious errors from being printed during building on macOS by checking to see that a file is a Mach-O binary before adding it to the list of files it is checking the reference of (PR #342, Issue #268). * Avoid otool bug on macOS Yosemite (PR #297, Issue #292). * Added ability to specify environment variables that should be created when an MSI package is installed (PR #266). * Added support for including resources in an app bundle for macOS (PR #423). * Added absolute reference path option for macOS packages (PR #424). * Added CFBundle identifier for macOS packages (PR #427, Issue #426). * Added hook for copying SSL DLLs for Python 3.7+ on Windows (PR #470). * Added -municode flag when building on Windows with mingw32 (PR #468). * Added hook for pycparser (PR #446). * Fixed hook for zmq so it doesn’t fail when there is no bundled libzmq library in the installed pyzmq package (PR #442). * Print error when fetching dependent files fails (PR #435). * Make executable writable before adding the icon (PR #430, Issue #368). * Dropped support for RPM and MSI packages for cx_Freeze itself since these are no longer supported by PyPI. * Fix building console app with mingw32 (PR #475). * Force inclusion of the unicodedata module which is used by the socket module, and possibly others (PR #476). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=5
2019-09-13 10:28:08 +00:00
%license doc/src/license.rst
%python_alternative %{_bindir}/cxfreeze
%python_alternative %{_bindir}/cxfreeze-quickstart
- Update to 6.14.7: * Support to build musllinux wheels * project: Improve patchelf dependency specification * Include copy of cx_Freeze license with frozen applications * Support Python 3.11 and set it as default in CI * Drop python 3.6 * build: setuptools has 'build' command since v62.4.0 * finder: extend include_file_as_module to include submodule * bases and initscripts: lowercase to remove pylint invalid-name * freezer: copy package data using _copy_files to correctly parse dependencies * Cleanup to support/test with python 3.11b3 * feezer: use internal _create_directory (create the parents, verbose) * Set the path to search for modules, and fix the path for built-in modules * Compile base executables with generic names depending on SOABI * Get rid of some calls to deprecated module distutils * Support for using embedded manylinux static libraries * Fix incorrect default bin path includes * Use a self made requirements sync instead of piptools * Add cached_property (and a compatible function) for planned use * The built-in modules are determined based on the cx_Freeze build * finder: use pep8 names (and enable pylint for it) * Declare the new subpackage cx_Freeze.command * Using a trick to get around a dependency on distutils. * Implements Parser interface to create an abstraction to parse binary * files * Implements basic PEParser interface * Helper to create and return a Path-like temporary directory * Add a basic pyproject.toml for build and tools * importlib.metadata is no longer provisional in Python 3.10 * Prioritize importlib_metadata in versions lower than 3.10 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cx_Freeze?expand=0&rev=12
2023-03-29 07:29:26 +00:00
%{python_sitearch}/cx_Freeze
%{python_sitearch}/cx_[Ff]reeze-%{version}.dist-info
%changelog