Skip to content

Commit

Permalink
build: derive version from commit (not tag)
Browse files Browse the repository at this point in the history
Because commits will be (more) unambiguous, and if multiple branches have different version-commits, that will need to be resolved in merge-conflicts anyway, thus providing a good check. The alternative, derive from tags, is more fragile: the same commit could have multiple version tags...
  • Loading branch information
JorisVincent committed Mar 31, 2023
1 parent 9a9d6eb commit c2ab046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -68,7 +68,7 @@ profile = "black"
line_length = 99

[tool.semantic_release]
version_source = "tag" # source for version
version_source = "commit" # source for version
version_variable = [ # version location(s)
"pyproject.toml:version", # in this pyproject.toml
"stimupy/__init__.py:__version__" # in the init.py, so that stimupy.__version__ works
Expand Down

0 comments on commit c2ab046

Please sign in to comment.