Skip to content

Commit 16d9bd6

Browse files
authored
fix: dynamic versioning (#248)
1 parent 3daba4c commit 16d9bd6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

pyproject.toml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,25 @@ dependencies = [
2121
"tomli<3.0.0,>=2.2.1; python_version < \"3.13\"",
2222
]
2323
name = "twyn"
24-
version = "2.9.0"
25-
description = ""
24+
description = "Security tool against dependency typosquatting attacks"
2625
readme = "README.md"
26+
dynamic = ["version"]
27+
28+
[tool.hatch.version]
29+
path = "VERSION"
30+
pattern = "v(?P<version>[^\\s]+)"
31+
32+
[tool.hatch.build.targets.wheel]
33+
packages = ["src/twyn"]
34+
35+
[tool.hatch.build.targets.sdist]
36+
include = [
37+
"/src",
38+
"/README.md",
39+
"/LICENSE",
40+
"/VERSION",
41+
"/pyproject.toml",
42+
]
2743

2844
[project.scripts]
2945
twyn = "twyn.cli:entry_point"

uv.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)