mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Pull in packse
tests for post releases (#2468)
## Summary Like local versions, a few of these failures and have fixups in the generation script.
This commit is contained in:
parent
17732246df
commit
fbb8bc1f6f
6 changed files with 412 additions and 11 deletions
|
@ -133,10 +133,11 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
|||
else []
|
||||
)
|
||||
|
||||
# TEMPORARY
|
||||
# We do not yet support local version identifiers
|
||||
|
||||
for scenario in data["scenarios"]:
|
||||
expected = scenario["expected"]
|
||||
|
||||
# TODO(charlie): We do not yet support local version identifiers
|
||||
if scenario["name"] in (
|
||||
"local-less-than-or-equal",
|
||||
"local-simple",
|
||||
|
@ -180,6 +181,30 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
|||
expected["explanation"] = (
|
||||
"We do not have correct behavior for local version identifiers yet"
|
||||
)
|
||||
elif scenario["name"] == 'post-greater-than':
|
||||
expected["satisfiable"] = True
|
||||
expected["packages"] = [
|
||||
{
|
||||
"name": "post-greater-than-a",
|
||||
"version": "1.2.3.post1",
|
||||
"module_name": "post_greater_than_a",
|
||||
}
|
||||
]
|
||||
expected["explanation"] = (
|
||||
"We do not have correct behavior for local version identifiers yet"
|
||||
)
|
||||
elif scenario["name"] == 'post-local-greater-than':
|
||||
expected["satisfiable"] = True
|
||||
expected["packages"] = [
|
||||
{
|
||||
"name": "post-local-greater-than-a",
|
||||
"version": "1.2.3.post1+local",
|
||||
"module_name": "post_local_greater_than_a",
|
||||
}
|
||||
]
|
||||
expected["explanation"] = (
|
||||
"We do not have correct behavior for local version identifiers yet"
|
||||
)
|
||||
|
||||
# Split scenarios into `install` and `compile` cases
|
||||
install_scenarios = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue