mirror of
https://github.com/astral-sh/uv
synced 2026-01-20 21:10:10 -05:00
Update packse to pull in additional local version tests (#2462)
Precursor to #2430.
This commit is contained in:
@@ -137,14 +137,49 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
||||
# We do not yet support local version identifiers
|
||||
for scenario in data["scenarios"]:
|
||||
expected = scenario["expected"]
|
||||
if (
|
||||
scenario["name"].startswith("local-")
|
||||
and scenario["name"] != "local-not-latest"
|
||||
if scenario["name"] in (
|
||||
"local-less-than-or-equal",
|
||||
"local-simple",
|
||||
"local-transitive-confounding",
|
||||
"local-transitive-backtrack",
|
||||
"local-used-with-sdist",
|
||||
"local-used-without-sdist",
|
||||
"local-transitive",
|
||||
"local-transitive-less-than-or-equal",
|
||||
):
|
||||
expected["satisfiable"] = False
|
||||
expected[
|
||||
"explanation"
|
||||
] = "We do not have correct behavior for local version identifiers yet"
|
||||
elif scenario["name"] == "local-greater-than":
|
||||
expected["satisfiable"] = True
|
||||
expected["packages"] = [
|
||||
{
|
||||
"name": "local-greater-than-a",
|
||||
"version": "1.2.3+foo",
|
||||
"module_name": "local_greater_than_a",
|
||||
}
|
||||
]
|
||||
expected["explanation"] = (
|
||||
"We do not have correct behavior for local version identifiers yet"
|
||||
)
|
||||
elif scenario["name"] == "local-transitive-greater-than":
|
||||
expected["satisfiable"] = True
|
||||
expected["packages"] = [
|
||||
{
|
||||
"name": "local-transitive-greater-than-a",
|
||||
"version": "1.0.0",
|
||||
"module_name": "local_transitive_greater_than_a",
|
||||
},
|
||||
{
|
||||
"name": "local-transitive-greater-than-b",
|
||||
"version": "2.0.0+foo",
|
||||
"module_name": "local_transitive_greater_than_b",
|
||||
}
|
||||
]
|
||||
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.6
|
||||
packse>=0.3.9
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# This file was autogenerated by uv via the following command:
|
||||
# uv pip compile scripts/scenarios/requirements.in -o scripts/scenarios/requirements.txt --refresh-package packse --upgrade
|
||||
# uv pip compile scripts/scenarios/requirements.in -o scripts/scenarios/requirements.txt --refresh-package packse
|
||||
certifi==2024.2.2
|
||||
# via requests
|
||||
charset-normalizer==3.3.2
|
||||
@@ -14,7 +14,7 @@ hatchling==1.21.1
|
||||
# via packse
|
||||
idna==3.6
|
||||
# via requests
|
||||
importlib-metadata==7.0.1
|
||||
importlib-metadata==7.0.2
|
||||
# via twine
|
||||
jaraco-classes==3.3.1
|
||||
# via keyring
|
||||
@@ -30,9 +30,9 @@ msgspec==0.18.6
|
||||
# via packse
|
||||
nh3==0.2.15
|
||||
# via readme-renderer
|
||||
packaging==23.2
|
||||
packaging==24.0
|
||||
# via hatchling
|
||||
packse==0.3.7
|
||||
packse==0.3.9
|
||||
pathspec==0.12.1
|
||||
# via hatchling
|
||||
pkginfo==1.10.0
|
||||
@@ -55,7 +55,7 @@ rfc3986==2.0.0
|
||||
# via twine
|
||||
rich==13.7.1
|
||||
# via twine
|
||||
setuptools==69.1.1
|
||||
setuptools==69.2.0
|
||||
# via packse
|
||||
trove-classifiers==2024.3.3
|
||||
# via hatchling
|
||||
@@ -65,5 +65,5 @@ urllib3==2.2.1
|
||||
# via
|
||||
# requests
|
||||
# twine
|
||||
zipp==3.17.0
|
||||
zipp==3.18.0
|
||||
# via importlib-metadata
|
||||
|
||||
Reference in New Issue
Block a user