Skip to content

Feature: Version numbers based on Git commits when doing dev installation #204

@TeresiaOlsson

Description

@TeresiaOlsson

Description, motivation and use case
When doing a development installation it is difficult to know which version of the code you have installed since the version number is the same as the latest release on pypi.

Proposed solution
Configure hatch to add git information into the version so you get a version number including the commit number when installing a developer version.

This seems to be the way to do it but I haven't tried dynamic versioning in hatch before: https://github.com/ofek/hatch-vcs

Describe alternatives you've considered
If it's difficult to do with hatch we can switch to building with poetry or uv where this is easy to configure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions