BA.Leland
BA.Leland
A zipfile inspection issue ultimately results the upload generating, [ERROR] Trouble reading metadata from xxxxx.zip. Is this a valid xxxxx package package?
there appears to be a str/bytes issue in inspect_pypi_package_zip, working on a pull request this change is proposed, ``` diff --git a/binstar_client/inspect_package/pypi.py b/binstar_client/inspect_package/pypi.py index 97fec63..2e9b39d 100644 --- a/binstar_client/inspect_package/pypi.py +++ b/binstar_client/inspect_package/pypi.py...
`def inspect_pypi_package_zip(filename, fileobj):` from binstar_client/inspect_package/pypi.py PKG-INFO is extracted from the zipfile - ok so far issues, attrs = dict(Parser().parsestr(data.encode("UTF-8", "replace")).items()) # data.encode results in bytes, but Parser() requires str Parser().parsestr()...