Skip to content

Commit

Permalink
hooks: add hook for VADER
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Dec 31, 2023
1 parent df10354 commit 589dc7f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/679.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for ``VADER``.
1 change: 1 addition & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ rlp==4.0.0
eth-rlp==1.0.0
z3c.rml==4.4.0
freetype-py==2.4.0
vaderSentiment==3.3.2

# ------------------- Platform (OS) specifics

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ------------------------------------------------------------------
# Copyright (c) 2023 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('vaderSentiment')
8 changes: 8 additions & 0 deletions src/_pyinstaller_hooks_contrib/tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,3 +1844,11 @@ def test_pyi_freetype(pyi_builder):
print(f"FT library file (resolved): {ft_library_path}", file=sys.stderr)
assert app_dir in ft_library_path.parents, "FT library is not bundled with frozen application!"
""")


@importorskip('vaderSentiment')
def test_vadersentiment(pyi_builder):
pyi_builder.test_source("""
import vaderSentiment.vaderSentiment
vaderSentiment.vaderSentiment.SentimentIntensityAnalyzer()
""")

0 comments on commit 589dc7f

Please sign in to comment.