* Add hook for ``cel-python``. * Add hook for ``eth_keys`` that collects package metadata for ``eth-keys >= 0.5.0``. * Add hook for ``fairscale`` to collect its source .py files for TorchScript/JIT. * Add hook for ``pygwalker`` that collects data files from the package. * Add hook for ``PyTaskbar`` * Add hook for ``detectron2`` to collect its source .py files for TorchScript/JIT. * Add hook for ``fastai`` to collect its source .py files for TorchScript/JIT. * Add hook for ``fvcore.nn`` to collect its source .py files for TorchScript/JIT. (`#676 * Add hook for ``langchain`` that collects data files from the package. * Add hook for ``lightning`` (PyTorch Lightning) to ensure that its ``version.info`` data file is collected. * Add hook for ``linear_operator`` to collect its source .py files for TorchScript/JIT. * Add hook for ``seedir`` that collects the ``words.txt`` data file from the package. * Add hook for ``timm`` (Hugging Face PyTorch Image Models) to collect its source .py files for TorchScript/JIT. * Add hook for ``torchaudio`` that collects dynamically-loaded extensions, as well as source .py files for TorchScript/JIT. * Add hook for ``torchtext`` that collects dynamically-loaded extensions, as well as source .py files for TorchScript/JIT. * Add hook for ``torchvision.io.image`` to ensure that dynamically-loaded extension, required by this module, is OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinstaller-hooks-contrib?expand=0&rev=15
81 lines
2.4 KiB
RPMSpec
81 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-pyinstaller-hooks-contrib
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
%if "%{flavor}" == "test"
|
|
%define psuffix -%{flavor}
|
|
%bcond_without test
|
|
%else
|
|
%define psuffix %{nil}
|
|
%bcond_with test
|
|
%endif
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pyinstaller-hooks-contrib%{psuffix}
|
|
Version: 2024.0
|
|
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
|
|
%autosetup -p1 -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}/_pyinstaller_hooks_contrib
|
|
%{python_sitelib}/pyinstaller_hooks_contrib-%{version}*-info
|
|
%endif
|
|
|
|
%changelog
|