Skip to content

Comments

Use max rather than min to sort managed Pythons#5205

Merged
charliermarsh merged 1 commit intomainfrom
charlie/ord
Jul 19, 2024
Merged

Use max rather than min to sort managed Pythons#5205
charliermarsh merged 1 commit intomainfrom
charlie/ord

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 requested a review from zanieb July 19, 2024 01:14
@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
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