Skip to content

Commit 9b1b14c

Browse files
authored
Use version template in pyproject (#350)
* Use version template in pyproject To avoid accidentally bumping a dependency version * Update pyproject.toml
1 parent 0891433 commit 9b1b14c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,19 @@ src = "jupyter_releaser/__init__.py"
7373

7474
[[tool.tbump.file]]
7575
src = "pyproject.toml"
76+
version_template = "version = \"{major}.{minor}.{patch}{channel}{release}\""
7677

7778
[[tool.tbump.file]]
7879
src = "docs/source/conf.py"
7980

81+
[[tool.tbump.field]]
82+
name = "channel"
83+
default = ""
84+
85+
[[tool.tbump.field]]
86+
name = "release"
87+
default = ""
88+
8089
[tool.jupyter-releaser]
8190
skip = ["check-links"]
8291

0 commit comments

Comments
 (0)