diff --git a/.git_archival.txt b/.git_archival.txt new file mode 100644 index 0000000..7c51009 --- /dev/null +++ b/.git_archival.txt @@ -0,0 +1,3 @@ +node: $Format:%H$ +node-date: $Format:%cI$ +describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..00a7b00 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.git_archival.txt export-subst diff --git a/fmf.spec b/fmf.spec index 0bb4a2c..284bfb8 100644 --- a/fmf.spec +++ b/fmf.spec @@ -1,5 +1,5 @@ Name: fmf -Version: 1.4.0 +Version: 0.0.0 Release: 1%{?dist} Summary: Flexible Metadata Format diff --git a/pyproject.toml b/pyproject.toml index 9ba3621..5d7141b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ['hatchling'] +requires = ['hatchling', 'hatch-vcs'] build-backend = 'hatchling.build' [project] @@ -23,7 +23,6 @@ classifiers = [ 'Programming Language :: Python :: 3.12', 'Topic :: Utilities', ] -version = '1.4.0' keywords = [ 'metadata', 'testing', @@ -33,6 +32,7 @@ dependencies = [ 'filelock', 'jsonschema', ] +dynamic = ['version'] [project.urls] Homepage = 'https://github.com/teemtee/fmf' @@ -52,6 +52,9 @@ docs = [ [project.scripts] fmf = 'fmf.cli:cli_entry' +[tool.hatch] +version.source = 'vcs' + [tool.hatch.envs.default] platforms = ["linux"]