Closed psam44 closed 2 years ago
👍 good job. I also meet such issue.
indeed this seems to be a problem with py3.9.
i tried to change distutils/command/upload.py
if digest_name == "blake2_256_digest":
data[digest_name] = digest_cons(content, digest_size=32).hexdigest()
else:
data[digest_name] = digest_cons(content).hexdigest()
and also to use blake2s instead, but neither worked...
You should no longer use distutils directly or even invoke setup.py
manually. @pganssle's blog post covers the recommend ways to build and upload software to PyPI.
Thanks tiran. That's right. setup.py upload
is not supported and should be avoided.
My custom traces:
The Blake digest is 128 char hex, i.e. 64 bytes, where only 32 bytes (256 bits) are expected. This is because
upload
uses theblake2b
variant, without specifying a size, but the py doc says:It seems that the
blake2s
variant should be used instead, or the digest_size should be specified to be 32.It does work with py37 (because only md5_digest is used):
> py -3.7 setup.py sdist upload