Fix pip release script. [skip ci] (#6845)

This commit is contained in:
Jiaming Yuan 2021-04-14 06:46:02 +08:00 committed by GitHub
parent b9a4f3336a
commit 3d919db0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ def download_wheels(
dir_URL: str, dir_URL: str,
src_filename_prefix: str, src_filename_prefix: str,
target_filename_prefix: str, target_filename_prefix: str,
) -> None: ) -> List:
"""Download all binary wheels. dir_URL is the URL for remote directory storing the release """Download all binary wheels. dir_URL is the URL for remote directory storing the release
wheels wheels
@ -71,6 +71,7 @@ def download_wheels(
stdout = ret.stdout.decode("utf-8") stdout = ret.stdout.decode("utf-8")
assert stderr.find("warning") == -1, "Unresolved warnings:\n" + stderr assert stderr.find("warning") == -1, "Unresolved warnings:\n" + stderr
assert stdout.find("warning") == -1, "Unresolved warnings:\n" + stdout assert stdout.find("warning") == -1, "Unresolved warnings:\n" + stdout
return filenames
def check_path(): def check_path():