tags 969602 + patch thanks I just bumped into this. The solution is to open the release tarball and its signature as binary, as follows. This should probably just be squashed into debian/patches/02_python3:
--- a/bin/lp-project-upload 2020-12-07 19:40:42.000000000 +0000 +++ b/bin/lp-project-upload 2020-12-07 19:43:40.056335442 +0000 @@ -123,7 +123,7 @@ release = create_release(proj, version) # Get the file contents. - file_content = open(tarball, 'r').read() + file_content = open(tarball, 'rb').read() # Get the signature, if available. signature = tarball + '.asc' if not os.path.exists(signature): @@ -133,7 +133,7 @@ print('gpg failed, aborting', file=sys.stderr) if os.path.exists(signature): - signature_content = open(signature, 'r').read() + signature_content = open(signature, 'rb').read() else: signature_content = None
signature.asc
Description: PGP signature