mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Simplify the packse scenario package name filters (#2440)
I liked the bird names but we can't actually apply those in some situations (i.e. when the package is not supposed to exist) — this is simpler.
This commit is contained in:
parent
104c74d911
commit
044a77cfd2
5 changed files with 375 additions and 607 deletions
|
@ -55,17 +55,6 @@ TESTS = PROJECT_ROOT / "crates" / "uv" / "tests"
|
|||
INSTALL_TESTS = TESTS / "pip_install_scenarios.rs"
|
||||
COMPILE_TESTS = TESTS / "pip_compile_scenarios.rs"
|
||||
|
||||
CUTE_NAMES = {
|
||||
"a": "albatross",
|
||||
"b": "bluebird",
|
||||
"c": "crow",
|
||||
"d": "duck",
|
||||
"e": "eagle",
|
||||
"f": "flamingo",
|
||||
"g": "goose",
|
||||
"h": "heron",
|
||||
}
|
||||
|
||||
try:
|
||||
import packse
|
||||
import packse.inspect
|
||||
|
@ -157,11 +146,6 @@ def main(scenarios: list[Path], snapshot_update: bool = True):
|
|||
"explanation"
|
||||
] = "We do not have correct behavior for local version identifiers yet"
|
||||
|
||||
# Generate cute names for each scenario
|
||||
for scenario in data["scenarios"]:
|
||||
for package in scenario["packages"]:
|
||||
package["cute_name"] = CUTE_NAMES[package["name"].rsplit("-")[-1]]
|
||||
|
||||
# Split scenarios into `install` and `compile` cases
|
||||
install_scenarios = []
|
||||
compile_scenarios = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue