-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Warn users on "~=" python-version #8284
base: main
Are you sure you want to change the base?
Conversation
("~=3.11", true), | ||
("~=2.7", true), | ||
("~=3.10, <3.11", false), | ||
("~=3.10, <=3.11", false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While unlikely, this sort of version should not throw a warning, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @konstin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I think not)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can leave it without a warning. It's an odd version specifier to write and likely not what the user intended, but it's not one that specifically matches this case.
b49f5bd
to
4106f9a
Compare
4106f9a
to
6930710
Compare
Hey @ianpaul10, I updated this with
cc @BurntSushi |
Summary
Closes #7426
Second part of #7426, that checks if the python-version uses a tilde eq without a patch version (e.g.
~=3.11
, which will be interpreted as>=3.10, ==3.*
) and warns the user, asking them to specify a patch version.Test Plan
Unit tests were added for
is_tilde_exact_without_patch