Skip to content

Commit

Permalink
Add hook for PyTaskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobDev authored and bwoodsend committed Jan 5, 2024
1 parent 16295d1 commit 24036bb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/684.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add hook for ``PyTaskbar``
3 changes: 3 additions & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,8 @@ pymediainfo==6.1.0; sys_platform == 'darwin' or sys_platform == 'win32'
# the required library can be installed with "brew install labstreaminglayer/tap/lsl" on macOS, or with "conda install liblsl" on any platform
pylsl==1.16.2; sys_platform == "darwin"

# PyTaskbarProgress only runs on Windows
PyTaskbarProgress==0.0.8; sys_platform == 'win32'

# Include the requirements for testing
-r requirements-test.txt
14 changes: 14 additions & 0 deletions src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-PyTaskbar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ------------------------------------------------------------------
# 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("PyTaskbar")
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 @@ -1866,3 +1866,11 @@ def test_seedir(pyi_builder):
pyi_builder.test_source("""
import seedir
""")


@importorskip('PyTaskbar')
@pytest.mark.skipif(not is_win, reason='PyTaskbar is supported only on Windows')
def test_PyTaskbar(pyi_builder):
pyi_builder.test_source("""
import PyTaskbar
""")

0 comments on commit 24036bb

Please sign in to comment.