Skip to content

Commit ad618d0

Browse files
authored
fix: Include discovery artifacts in published package (#1221)
Fixes #1214 🦕 I was able to re-create the issue by using the following steps. 1) Create a clean `pyenv` environment 2) Download google-api-python-client-2.0.1 from PyPi [here](https://files.pythonhosted.org/packages/dc/67/a228c05a28288fdfde6e8c1a27a62e10ee265664c0f1d59070e6e0dc6242/google-api-python-client-2.0.1.tar.gz) and unzip it 3) Install it using `pip install <Unzipped Directory>` 4) Confirm `discovery.build()` fails on any call To Verify the fix, repeat the steps above, but apply the update in this PR prior to installing the library.
1 parent 401c05e commit ad618d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
install_requires=install_requires,
6161
python_requires=">=3.6",
6262
packages=packages,
63-
package_data={},
63+
package_data={"googleapiclient": ["discovery_cache/documents/*.json"]},
6464
license="Apache 2.0",
6565
keywords="google api client",
6666
classifiers=[

0 commit comments

Comments
 (0)