Skip to content

Commit 7e2514e

Browse files
committed
Hatch read version from the VERSION file
1 parent 0c5b1e7 commit 7e2514e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Documentation = "https://fastapi-jsonapi.readthedocs.io/"
5757
Source = "https://github.com/mts-ai/FastAPI-JSONAPI"
5858

5959
[tool.hatch.version]
60-
path = "fastapi_jsonapi/__init__.py"
60+
path = "fastapi_jsonapi/VERSION"
61+
pattern = "(?P<version>[^']+)"
6162

6263
[tool.hatch.build.targets.sdist]
6364
include = [

0 commit comments

Comments
 (0)