Skip to content

Commit

Permalink
Add hook for pygwalker (pyinstaller#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
longxiaofei authored Jan 17, 2024
1 parent 4aa3285 commit 788d812
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/690.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for ``pygwalker`` that collects data files from the package.
1 change: 1 addition & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 15 additions & 0 deletions src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pygwalker.py
Original file line number Diff line number Diff line change
@@ -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')
7 changes: 7 additions & 0 deletions src/_pyinstaller_hooks_contrib/tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
""")

0 comments on commit 788d812

Please sign in to comment.