pypi.client: Compute hashes and write the tarball in one roundtrip
This also checks the tarball size prior to reading the first bytes.
Related T421