Skip to content

Commit

Permalink
fix(pyproject.toml): capitulate to @bepri's demands
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Feb 6, 2025
1 parent 705e5b4 commit ea1ed13
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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<commits since tag>+g<hash>'
# scheme when no tags exist:
# '0.0.post<total commits>+g<hash>
# scheme when no tags exist and working dir is dirty:
# '0.0.post<total commits>+g<hash>.d<date formatted as %Y%m%d>'
# version scheme:
# - X.Y.Z.post<commits since tag>+g<hash>.d<%Y%m%d>
# parts of scheme:
# - X.Y.Z - most recent git tag
# - post<commits since tag>+g<hash> - 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<total commits>+g<hash>
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<hash>' 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"
Expand Down

0 comments on commit ea1ed13

Please sign in to comment.