Skip to content

PyPI releases' numbers ≠ github tags and releases #1063

@frenzymadness

Description

@frenzymadness

Hi!

I might have kinda niche issue related to the version numbers in this project. I maintain this package in Fedora Linux and I have an automation to update it every time a new release is published.

What gives my tool a little bit of a headache is the fact that the release numbers and tags on github are different (zero-padded months and days in the calver schema) from the ones on PyPI (short month and day numbers).

While both schemas are supported according to the calver specs, Python packaging guidelines and PEP 440 state:

All integers are interpreted via the int() built in and normalize to the string form of the output.

The normalization happens here because this project uses hatchling build backend, and that uses packaging.version.Version.

There is one open issue for packaging to allow non-normalized versions to support calver fully, but it's pretty old and without any activity.

It might be good to change the specification to support all possibilities provided by calver, but in the meantime, would it make sense to switch to the short format like 2026.2.3 instead of 2026.02.03 to keep github tags/releases and content on PyPI in sync?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions