Skip to content

Commit

Permalink
hooks: update av hook for compatibility with av 13.1.0
Browse files Browse the repository at this point in the history
Add `uuid` (used by cythonized `av.opaque`) to ensure it is
collected when not referenced from anywhere else.
  • Loading branch information
rokm committed Oct 8, 2024
1 parent 374fb31 commit 8598450
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-av.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@
# imports to ensure it is collected in cases when it is not referenced from anywhere else.
if is_module_satisfies("av >= 13.0.0"):
hiddenimports += ['dataclasses']

# av 13.1.0 added a cythonized `av.opaque` module that uses `uuid`; add it to hidden imports to ensure it is collected
# in cases when it is not referenced from anywhere else.
if is_module_satisfies("av >= 13.1.0"):
hiddenimports += ['uuid']
1 change: 1 addition & 0 deletions news/814.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update ``av`` hook for compatibility with ``av`` v13.1.0.
2 changes: 1 addition & 1 deletion requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ importlib_resources==6.4.5; python_version < '3.9'

# ------------------ LIBRARIES ------------------ #
# TODO: Add most of the libraries we have hooks for, and write tests
av==13.0.0; python_version >= '3.9'
av==13.1.0; python_version >= '3.9'
adbutils==2.8.0
APScheduler==3.10.4
backports.zoneinfo==0.2.1; python_version < '3.9'
Expand Down

0 comments on commit 8598450

Please sign in to comment.