From f84748fd3d3282f9698e42b0ada863c4bdb7a433d8b22e9caab991ce36a3f5b0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 7 Jan 2025 23:56:18 +0000 Subject: [PATCH] - Update to 2024.11 * Update torch hook to suppress creation of symbolic links to the top-level application directory * Update sklearn.tree hook for compatibility with scikit-learn v1.6.0 - Downloaded upstream conftest.py missing in the tarball - update to 2024.10 * Add many hooks, updated many hooks. * Released sdists and tagged GitHub source archives contain the changelog entries for their current release. * See the complete changelog in CHANGELOG.rst. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyinstaller-hooks-contrib?expand=0&rev=17 --- .gitattributes | 23 ++++ .gitignore | 1 + _multibuild | 3 + conftest.py | 13 ++ pyinstaller-hooks-contrib-2024.0.tar.gz | 3 + pyinstaller_hooks_contrib-2024.11.tar.gz | 3 + python-pyinstaller-hooks-contrib.changes | 156 +++++++++++++++++++++++ python-pyinstaller-hooks-contrib.spec | 85 ++++++++++++ 8 files changed, 287 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 conftest.py create mode 100644 pyinstaller-hooks-contrib-2024.0.tar.gz create mode 100644 pyinstaller_hooks_contrib-2024.11.tar.gz create mode 100644 python-pyinstaller-hooks-contrib.changes create mode 100644 python-pyinstaller-hooks-contrib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..3993be3 --- /dev/null +++ b/conftest.py @@ -0,0 +1,13 @@ +# ------------------------------------------------------------------ +# Copyright (c) 2020 PyInstaller Development Team. +# +# This file is distributed under the terms of the GNU General Public +# License (version 2.0 or later). +# +# The full license is available in LICENSE, distributed with +# this software. +# +# SPDX-License-Identifier: GPL-2.0-or-later +# ------------------------------------------------------------------ +# Import all fixtures from PyInstaller into the tests. +from PyInstaller.utils.conftest import * # noqa: F401,F403 diff --git a/pyinstaller-hooks-contrib-2024.0.tar.gz b/pyinstaller-hooks-contrib-2024.0.tar.gz new file mode 100644 index 0000000..f9a27c5 --- /dev/null +++ b/pyinstaller-hooks-contrib-2024.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7118c1a5c9788595e5c43ad058a7a5b7b6d59e1eceb42362f6ec1f0b61986b0 +size 121144 diff --git a/pyinstaller_hooks_contrib-2024.11.tar.gz b/pyinstaller_hooks_contrib-2024.11.tar.gz new file mode 100644 index 0000000..4ec5dee --- /dev/null +++ b/pyinstaller_hooks_contrib-2024.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84399af6b4b902030958063df25f657abbff249d0f329c5344928355c9833ab4 +size 141622 diff --git a/python-pyinstaller-hooks-contrib.changes b/python-pyinstaller-hooks-contrib.changes new file mode 100644 index 0000000..70d2c0d --- /dev/null +++ b/python-pyinstaller-hooks-contrib.changes @@ -0,0 +1,156 @@ +------------------------------------------------------------------- +Tue Jan 7 09:49:19 UTC 2025 - Markéta Machová + +- Update to 2024.11 + * Update torch hook to suppress creation of symbolic links to the + top-level application directory + * Update sklearn.tree hook for compatibility with scikit-learn v1.6.0 +- Downloaded upstream conftest.py missing in the tarball + +------------------------------------------------------------------- +Fri Dec 13 10:56:25 UTC 2024 - Markéta Machová + +- update to 2024.10 + * Add many hooks, updated many hooks. + * Released sdists and tagged GitHub source archives contain the + changelog entries for their current release. + * See the complete changelog in CHANGELOG.rst. + +------------------------------------------------------------------- +Tue Jan 30 17:57:19 UTC 2024 - Dirk Müller + +- update to 2024.0: + * 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 + collected. + * Add hook for ``VADER``. + * Add hook for Hugging Face ``datasets`` to collect its source + .py files for TorchScript/JIT. + * Add hook for Hugging Face ``transformers``. The hook attempts + to automatically collect the metadata of all dependencies (as + declared in `deps` dictionary in the + `transformers.dependency_versions_table` module), in order to + make dependencies available at build time visible to + ``transformers`` at run time. The hook also collects source .py + files as some of the package's functionality uses + TorchScript/JIT. + * Add hooks for ``bitsandbytes``, and its dependency ``triton``. + Both packages have dynamically-loaded extension libraries that + need to be collected, and both require collection of source .py + files for (``triton``'s) JIT module. Some submodules of + ``triton`` need to be collected only as source .py files + (bypassing PYZ archive), because the code naively assumes that + ``__file__`` attribute points to the source .py file. + * Add hooks for ``nvidia.*`` packages, which provide a way of + installing CUDA via PyPI wheels + +------------------------------------------------------------------- +Tue Jul 11 12:57:59 UTC 2023 - Markéta Machová + +- Update to 2023.5 + * Update sklearn hooks for compatibility with scikit-learn 1.2.0 and 1.2.1. + * Extend cv2 hook with support for OpenCV built manually from source and + for OpenCV installed using the official Windows installer. This support + requires PyInstaller >= 5.3 to work properly. + * Many new hooks and hook updates, see upstream changelog + +------------------------------------------------------------------- +Sat Jun 10 09:48:00 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Feb 15 11:35:07 UTC 2023 - Daniel Garcia + +- Disable broken sklearn tests gh#pyinstaller/pyinstaller-hooks-contrib#547 +- Update to version 2023.0 + * Add hook for minecraft-launcher-lib (#536) + * Add hook for nbt (#537) + * Have fiona hook collect the package's data files (e.g., the projections + database). (#541) + * Update fiona hook for compatibility with fiona 1.9.0. (#541) +- Update to version 2022.15 + * Add a hook for easyocr, which imports recognition backends via + imporlib.import_module() and has a number of datafiles for different + languages. + * Users can set which languages to include datafiles for with a hook option. + (#530) + * Add hook for charset-normalizer to fix ModuleNotFoundError: No module + named 'charset_normalizer.md__mypyc'. (#534) + * Update shapely hook for compatibility with shapely >= 2.0.0. (#527) + * Added hooks-config.rst document which documents hook options. It is + referred to from README.md. (#530) + + +------------------------------------------------------------------- +Tue Dec 13 16:33:02 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2022.14 + Add hook for cf_units. (#521) + Add hook for cftime. (#521) + Add hook for compliance_checker. (#521) + Updated hooks + Update netCDF4 hook for compatibility with v1.4.0 and later, where netcdftime has been renamed to cftime. (#521) + Update pydantic hook to include dotenv optional dependency. (#524) + +------------------------------------------------------------------- +Fri Dec 2 22:48:58 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2022.13 + * Update pyproj hook for compatibility with pyproj v3.4.0. (#505) + +------------------------------------------------------------------- +Wed Nov 9 18:30:17 UTC 2022 - Yogalakshmi Arunachalam + +- 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) + +------------------------------------------------------------------- +Thu Sep 22 04:48:18 UTC 2022 - Markéta Machová + +- Initial packaging (v2022.10), needed by python-PyInstaller diff --git a/python-pyinstaller-hooks-contrib.spec b/python-pyinstaller-hooks-contrib.spec new file mode 100644 index 0000000..9662d18 --- /dev/null +++ b/python-pyinstaller-hooks-contrib.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-pyinstaller-hooks-contrib +# +# Copyright (c) 2025 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.11 +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 +# conftest.py not present in the tarball +Source1: https://raw.githubusercontent.com/pyinstaller/pyinstaller-hooks-contrib/refs/heads/master/tests/conftest.py +BuildRequires: %{python_module setuptools >= 30.3.0} +BuildRequires: %{python_module pip} +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} +cp %{SOURCE1} tests/ + +%build +%pyproject_wheel + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%check +%if %{with test} +# pytest-runner is dead in Python 3.13 +%pytest -k "not pytest_runner" +%endif + +%if !%{with test} +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/_pyinstaller_hooks_contrib +%{python_sitelib}/pyinstaller_hooks_contrib-%{version}*-info +%endif + +%changelog