From ea1ed13e94a9e3e07f744d9d04f184fc576e417d Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 4 Feb 2025 16:14:56 -0500 Subject: [PATCH] fix(pyproject.toml): capitulate to @bepri's demands --- pyproject.toml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ff8d171f..6641e44f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,26 +116,33 @@ readme = {file = "README.rst"} [tool.setuptools_scm] write_to = "craft_application/_version.py" # the version comes from the latest annotated git tag formatted as 'X.Y.Z' -# standard version scheme: -# 'X.Y.Z.post+g' -# scheme when no tags exist: -# '0.0.post+g -# scheme when no tags exist and working dir is dirty: -# '0.0.post+g.d' +# version scheme: +# - X.Y.Z.post+g.d<%Y%m%d> +# parts of scheme: +# - X.Y.Z - most recent git tag +# - post+g - present when current commit is not tagged +# - .d<%Y%m%d> - present when working dir is dirty +# version scheme when no tags exist: +# - 0.0.post+g version_scheme = "post-release" # deviations from the default 'git describe' command: # - only match annotated tags # - only match tags formatted as 'X.Y.Z' -# - exclude '+dirty' suffix -git_describe_command = "git describe --long --match '[0-9]*.[0-9]*.[0-9]*' --exclude '*[^0-9.]*'" +git_describe_command = [ + "git", + "describe", + "--dirty", + "--long", + "--match", + "[0-9]*.[0-9]*.[0-9]*", + "--exclude", + "*[^0-9.]*", +] [tool.setuptools.packages.find] include = ["*craft*"] namespaces = false -[tool.black] -target-version = ["py38"] - [tool.codespell] ignore-words-list = "buildd,crate,keyserver,comandos,ro,dedent,dedented" skip = ".git,build,.*_cache,__pycache__,*.tar,*.snap,*.png,./node_modules,./docs/_build,.direnv,.venv,venv,.vscode"