Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hdtv/_version.py export-subst
pyproject.toml export-subst
* text=auto eol=lf

#
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ hdtv = ["share/*"]
"share/bash-completion/completions" = ["data/completions/hdtv"]
"share/applications" = ["data/hdtv.desktop"]

[tool.versioningit.vcs]
method = "git-archive"
describe-subst = "$Format:%(describe:tags)$"
# A clone or fork with tags is needed to get the correct version information.
# The fixed `default-tag` is used when no git tag is available.
default-tag = "0000"

[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
Expand Down
Loading