scripts: Don't upload PGP signature to PyPI

See https://blog.pypi.org/posts/2023-05-23-removing-pgp/
This commit is contained in:
Florian Bruhin 2023-08-16 19:52:49 +02:00
parent 680a941e64
commit ae150d3a97
1 changed files with 3 additions and 0 deletions

View File

@ -634,6 +634,9 @@ def github_upload(
def pypi_upload(artifacts: List[Artifact], experimental: bool) -> None:
"""Upload the given artifacts to PyPI using twine."""
# https://blog.pypi.org/posts/2023-05-23-removing-pgp/
artifacts = [a for a in artifacts if a.mimetype != 'application/pgp-signature']
utils.print_title("Uploading to PyPI...")
if experimental:
run_twine('upload', artifacts, "-r", "testpypi")