Skip to content

Commit 3f1339d

Browse files
committed
core: update template with dynamic versioning & dev dependency-group
1 parent 9bd54c7 commit 3f1339d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "pdm.backend"
44

55
[project]
66
name = "mcpstack-your-tool-name"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
description = "Create your MCPStack tool with this template repository!"
99
readme = "README.md"
1010
requires-python = ">=3.10"
@@ -21,7 +21,7 @@ dependencies = [
2121
"mcpstack>=0.0.2",
2222
]
2323

24-
[project.optional-dependencies]
24+
[dependency-groups]
2525
dev = [
2626
"pytest>=7.4",
2727
"ruff>=0.4.0",

scripts/scaffold/pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "pdm.backend"
44

55
[project]
66
name = "mcpstack-your-tool-name"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
description = "Create your MCPStack tool with this template repository!"
99
readme = "README.md"
1010
requires-python = ">=3.10"
@@ -16,12 +16,12 @@ dependencies = [
1616
"beartype>=0.21.0",
1717
"rich>=13.0.0",
1818
"rich-argparse>=1.4.0",
19-
"mcpstack",
2019
"rich-pyfiglet>=1.0.0",
2120
"click>=8.1.8",
21+
"mcpstack>=0.0.2",
2222
]
2323

24-
[project.optional-dependencies]
24+
[dependency-groups]
2525
dev = [
2626
"pytest>=7.4",
2727
"ruff>=0.4.0",
@@ -48,6 +48,3 @@ ignore = ["E501"]
4848
[tool.pytest.ini_options]
4949
testpaths = ["tests"]
5050
python_files = ["test_*.py"]
51-
52-
[tool.uv.sources]
53-
mcpstack = { path = "../../MCPStack" }

scripts/scaffold/src/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__version__ = "0.0.1"
2+
__all__ = ["__version__"]

src/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__version__ = "0.0.1"
2+
__all__ = ["__version__"]

0 commit comments

Comments
 (0)