Skip to content

Add support for parsing pip cache origin.json files#4874

Open
Yuganti-hash wants to merge 2 commits intoaboutcode-org:developfrom
Yuganti-hash:pip-cache-parser
Open

Add support for parsing pip cache origin.json files#4874
Yuganti-hash wants to merge 2 commits intoaboutcode-org:developfrom
Yuganti-hash:pip-cache-parser

Conversation

@Yuganti-hash
Copy link
Copy Markdown

Fixes #4220

This PR adds support for parsing pip cache directories by extracting metadata from origin.json files.

Changes

  • Added a parser to detect pip cache directories
  • Extracts download URL from origin.json
  • Returns basic package metadata (type, download_url)

Example

Before: pip cache directories were ignored
After: ScanCode detects and extracts package source from origin.json

Testing

  • Added unit test for pip cache parsing
  • Verified extraction of download URL
  • All existing tests pass successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse pip cache dir

1 participant