Skip to content

No Constraint on Version Names Can Cause Issues #12483

Open
@RobertRosca

Description

@RobertRosca

Describe the bug

There's no (or a very high) limit on the name provided for a version of a package, for example this package https://pypi.org/project/uselesscapitalquiz/ has a version name which is 218 characters long.

Depending on the OS and file system you can hit file name length limits, causing issues with mirroring PyPI or with installation. See pypa/bandersnatch#1200, pypa/bandersnatch#1228

Expected behavior

There should be a limit in place on the length of the version name to avoid this from happening, either on accident as it seems to be with uselesscapitalquiz or on purpose to cause issues on users systems.

To Reproduce

N/A

My Platform

N/A

Additional context

I'm happy to work on a PR limiting the length of the version name, if that's an approved solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestneeds discussiona product management/policy issue maintainers and users should discuss

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions