-
Notifications
You must be signed in to change notification settings - Fork 8
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
scenarios: add tests for Requires-Python #187
Conversation
[root] | ||
requires_python = ">=3.10" | ||
requires = [ | ||
"a==1.0.0 ; python_full_version == '3.9b1'", |
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.
Should we be including the pre-release here? Seems like it complicates the scenario and we should have coverage for that separately.
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 found it surprising that it was not the same as the python_version
test)
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.
The reason why I used it was because python_full_version
specifically allows it. So it seemed nice to test that aspect of it. But I can see how it's potentially testing more than one thing. I can split this apart.
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.
Okey dokey, fixed!
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.
Ahh that makes sense. This seems better anyway. Thanks!
This tests the interaction between `Requires-Python` and marker expressions like `python_version` and `python_full_version`. In both of these tests, the `a` dependency should be completely ignored because its corresponding marker expression will never evaluate to true.
7ff0c37
to
f559097
Compare
This tests the interaction between
Requires-Python
and markerexpressions like
python_version
andpython_full_version
. In both ofthese tests, the
a
dependency should be completely ignored because itscorresponding marker expression will never evaluate to true.