Skip to content

Comments

Collect WHEEL files for installed python wheels #4214#4776

Open
kaokab33 wants to merge 1 commit intoaboutcode-org:developfrom
kaokab33:collect-wheel-files
Open

Collect WHEEL files for installed python wheels #4214#4776
kaokab33 wants to merge 1 commit intoaboutcode-org:developfrom
kaokab33:collect-wheel-files

Conversation

@kaokab33
Copy link

@kaokab33 kaokab33 commented Feb 24, 2026

Parse the WHEEL file in .dist-info directories to extract wheel tags needed to reconstruct the original wheel filename for building more detailed PURLs.

Changes:

  • Add parse_wheel_tags() to parse .dist-info/WHEEL files
  • Add reconstruct_wheel_filename() to rebuild wheel filenames
  • Modify parse_metadata() to collect wheel data into extra_data
  • Add new test fixtures and tests for wheel tag collection
  • Update existing expected test JSONs with wheel tag data

Before & After

Before:

{
  "extra_data": {}
}

##After:

{
  "extra_data": {
    "wheel_tags": ["cp310-cp310-manylinux_2_17_x86_64"],
    "wheel_version": "1.0",
    "wheel_generator": "bdist_wheel (0.37.1)",
    "root_is_purelib": false
  }
}

Parse the WHEEL file in .dist-info directories to extract
wheel tags needed to reconstruct the original wheel filename
for building more detailed PURLs.

Changes:
- Add parse_wheel_tags() to parse .dist-info/WHEEL files
- Add reconstruct_wheel_filename() to rebuild wheel filenames
- Modify parse_metadata() to collect wheel data into extra_data
- Add new test fixtures and tests for wheel tag collection
- Update existing expected test JSONs with wheel tag data

Signed-off-by: Kareem Samy <karim.elsayed401@eng-st.cu.edu.eg>
@kaokab33 kaokab33 force-pushed the collect-wheel-files branch from 693c668 to f0ec49e Compare February 24, 2026 07:40
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.

1 participant