Markéta Machová
a61a5f3d2f
- Update to version 2022.12 New hooks * Add hook for discid. (#506) * Add hook for exchangelib. (#508) - Update to versino 2022.11 * New hooks Add a hook for spiceypy, which has binary files. (#482) Added a hook for ldfparser. (#483) * Updated hooks Extend the sounddevice and soundfile hooks to collect system-installed shared libraries in cases when the libraries are not bundled with the package (i.e., linux PyPI wheels, Anaconda on all OSes). (#487) Fix a TypeError raised by the clr hook when pythonnet dist lacks the file list metadata. (#486) Have clr hook check for availability of the pythonnet before trying to query its metadata. Fixes an importlib.metadata.PackageNotFoundError raised by the clr hook when the hook is triggered by a module or a package named clr other than the clr extension module from pythonnet. (#486) Have the pyqtgraph hook collect the colormap files and their license files from the package. (#501) Implement preliminary support for handling subprocesses used by pyqtgraph.multiprocess, for example in pyqtgraph RemoteGraphicsView widget. The user is still required to ensure that stdlib's multiprocessing.freeze_support is called in the entry-point script before using pyqtgraph. In addition, with onefile builds, the user must set the _MEIPASS2 environment variable to the value of sys._MEIPASS before using pyqtgraph. (#501) In clr hook for pythonnet collect the Python.Runtime.dll as a data file on non-Windows OSes to prevent errors during binary dependency analysis. (#500) OBS-URL: https://build.opensuse.org/request/show/1034910 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinstaller-hooks-contrib?expand=0&rev=3
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
#
|
|
# spec file
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define psuffix -%{flavor}
|
|
%bcond_without test
|
|
%else
|
|
%define psuffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
Name: python-pyinstaller-hooks-contrib%{psuffix}
|
|
Version: 2022.12
|
|
Release: 0
|
|
Summary: Community maintained hooks for PyInstaller
|
|
License: Apache-2.0 OR GPL-2.0-only
|
|
URL: https://github.com/pyinstaller/pyinstaller-hooks-contrib
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyinstaller-hooks-contrib/pyinstaller-hooks-contrib-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools >= 30.3.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module PyInstaller}
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pyinstaller-hooks-contrib = %{version}}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: timezone
|
|
# SECTION optional, the depending tests would be skipped without these
|
|
# most of the libraries enable only two tests, so adding just scikit-learn to run at least any tests
|
|
BuildRequires: %{python_module scikit-learn}
|
|
# /SECTION
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Community maintained hooks for PyInstaller
|
|
|
|
%prep
|
|
%setup -q -n pyinstaller-hooks-contrib-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
%pytest src/_pyinstaller_hooks_contrib/tests
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE LICENSE.APL.txt LICENSE.GPL.txt
|
|
%{python_sitelib}/*
|
|
%endif
|
|
|
|
%changelog
|