diff --git a/news/690.new.rst b/news/690.new.rst new file mode 100644 index 00000000..0317ece3 --- /dev/null +++ b/news/690.new.rst @@ -0,0 +1 @@ +Add hook for ``pygwalker`` that collects data files from the package. \ No newline at end of file diff --git a/requirements-test-libraries.txt b/requirements-test-libraries.txt index 64606a95..6c643395 100644 --- a/requirements-test-libraries.txt +++ b/requirements-test-libraries.txt @@ -169,6 +169,7 @@ vaderSentiment==3.3.2 langchain==0.1.0 seedir==0.4.2 cel-python==0.1.5 +pygwalker==0.4.2 # ------------------- Platform (OS) specifics diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygwalker.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygwalker.py new file mode 100644 index 00000000..7fc35139 --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygwalker.py @@ -0,0 +1,15 @@ +# ------------------------------------------------------------------ +# Copyright (c) 2024 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.GPL.txt, distributed with +# this software. +# +# SPDX-License-Identifier: GPL-2.0-or-later +# ------------------------------------------------------------------ + +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('pygwalker') diff --git a/src/_pyinstaller_hooks_contrib/tests/test_libraries.py b/src/_pyinstaller_hooks_contrib/tests/test_libraries.py index 62f08b93..e316993f 100644 --- a/src/_pyinstaller_hooks_contrib/tests/test_libraries.py +++ b/src/_pyinstaller_hooks_contrib/tests/test_libraries.py @@ -1881,3 +1881,10 @@ def test_celpy(pyi_builder): pyi_builder.test_source(""" import celpy """) + + +@importorskip('pygwalker') +def test_pygwalker(pyi_builder): + pyi_builder.test_source(""" + import pygwalker + """)