Skip to content

Use versioningit#61

Merged
ajjackson merged 3 commits intomainfrom
versioningit
Jan 21, 2026
Merged

Use versioningit#61
ajjackson merged 3 commits intomainfrom
versioningit

Conversation

@ajjackson
Copy link
Member

@ajjackson ajjackson commented Jan 21, 2026

Versioneer still seems to require setup.py so is perhaps not the clean modern solution we are after.

Versioningit sets the package version at build-time based on Git tags. The version attribute in pyproject.toml becomes "dynamic" rather than hard-coded.

Because this is done at build-time the version is correctly set in project metadata and can be accessed by importlib. For convenience we also expose this as resins.__version__ at runtime.

I'm also applying a 0.0.1 version tag because versioneer requires some tag in the history in order to function.

Versioningit sets the package version at build-time based on Git
tags. The version attribute in pyproject.toml becomes "dynamic" rather
than hard-coded.

Because this is done at build-time the version is correctly set in
project metadata and can be accessed by importlib. For convenience we
also expose this as resins.__version__ at runtime.
Versioningit needs to see past tags in the git history to version
correctly. By default the checkout action is depth=1 and doesn't pull
tags.
@ajjackson ajjackson enabled auto-merge January 21, 2026 16:40
@ajjackson ajjackson merged commit a469dfe into main Jan 21, 2026
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.

1 participant