mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
* build: add pyinstaller hook for googleapiclient The Google API Discovery Service JSON files from googleapiclient/discovery_cache/documents were being excluded due to a bug and, particularly, drive.v2.json is essential for our gdrive backend. Now we're explicitly asking PyInstaller to embed these files on the generated packages. Fixes #5618 * Suppress linter error for unrecognized imports Co-authored-by: Peter Rowlands (변기호) <[email protected]> * Apply black style after manual code review Co-authored-by: Peter Rowlands (변기호) <[email protected]>
9 lines
292 B
Python
9 lines
292 B
Python
"""Temporary fix for https://github.com/iterative/dvc/issues/5618."""
|
|
from PyInstaller.utils.hooks import ( # pylint:disable=import-error
|
|
collect_data_files,
|
|
copy_metadata,
|
|
)
|
|
|
|
datas = collect_data_files("googleapiclient.discovery")
|
|
datas += copy_metadata("google_api_python_client")
|