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

pyinstaller: add package hooks #243

Merged
merged 2 commits into from
Nov 15, 2022
Merged

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Nov 15, 2022

Adds package level pyinstaller hooks so that any downstream package using pydrive2 + pyinstaller does not need to define their own hooks for the google client APIs

see details in the pyinstaller docs: https://pyinstaller.org/en/stable/hooks.html#providing-pyinstaller-hooks-with-your-package)

related:
#197
iterative/dvc#7949

Comment on lines +10 to +11
repo: https://github.com/PyCQA/flake8
rev: 5.0.4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is obviously unrelated to pyinstaller, but we should be using the github repo for flake8 (the old gitlab URL now requires auth and breaks pre-commit in CI)

@pmrowla
Copy link
Contributor Author

pmrowla commented Nov 15, 2022

In DVC this means we will be able to remove the DVC-level google API/client hooks, but we will still need to keep the existing pydrive2 hook (since it's a hidden import at the DVC level due to the optional dependency configuration)

@efiop efiop merged commit cbe7c28 into iterative:main Nov 15, 2022
@pmrowla pmrowla deleted the pyinstaller-hooks branch November 15, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants