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

Support auto fix requires-python when conflict #202

Merged
merged 2 commits into from
May 23, 2023

Conversation

ischaojie
Copy link
Contributor

closes #160

@mitsuhiko mitsuhiko marked this pull request as ready for review May 23, 2023 09:51
@@ -162,6 +164,16 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
format!("{}.{}.{}", version.major, version.minor, version.patch)
}
};
if !VersionSpecifier::from_str(&requires_python)
.unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can panic if the version specifier is invalid.

@ischaojie
Copy link
Contributor Author

Is automatic version conflict repair by rye a better way(I prefer more), or should users be given the option?

@mitsuhiko mitsuhiko merged commit 7fdcf79 into astral-sh:main May 23, 2023
6 checks passed
@mitsuhiko
Copy link
Collaborator

Auto repair is good for now. We can still change this later based on feedback.

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.

init command should warn about conflicted python versions
2 participants