-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scenarios: add a test with a patch version in
Requires-Python
- Loading branch information
1 parent
06b63a2
commit 42a20ac
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name = "fork-requires-python-patch-overlap" | ||
description = ''' | ||
This tests that a `Requires-Python` specifier that includes a Python | ||
patch version will not result in excluded a dependency specification | ||
with a `python_version == '3.10'` marker. | ||
This is a regression test for the universal resolver where it would | ||
convert a `Requires-Python: >=3.10.1` specifier into a `python_version | ||
>= '3.10.1'` marker expression, which would be considered disjoint | ||
with `python_version == '3.10'`. Thus, the dependency `a` below was | ||
erroneously excluded. It should be included. | ||
''' | ||
|
||
[resolver_options] | ||
universal = true | ||
|
||
[expected] | ||
satisfiable = true | ||
|
||
[environment] | ||
python = "3.12" | ||
|
||
[root] | ||
requires_python = ">=3.10.1" | ||
requires = [ | ||
"a==1.0.0 ; python_version == '3.10'", | ||
] | ||
|
||
[packages.a.versions."1.0.0"] |