From b262bd96c16d65f81698debbf5ac60aaeb48c3ed178e1575957602edcb906c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 Sep 2022 08:59:05 +0000 Subject: [PATCH] Accepting request 1007199 from home:mcalabkova:branches:devel:languages:python - Update to 5.4.1 * Many changes, see upstream changelog * Issue an error report if a .spec file will not be generated, but command-line options specific to that functionality are given * The `PyInstaller.utils.hooks.get_module_attribute` function now returns the actual attribute value instead of its string representation. * The matplotlib.backends hook no longer collects all available matplotlib backends, but rather tries to auto-detect the used backend(s) by default. * Drop support for Python 3.6. * Make the error handing of `~PyInstaller.utils.hooks.collect_submodules` configurable. * Detect if an icon file (.ico or .icns) is of another image type but has been mislabelled as a native icon type via its file suffix then either normalise to a genuinely native image type if pillow is installed or raise an error. * Implement a mechanism for controlling the collection mode of modules and packages, with granularity ranging from top-level packages to individual sub-modules. * Add support for setuptools-provided distutils, available since setuptools >= 60.0. OBS-URL: https://build.opensuse.org/request/show/1007199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyInstaller?expand=0&rev=18 --- pyinstaller-4.7.tar.gz | 3 --- pyinstaller-5.4.1.tar.gz | 3 +++ python-PyInstaller.changes | 24 ++++++++++++++++++++++++ python-PyInstaller.spec | 12 +++++++----- 4 files changed, 34 insertions(+), 8 deletions(-) delete mode 100644 pyinstaller-4.7.tar.gz create mode 100644 pyinstaller-5.4.1.tar.gz diff --git a/pyinstaller-4.7.tar.gz b/pyinstaller-4.7.tar.gz deleted file mode 100644 index 4017a39..0000000 --- a/pyinstaller-4.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91165635f6f47fcb3318c4c7b606863106855863db77b9ded2879ce664474111 -size 3497401 diff --git a/pyinstaller-5.4.1.tar.gz b/pyinstaller-5.4.1.tar.gz new file mode 100644 index 0000000..e247067 --- /dev/null +++ b/pyinstaller-5.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9339f7606ce342052c31d90c962275a8423927bdb31d78690ca560a2b956129e +size 3833070 diff --git a/python-PyInstaller.changes b/python-PyInstaller.changes index c4bfbd5..3fe7463 100644 --- a/python-PyInstaller.changes +++ b/python-PyInstaller.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Sep 30 08:41:35 UTC 2022 - Markéta Machová + +- Update to 5.4.1 + * Many changes, see upstream changelog + * Issue an error report if a .spec file will not be generated, but + command-line options specific to that functionality are given + * The `PyInstaller.utils.hooks.get_module_attribute` function now + returns the actual attribute value instead of its string representation. + * The matplotlib.backends hook no longer collects all available matplotlib + backends, but rather tries to auto-detect the used backend(s) by default. + * Drop support for Python 3.6. + * Make the error handing of `~PyInstaller.utils.hooks.collect_submodules` + configurable. + * Detect if an icon file (.ico or .icns) is of another image type but has + been mislabelled as a native icon type via its file suffix then either + normalise to a genuinely native image type if pillow is installed or + raise an error. + * Implement a mechanism for controlling the collection mode of modules and + packages, with granularity ranging from top-level packages to individual + sub-modules. + * Add support for setuptools-provided distutils, available since + setuptools >= 60.0. + ------------------------------------------------------------------- Thu Nov 18 15:23:35 UTC 2021 - Matej Cepl diff --git a/python-PyInstaller.spec b/python-PyInstaller.spec index ab824c3..f4be0eb 100644 --- a/python-PyInstaller.spec +++ b/python-PyInstaller.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyInstaller # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %bcond_without test %define modname PyInstaller Name: python-PyInstaller -Version: 4.7 +Version: 5.4.1 Release: 0 Summary: Bundle a Python application and all its dependencies into a single package License: GPL-2.0-only @@ -43,6 +43,7 @@ Recommends: upx %if %{with test} BuildRequires: %{python_module Babel} BuildRequires: %{python_module Django} +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module QtAwesome} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module cryptography} @@ -52,6 +53,7 @@ BuildRequires: %{python_module opengl} BuildRequires: %{python_module pefile >= 2017.8.1} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pycountry} +BuildRequires: %{python_module pyinstaller-hooks-contrib} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module qt5} @@ -106,9 +108,9 @@ fi %if %{with test} %check export LANG=en_US.UTF-8 -# test_get_co_using_ctypes, test_get_co_using_ctypes_from_extension, test_replace_paths_in_code broken with python 3.8 on PyInstall 3.6 -# gh#pyinstaller/pyinstaller#4406 skip TestDeeplyNested.testRegr (it is just the only method in the class) -%pytest_arch -n auto tests/unit -k 'not (test_find_module or test_egg and not test_nspkg1 or test_get_co_using_ctypes or test_get_co_using_ctypes_from_extension or test_replace_paths_in_code or TestDeeplyNested)' +# https://github.com/pyinstaller/pyinstaller/commit/2df8314ffaedd95ddc9e2871237e2f2188d3735e +# the test is broken since 5.2 +%pytest_arch -n auto tests/unit -k "not test_normalize_icon" %endif %post