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:
Zanie Blue 2024-03-13 20:16:51 -05:00 committed by GitHub
parent 104c74d911
commit 044a77cfd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 375 additions and 607 deletions

View file

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