Skip to content

Commit 78382eb

Browse files
committed
feat: use scm for version
1 parent 5f31ee7 commit 78382eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "apmodel"
3-
version = "0.2.4"
3+
dynamic = ["version"]
44
description = "ActivityStreams 2.0 and nodeinfo 2.0/2.1 implementation for Python."
55
authors = [
66
{name = "AmaseCocoa", email = "cocoa@amase.cc"},
@@ -28,6 +28,10 @@ Changelog = "https://github.com/AmaseCocoa/apmodel/blob/main/CHANGELOG.md"
2828
requires = ["pdm-backend"]
2929
build-backend = "pdm.backend"
3030

31-
3231
[tool.pdm]
3332
distribution = true
33+
34+
[tool.pdm.version]
35+
source = "scm"
36+
write_to = "apsig/_version.py"
37+
write_template = "__version__ = '{}'"

src/apmodel/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.0"

0 commit comments

Comments
 (0)