diff --git a/pyproject.toml b/pyproject.toml index c158d7d..7635d98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,19 @@ vcs = "git" # Use a custom function for the next-version step with no parameters: next-version = { module = "geotils.module", value = "my_next_version" } +[tool.versioningit.format] +# Format used when there have been commits since the most recent tag: +distance = "{base_version}.post{distance}+{vcs}{rev}" +# Example formatted version: 1.2.3.post42+ge174a1f + +# Format used when there are uncommitted changes: +dirty = "{base_version}+d{build_date:%Y%m%d}" +# Example formatted version: 1.2.3+d20230922 + +# Format used when there are both commits and uncommitted changes: +distance-dirty = "{base_version}.post{distance}+{vcs}{rev}.d{build_date:%Y%m%d}" +# Example formatted version: 1.2.3.post42+ge174a1f.d20230922 + [project.urls] Homepage = "https://geogroup.ai/" Documentation = "https://readthedocs.org/geotils"