Skip to content

build artifact names use PyPa version not semver #89

@eyablonowitz

Description

@eyablonowitz

When I build with a prerelease version I get an artifact named with PyPa versioning not semver. Is this expected?

% hatch version 
0.1.3
% hatch version alpha
Old: 0.1.3
New: 0.1.4-alpha.1
% hatch build -t sdist
...
dist/dblunch-0.1.4a1.tar.gz

pyproject.toml:

[build-system]
requires = ["hatchling", "hatch-semver"]
build-backend = "hatchling.build"
...
[project]
name = "dblunch"
...
dynamic = ["version"]
...
[tool.hatch.version]
path = "src/dblunch/__about__.py"
validate-bump = true
scheme = "semver"
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions