iterative / PyDrive2

Google Drive API Python wrapper library. Maintained fork of PyDrive.
https://docs.iterative.ai/PyDrive2
Other
580 stars 69 forks source link

pyinstaller: add package hooks #243

Closed pmrowla closed 1 year ago

pmrowla commented 1 year ago

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: https://github.com/iterative/PyDrive2/issues/197 https://github.com/iterative/dvc/issues/7949

pmrowla commented 1 year ago

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)