Skip to content

Commit

Permalink
Generate correct names for no-binary and no-build packages from inspe…
Browse files Browse the repository at this point in the history
…ct (#144)
  • Loading branch information
zanieb authored Mar 7, 2024
1 parent 75909e0 commit 99bc741
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/packse/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,29 @@ def inspect(
raw["tree"] = dependency_tree(scenario).splitlines()
result["scenarios"].append(raw)

raw["resolver_options"]["no_build"] = [
str(
Requirement(name).with_unique_name(
scenario,
raw["version"],
short_names,
no_hash=no_hash,
)
)
for name in raw["resolver_options"]["no_build"]
]
raw["resolver_options"]["no_binary"] = [
str(
Requirement(name).with_unique_name(
scenario,
raw["version"],
short_names,
no_hash=no_hash,
)
)
for name in raw["resolver_options"]["no_binary"]
]

# Convert dictionaries to lists for easier templating
raw["packages"] = [
{
Expand Down

0 comments on commit 99bc741

Please sign in to comment.