Skip to content

Commit

Permalink
scenarios: add a test with a patch version in Requires-Python
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jun 12, 2024
1 parent 06b63a2 commit 42a20ac
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions scenarios/fork/requires-python-patch-overlap.toml
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"]

0 comments on commit 42a20ac

Please sign in to comment.