hatch-vcs icon indicating copy to clipboard operation
hatch-vcs copied to clipboard

Default version when no tags exist is not compliant with semantic versioning

Open lfvjimisola opened this issue 9 months ago • 3 comments

Default version when no tags exist is not compliant with semantic versioning

user@x:~/xxx $git tag
user@x:~/xxx $hatch version
0.1.dev20

To be compliant semantic versioning it should starts with "0.1.0.devN".

lfvjimisola avatar Mar 14 '25 09:03 lfvjimisola

The default version scheme follows python standards not semver

RonnyPfannschmidt avatar Mar 14 '25 10:03 RonnyPfannschmidt

Ok?

But PEP440 and https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers still allows for major.minor.patch.

Is it configurable somehow? It's not a big issue for as this only happens before there is a tag in the repository.

lfvjimisola avatar Mar 14 '25 11:03 lfvjimisola

There's the simplified semver scheme

RonnyPfannschmidt avatar Mar 14 '25 16:03 RonnyPfannschmidt