Skip to content

Commit

Permalink
fix: add static discovery docs (#1216)
Browse files Browse the repository at this point in the history
Fixes #1214 

The [MANIFEST.in](https://packaging.python.org/guides/using-manifest-in/) controls which files are included in the published package.

You can verify that this fixes the problem (missing discovery docs leading to failing `discovery.build()` calls) by building the package and installing the library from the tarfile.


- `python3 -m venv env`
- `source env/bin/activate`
- `python3 -m setup.py sdist`
- `python3 -m pip install dist/google-api-python-client-2.0.0.tar.gz`


```
(env) busunkim@busunkim:~/github/google-api-python-client$ python3
Python 3.6.9 (default, Feb 24 2020, 21:10:07) 
[GCC 9.2.1 20190909] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import googleapiclient
>>> from googleapiclient import discovery
>>> client = discovery.build("cloudprofiler", "v2")
>>> 
```
  • Loading branch information
busunkim96 committed Mar 4, 2021
1 parent b85da5b commit b5d33d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -1,4 +1,5 @@
recursive-include apiclient *.json *.py
recursive-include googleapiclient *.json *.py
include CHANGELOG
include LICENSE
include README
Expand Down

0 comments on commit b5d33d6

Please sign in to comment.