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:
@@ -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 = []
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
chevron-blue
|
||||
packse>=0.3.9
|
||||
packse>=0.3.10
|
||||
|
||||
@@ -32,7 +32,7 @@ nh3==0.2.15
|
||||
# via readme-renderer
|
||||
packaging==24.0
|
||||
# via hatchling
|
||||
packse==0.3.9
|
||||
packse==0.3.10
|
||||
pathspec==0.12.1
|
||||
# via hatchling
|
||||
pkginfo==1.10.0
|
||||
@@ -65,5 +65,5 @@ urllib3==2.2.1
|
||||
# via
|
||||
# requests
|
||||
# twine
|
||||
zipp==3.18.0
|
||||
zipp==3.18.1
|
||||
# via importlib-metadata
|
||||
|
||||
Reference in New Issue
Block a user