Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyproject.toml: use setuptools_scm to determine version number #44

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Apr 23, 2024

This means we no longer have to update the version number manually when creating a new release because just setting a tag suffices.

It does however also add some complexity and magic to the project, like incorrect version numbers when the git history is not complete (hence why we now clone the whole history in the build job) and all files included in the git repository now being shipped in the source distribution (while previously only files mentioned in the MANIFEST.in were included).

The beneftis when it comes to automating the release process do however outweight the drawbacks of added compexity.

We use local_scheme = "no-local-version" to prevent random files in the project directory from causing +dirty version numbers.

Thus use setuptools_scm to determine the version number from git tags.

This means we no longer have to update the version number manually
when creating a new release because just setting a tag suffices.

It does however also add some complexity and magic to the project,
like incorrect version numbers when the git history is not complete
(hence why we now clone the whole history in the build job) and
all files included in the git repository now being shipped in the
source distribution (while previously only files mentioned in the
MANIFEST.in were included).

The beneftis when it comes to automating the release process do
however outweight the drawbacks of added compexity.

We use `local_scheme = "no-local-version"` to prevent random files
in the project directory from causing "+dirty" version numbers.

Thus use setuptools_scm to determine the version number from
git tags.

Signed-off-by: Leonard Göhrs <[email protected]>
@SmithChart SmithChart merged commit d05e45e into linux-automation:master Apr 24, 2024
5 checks passed
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