Skip to content

Commit c2334dc

Browse files
committed
fix: dynamic versioning for hatch
Signed-off-by: K.B.Dharun Krishna <[email protected]>
1 parent 70cfc71 commit c2334dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Changelog = "https://github.com/tldr-pages/tldr-python-client/blob/main/CHANGELO
7272
Funding = "https://liberapay.com/tldr-pages"
7373

7474
[tool.hatch.version]
75-
path = "tldr/__init__.py"
75+
path = "tldr.py"
76+
pattern = '__version__ = ["\'](.*?)[\'\"]'
7677

7778
[tool.hatch.build.targets.wheel.shared-data]
7879
"docs/man" = "share/man/man1"

0 commit comments

Comments
 (0)