Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Dec 6, 2024
1 parent c800140 commit 0a3bfee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ keywords = [
"jupyter",
]
requires-python = ">= 3.9"
dependencies = [] # no dependencies!
dependencies = ["sniffio"]
[project.optional-dependencies]
# For users
jupyter = ["jupyter_rfb>=0.4.2"]
Expand Down
2 changes: 1 addition & 1 deletion rendercanvas/__pyinstaller/hook-rendercanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
binaries = []

# Add modules that are safe to add, i.e. don't pull in dependencies that we don't want.
hiddenimports += ["rendercanvas.offscreen"]
hiddenimports += ["asyncio", "rendercanvas.async", "rendercanvas.offscreen"]

# Since glfw does not have a hook like this, it does not include the glfw binary
# when freezing. We can solve this with the code below. Makes the binary a bit
Expand Down
2 changes: 2 additions & 0 deletions rendercanvas/__pyinstaller/test_rendercanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
"rendercanvas.glfw",
"rendercanvas.offscreen",
"glfw",
"asyncio"
]
excluded_modules = [
"PySide6.QtGui",
"PyQt6.QtGui",
"trio",
]
for module_name in included_modules:
importlib.import_module(module_name)
Expand Down

0 comments on commit 0a3bfee

Please sign in to comment.