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:
Charlie Marsh 2024-03-14 16:26:31 -07:00 committed by GitHub
parent 17732246df
commit fbb8bc1f6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 412 additions and 11 deletions

View file

@ -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 = []