Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect more validation errors #34

Open
6 of 21 tasks
Tracked by #30
jwodder opened this issue May 3, 2024 · 0 comments
Open
6 of 21 tasks
Tracked by #30

Detect more validation errors #34

jwodder opened this issue May 3, 2024 · 0 comments
Labels
c:validation enhancement New feature or request therefor robustness Imperviousness to bad behavior
Milestone

Comments

@jwodder
Copy link
Collaborator

jwodder commented May 3, 2024

Errors to detect:

  • project/version in filename/dist-info doesn't match METADATA
    • Be sure to take the filename's underscorification of - in the project name and ! & + in the version into account
  • tags in filename don't match those in WHEEL
  • build tag in filename doesn't match that in WHEEL
  • invalid Python/ABI/platform tag
  • tags in filename not sorted?
  • version doesn't comply with PEP 440
  • METADATA:
    • unknown Metadata-Version?
    • missing required field
    • field has invalid value
    • non-multi-use field used multiple times
    • not at least version 1.1
  • WHEEL:
    • unknown Wheel-Version
    • missing required field
    • field has invalid value
    • non-multi-use field used multiple times
  • both zip-safe and not-zip-safe
  • filename in RECORD contains a backslash?
  • filename in RECORD contains a null?
  • *.data/ cannot contain both purelib and platlib; which one is allowed depends on whether Root-Is-Purelib
  • *.data/ contains a non-directory file? (ignore?)
  • *.dist-info file is not UTF-8
@jwodder jwodder added enhancement New feature or request therefor robustness Imperviousness to bad behavior c:validation labels May 3, 2024
@jwodder jwodder added this to the v2.0 milestone May 3, 2024
@jwodder jwodder mentioned this issue May 3, 2024
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:validation enhancement New feature or request therefor robustness Imperviousness to bad behavior
Projects
None yet
Development

No branches or pull requests

1 participant