From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Python wheel" |
|---|
| claim | "pypa/packaging parse_wheel_filename requires the .whl suffix, exactly 4 or 5 dashes in the stem, splits at the first dashes so the last part is the tag set, rejects a project name containing '__' or characters outside word characters, dot and underscore, requires a PEP 440 version, and a build tag (5-dash form) matching digits followed by anything, returned as (int, suffix); compressed tag sets must be sorted when validate_order is set. parse_sdist_filename accepts .tar.gz or .zip and splits name and version at the last dash." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Python wheel" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "parse_wheel_filename / parse_sdist_filename" |
|---|
| effect | "file name validation and decomposition" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "_build_tag_regex, _wheel_name_regex, the dash count check, build part handling, and parse_sdist_filename extension and rpartition('-') logic. Dual licensed Apache-2.0 or BSD-2-Clause." |
|---|
| repo | "https://github.com/pypa/packaging" |
|---|
| commit | "ef837aad3127167671eb37b9f6bd8a94ec7ce26e" |
|---|
| path | "src/packaging/utils.py" |
|---|
| lines | "76-79, 255-303, 341-353" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "packaging parse_wheel_filename rules" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T07:16:15.365Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:28:12.299Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read packaging src/packaging/utils.py lines 70-80 and 250-355 at ef837aa: suffix check, dash count 4/5, split(-, dashes-2), __ and word-char regex, Version, build tag regex (\d+)(.*), parse_tag validate_order, sdist .tar.gz/.zip and rpartition." |
|---|
|
|
|---|