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

Use max rather than min to sort managed Pythons #5205

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

See: #5139 and #5201 (comment).

Test Plan

Verified that 3.12 was chosen above 3.8 in:

  • cargo run -- python uninstall --all
  • cargo run -- python install 3.8 3.12
  • cargo run -- tool run -v httpx

@charliermarsh charliermarsh marked this pull request as ready for review July 19, 2024 01:14
@charliermarsh
Copy link
Member Author

\cc @j178

@charliermarsh charliermarsh added the bug Something isn't working label Jul 19, 2024
Comment on lines 14 to 19
pub enum ImplementationName {
GraalPy,
PyPy,
#[default]
CPython,
PyPy,
GraalPy,
}
Copy link
Member

Choose a reason for hiding this comment

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

This is pretty unintuitive, hope it doesn't bite us later :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess but it's also the standard derive implementation!

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

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

Probably #internal?

@charliermarsh charliermarsh added internal A refactor or improvement that is not user-facing and removed bug Something isn't working labels Jul 19, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) July 19, 2024 12:25
@charliermarsh charliermarsh merged commit bb84cbb into main Jul 19, 2024
54 checks passed
@charliermarsh charliermarsh deleted the charlie/ord branch July 19, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal A refactor or improvement that is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants