summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/dev/build_release.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index 573db8539..f9efa3ff5 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -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")