14
0

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
This commit is contained in:
2022-09-30 08:59:05 +00:00
committed by Git OBS Bridge
parent d88c76fa9e
commit b262bd96c1
4 changed files with 34 additions and 8 deletions

View File

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