Versions 2.0.0 and 2.0.1 were yanked from PyPI last week due to an issue where discovery documents were not included in the published package causing discovery.build() to fail(#1214). A basic check could be added to verify the package works correctly using the steps in #1214. Ideally it should be done on every PR and push to master so the issue can be caught before the package is published.
Use these steps from #1214 to re-produce the issue with version 2.0.0 and 2.0.1:
- Start with a clean clone of
google-api-python-client
- Checkout version
2.0.0 or 2.0.1, using git checkout 2.0.0
- Run
python setup.py sdist
- Run
pip install dist/google-api-python-client-<version>.tar.gz
- Run
$ python3
Python 3.8.7 (default, Jan 27 2021, 18:44:05)
[GCC 10.2.1 20201224] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from googleapiclient import discovery
>>> client = discovery.build("cloudprofiler", "v2")
...
Before closing this issue, we should ensure that we have checks in place so that a PR will fail if package_data here is empty.
Versions
2.0.0and2.0.1were yanked from PyPI last week due to an issue where discovery documents were not included in the published package causingdiscovery.build()to fail(#1214). A basic check could be added to verify the package works correctly using the steps in #1214. Ideally it should be done on every PR and push to master so the issue can be caught before the package is published.Use these steps from #1214 to re-produce the issue with version
2.0.0and2.0.1:google-api-python-client2.0.0or2.0.1, usinggit checkout 2.0.0python setup.py sdistpip install dist/google-api-python-client-<version>.tar.gzBefore closing this issue, we should ensure that we have checks in place so that a PR will fail if
package_datahere is empty.