Skip to content

Commit 3fa0fd0

Browse files
committed
Dynamic version
1 parent 6d52f89 commit 3fa0fd0

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

src/core/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "core"
7-
version = "0.0.0"
7+
dynamic = ["version"]
88
description = "Core functionality"
99
authors = [
1010
{ name = "Miguel Villa Floran", email = "miguel.villafloran@gmail.com" },
@@ -17,5 +17,8 @@ dependencies = ["utils", "typer>=0.12.5"]
1717
[project.scripts]
1818
core = "core.cli:app"
1919

20+
[tool.hatch.version]
21+
path = "src/core/__init__.py"
22+
2023
[tool.uv.sources]
2124
utils = { workspace = true }

src/core/src/core/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""Core package."""
2+
3+
__version__ = "0.1.0"
4+
5+
16
def hello():
27
print("Hello from core pkg")
38

src/core/src/core/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from .cli import entrypoint
2+
3+
if __name__ == "__main__":
4+
entrypoint()

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)