Skip to content

Commit 5926ac0

Browse files
committed
Switch to dynamic version
Signed-off-by: Cristian Le <[email protected]>
1 parent 2922b51 commit 5926ac0

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.git_archival.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

fmf.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Name: fmf
2-
Version: 1.3.0
3-
Release: 1%{?dist}
2+
Version: 0.0.0
3+
Release: %autorelease
44

55
Summary: Flexible Metadata Format
66
License: GPLv2+

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ['hatchling']
2+
requires = ['hatchling', 'hatch-vcs']
33
build-backend = 'hatchling.build'
44

55
[project]
@@ -23,7 +23,6 @@ classifiers = [
2323
'Programming Language :: Python :: 3.12',
2424
'Topic :: Utilities',
2525
]
26-
version = '1.3.0'
2726
keywords = [
2827
'metadata',
2928
'testing',
@@ -33,6 +32,7 @@ dependencies = [
3332
'filelock',
3433
'jsonschema',
3534
]
35+
dynamic = ['version']
3636

3737
[project.urls]
3838
Homepage = 'https://github.com/teemtee/fmf'
@@ -54,6 +54,9 @@ docs = [
5454
[project.scripts]
5555
fmf = 'fmf.cli:cli_entry'
5656

57+
[tool.hatch]
58+
version.source = 'vcs'
59+
5760
[tool.hatch.build.targets.wheel]
5861
packages = ['fmf']
5962

0 commit comments

Comments
 (0)