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

Give ParsedWheelFilename a construct() method #6

Open
jwodder opened this issue Nov 5, 2023 · 0 comments
Open

Give ParsedWheelFilename a construct() method #6

jwodder opened this issue Nov 5, 2023 · 0 comments
Labels
enhancement New feature or request therefor

Comments

@jwodder
Copy link
Collaborator

jwodder commented Nov 5, 2023

The method should take separate project name, version, etc. parameters and escape & combine them into a valid wheel filename.

  • The method should canonicalize the project name and version.

    • Non-PEP 440 versions will result in an error.
  • Characters in the build, Python, ABI, & platform tags other than Unicode word characters, Unicode digits, and (for the build tag) the period should either cause an error or be converted to underscores.

    • Add an option for controlling which one happens?
  • construct() should take the Python, ABI, & platform tags as sequences of strings to be sorted and joined with periods.

    • Support omitting each option to default to "py3", "none", and "any", respectively?
    • It should also be possible (either through other arguments or a separate method) to specify the compatibility tags as a list of tag triples.
@jwodder jwodder added the enhancement New feature or request therefor label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor
Projects
None yet
Development

No branches or pull requests

1 participant