Skip to content

Commit

Permalink
Switch to dynamic version
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Jun 17, 2024
1 parent 04e6216 commit 6af5881
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
2 changes: 1 addition & 1 deletion fmf.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: fmf
Version: 1.4.0
Version: 0.0.0
Release: 1%{?dist}

Summary: Flexible Metadata Format
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ['hatchling']
requires = ['hatchling', 'hatch-vcs']
build-backend = 'hatchling.build'

[project]
Expand All @@ -23,7 +23,6 @@ classifiers = [
'Programming Language :: Python :: 3.12',
'Topic :: Utilities',
]
version = '1.4.0'
keywords = [
'metadata',
'testing',
Expand All @@ -33,6 +32,7 @@ dependencies = [
'filelock',
'jsonschema',
]
dynamic = ['version']

[project.urls]
Homepage = 'https://github.com/teemtee/fmf'
Expand All @@ -52,6 +52,9 @@ docs = [
[project.scripts]
fmf = 'fmf.cli:cli_entry'

[tool.hatch]
version.source = 'vcs'

[tool.hatch.envs.default]
platforms = ["linux"]

Expand Down

0 comments on commit 6af5881

Please sign in to comment.