Skip to content
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 a test with a patch version in Requires-Python #193

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading