-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid narrowing
requires-python
marker with disjunctions (#10704)
## Summary A bug in `requires_python` (which infers the Python requirement from a marker) was leading us to break an invariant around the relationship between the marker environment and the Python requirement. This, in turn, was leading us to drop parts of the environment space when solving. Specifically, in the linked example, we generated a fork for `python_full_version < '3.10' or platform_python_implementation != 'CPython'`, which was later split into `python_full_version == '3.8.*'` and `python_full_version == '3.9.*'`, losing the `platform_python_implementation != 'CPython'` portion. Closes #10669.
- Loading branch information
1 parent
dce7b9d
commit bc8002e
Showing
4 changed files
with
172 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters