Skip to content

feat(graph): add subset command to extract package-related subgraphs#915

Open
dhellmann wants to merge 2 commits intopython-wheel-build:mainfrom
dhellmann:graph-subset
Open

feat(graph): add subset command to extract package-related subgraphs#915
dhellmann wants to merge 2 commits intopython-wheel-build:mainfrom
dhellmann:graph-subset

Conversation

@dhellmann
Copy link
Member

Add new fromager graph subset command to extract a subset of a build graph containing only nodes related to a specific package.

Features:

  • Extracts dependencies and dependents of a target package
  • Optional version filtering with --version flag
  • Output to file or stdout
  • Comprehensive error handling for missing packages/versions
  • Full graph integrity preservation

Usage:

  • fromager graph subset graph.json package-name
  • fromager graph subset graph.json package-name --version 1.0.0
  • fromager graph subset graph.json package-name -o subset.json

🤖 Generated with Claude Code

@dhellmann dhellmann requested a review from a team as a code owner February 16, 2026 18:52
@mergify mergify bot added the ci label Feb 16, 2026
@dhellmann
Copy link
Member Author

I ended up needing this to extract some details about a much larger build.

dhellmann and others added 2 commits February 16, 2026 14:05
Updates pbr from 6.1.1 to 7.0.3 to fix test failure caused by pbr 6.1.1
trying to import the deprecated pkg_resources module that was removed from
newer setuptools versions. The newer pbr version is compatible with current
setuptools.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add new `fromager graph subset` command to extract a subset of a build
graph containing only nodes related to a specific package.

Features:
- Extracts dependencies and dependents of a target package
- Optional version filtering with --version flag
- Output to file or stdout
- Comprehensive error handling for missing packages/versions
- Full graph integrity preservation

Usage:
- fromager graph subset graph.json package-name
- fromager graph subset graph.json package-name --version 1.0.0
- fromager graph subset graph.json package-name -o subset.json

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant