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 May 21, 2024
1 parent c9cccb3 commit 58405c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 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
4 changes: 2 additions & 2 deletions fmf.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: fmf
Version: 1.3.0
Release: 1%{?dist}
Version: 0.0.0
Release: %autorelease

Summary: Flexible Metadata Format
License: GPLv2+
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.3.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 @@ -54,6 +54,9 @@ docs = [
[project.scripts]
fmf = 'fmf.cli:cli_entry'

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

[tool.hatch.build.targets.wheel]
packages = ['fmf']

Expand Down

0 comments on commit 58405c8

Please sign in to comment.