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

Fix bug with add_python='3.9' #2751

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Conversation

mwaskom
Copy link
Contributor

@mwaskom mwaskom commented Jan 10, 2025

Fixes a dumb bug that I introduced in #2743 by doing an ordinal comparison of version number strings 🤦.

Also adds a test for the base behavior of the from_registry(..., add_python) functionality (it was untested) and the edge case.


Changelog

  • Fixes a bug introduced in v0.72.2 when specifying add_python="3.9" in Image.from_registry.

@mwaskom mwaskom requested a review from ekzhang January 10, 2025 22:33
Copy link
Member

@ekzhang ekzhang left a comment

Choose a reason for hiding this comment

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

Ah I see, so 3.9 > 3.13

@mwaskom
Copy link
Contributor Author

mwaskom commented Jan 10, 2025

Yes exactly. Wouldn't have this problem if we just asked an LLM instead of executing the Python code, of course.

@mwaskom mwaskom merged commit 831c384 into main Jan 10, 2025
23 checks passed
@mwaskom mwaskom deleted the michael/2025-01-10-fix-image-add-python branch January 10, 2025 23:04
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.

2 participants