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

Skip invalid versions on PyPI #54

Merged

Conversation

rth
Copy link
Member

@rth rth commented Mar 4, 2023

With this change, micropip would skip invalid versions (those that cannot be parsed with packaging.version.Version) when looking at available versions on PyPi.

Otherwise, with lastest packaging the current situation is to error, when there is even one invalid version in the list as was the case with pytz in 2004 in pyodide/pyodide#3605 (comment)

Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rth!

@ryanking13 ryanking13 merged commit 8ed169b into pyodide:main Mar 4, 2023
@rth rth deleted the 9999-better-handling-of-invalid-versions branch March 6, 2023 10:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants