From 6974dc7e62badab0833b15dd7f5c9a9b757863fa Mon Sep 17 00:00:00 2001 From: aghand0ur Date: Tue, 2 Apr 2024 14:59:49 +0300 Subject: [PATCH] Update pyproject.toml --- pyproject.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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"