Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ def get_shared_library_data_to_include():
license_files="LICENSE",
package_dir={"": "src"},
python_requires=">=3.9",
entry_points={
"pyinstaller40": [
"hook-dirs = onepassword.pyinstaller_hooks:get_hook_dirs",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: MacOS",
Expand All @@ -76,5 +81,6 @@ def get_shared_library_data_to_include():
package_data={"": get_shared_library_data_to_include()},
install_requires=[
"pydantic>=2.5", # Minimum Pydantic version to run the Python SDK
"pyinstaller>=6.18.0"
],
)
5 changes: 5 additions & 0 deletions src/onepassword/pyinstaller_hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import os


def get_hook_dirs():
return [os.path.dirname(__file__)]
3 changes: 3 additions & 0 deletions src/onepassword/pyinstaller_hooks/hook-onepassword.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from PyInstaller.utils.hooks import collect_dynamic_libs

binaries = collect_dynamic_libs("onepassword")