Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pyinstaller hook to include metadata files (required for linux … #195

Merged
Merged
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ $(EXE_FILES): $(MODULES) $(PROJECT).spec
poetry run pyinstaller $(PROJECT).spec --noconfirm --clean

$(PROJECT).spec:
poetry run pyi-makespec $(PACKAGE)/__main__.py --onefile --windowed --name=$(PROJECT)
poetry run pyi-makespec $(PACKAGE)/__main__.py --onefile --windowed --additional-hooks-dir=gitman --name=$(PROJECT)

# RELEASE #####################################################################

Expand Down
9 changes: 9 additions & 0 deletions gitman/hook-gitman.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# pyinstaller hook

from PyInstaller.utils.hooks import copy_metadata


# Normally PyInstaller does not include metadata files.
# necessary to find the 'gitman' distribution
# via the get_distribution function
datas = copy_metadata('gitman')