Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binstar_client errors on windows for zipfile uploads #637

Open
baleland opened this issue Mar 2, 2023 · 0 comments
Open

binstar_client errors on windows for zipfile uploads #637

baleland opened this issue Mar 2, 2023 · 0 comments

Comments

@baleland
Copy link

baleland commented Mar 2, 2023

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() expects unix line endings, not \r\n that might be present on windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant