Skip to content

Enable setuptools-scm#319

Open
mweinelt wants to merge 3 commits into
OHF-Voice:mainfrom
mweinelt:setuptool-scm-enable
Open

Enable setuptools-scm#319
mweinelt wants to merge 3 commits into
OHF-Voice:mainfrom
mweinelt:setuptool-scm-enable

Conversation

@mweinelt
Copy link
Copy Markdown
Contributor

@mweinelt mweinelt commented May 9, 2026

This fixes the package version, since setuptools-scm needs to be enabled through the existence of its config section.

From

Successfully built linux_voice_assistant-0.0.0.tar.gz and linux_voice_assistant-0.0.0-py3-none-any.whl

To

Successfully built linux_voice_assistant-1.1.11.dev0+g73b494275.d19800101.tar.gz and linux_voice_assistant-1.1.11.dev0+g73b494275.d19800101-py3-none-any.whl

This requires further changes to the container builds, since they don't have a .git tree to pull the version info from. Instead, we use git describe at build time to come up with a version.

With that change applied the package version can be looked up from package metadata and version.txt is not required any longer.

This fixes the package version, since setuptools-scm needs to be enabled
through the existence of its config section.

The Docker container is now passed a VERSION attribute at build time that
for CI jobs is derived from the Git tree. This is necessary because the
Git tree is not copied into the Docker container.
@florian-asche florian-asche self-assigned this May 10, 2026
With --tag we get a version relative to the last tag, while with --always
we sometimes just get a short hash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants