By default, setuptools_scm
(when using git) produces version numbers such as:
mytool-1.2.3.dev42+ba98765.d19700101
I would like to include the branch name. I'm not set on the exact form, but maybe like this:
mytool-1.2.3.dev42+ba98765.branchname.d19700101
I found a pull request with the name add support for branch name based testing, but it has no description or documentation. I'm not 100% sure if it does what I'm looking for. What options do I add to the [tool.setuptools_scm]
section in my pyproject.toml
to include branch information in the setuptools_scm
-generated version?