Open jpfairbanks opened 6 years ago
Thanks! The line should be print(hashlib.sha256(open(z.filename).read().encode("utf-8")).hexdigest())
, if you want you can submit a PR against development
, otherwise I'll fix it at the next opportunity. There might be other problems with ZIP archive creation though, this part is currently untested on Python 3...
Are you sure the file z.filename
shouldn't be read as raw bytes and then hashed? The output of zipping shouldn't be utf-8 text.
Desired Behavior:
python setup.py zip
should create an archive with the distribution. Actual Behavior:python setup.py zip
raises an exceptionWith python version:
Python 3.5.2 :: Anaconda custom (x86_64)
Steps to reproduce:Output: