forked from astral-sh/packse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for unreachable packages and wheels
Add tests for astral-sh/uv#6959 and astral-sh/uv#6961
- Loading branch information
Showing
1 changed file
with
115 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,115 @@ | ||
[ | ||
{ | ||
"name": "unreachable-package", | ||
"description": "`c` is not reachable due to the markers, it should be excluded from the lockfile", | ||
"root": { | ||
"requires": [ | ||
"a==1.0.0; sys_platform == 'win32'" | ||
] | ||
}, | ||
"packages": { | ||
"a": { | ||
"versions": { | ||
"1.0.0": { | ||
"requires": ["b==1.0.0; sys_platform == 'linux'"] | ||
} | ||
} | ||
}, | ||
"b": { | ||
"versions": { | ||
"1.0.0": {} | ||
} | ||
} | ||
}, | ||
"expected": { | ||
"satisfiable": true | ||
}, | ||
"resolver_options": { | ||
"universal": true | ||
} | ||
}, | ||
{ | ||
"name": "unreachable-wheels", | ||
"description": "Check that we only include wheels that match the platform markers", | ||
"root": { | ||
"requires": [ | ||
"a==1.0.0; sys_platform == 'win32'", | ||
"b==1.0.0; sys_platform == 'linux'", | ||
"c==1.0.0; sys_platform == 'darwin'" | ||
] | ||
}, | ||
"packages": { | ||
"a": { | ||
"versions": { | ||
"1.0.0": { | ||
"wheel_tags": [ | ||
"cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64", | ||
"cp312-cp312-musllinux_1_1_armv7l", | ||
"cp312-cp312-win_amd64", | ||
"cp312-cp312-macosx_14_0_x86_64" | ||
] | ||
} | ||
} | ||
}, | ||
"b": { | ||
"versions": { | ||
"1.0.0": { | ||
"wheel_tags": [ | ||
"cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64", | ||
"cp312-cp312-musllinux_1_1_armv7l", | ||
"cp312-cp312-win_amd64", | ||
"cp312-cp312-macosx_14_0_x86_64" | ||
] | ||
} | ||
} | ||
}, | ||
"c": { | ||
"versions": { | ||
"1.0.0": { | ||
"wheel_tags": [ | ||
"cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64", | ||
"cp312-cp312-musllinux_1_1_armv7l", | ||
"cp312-cp312-win_amd64", | ||
"cp312-cp312-macosx_14_0_x86_64" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"expected": { | ||
"satisfiable": true | ||
}, | ||
"resolver_options": { | ||
"universal": true | ||
} | ||
}, | ||
{ | ||
"name": "requires-python-wheels", | ||
"description": "Check that we only include wheels that match the required Python version", | ||
"root": { | ||
"requires_python": ">=3.10", | ||
"requires": [ | ||
"a==1.0.0" | ||
] | ||
}, | ||
"packages": { | ||
"a": { | ||
"versions": { | ||
"1.0.0": { | ||
"wheel_tags": [ | ||
"cp311-cp311-any", | ||
"cp310-cp310-any", | ||
"cp39-cp39-any" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"expected": { | ||
"satisfiable": true | ||
}, | ||
"resolver_options": { | ||
"universal": true | ||
} | ||
} | ||
] |