Skip to content

Wrong version when building from a tag #1268

@guilherme-takata

Description

@guilherme-takata

I have an automated setup for building and publishing my package to my private index. But when I checkout to my tag and build the project it builds it with the dev0 suffix instead of just building with a version exactly the same as the one on my tag. Is this supposed to happen, or is it due to some misconfiguration?

This is my pyproject.toml

requires = ["setuptools>=82", "wheel", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"

And just to show my git tag is created as it should:

git describe --tags
v1.0.3

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions