Skip to content

Commit 845dd56

Browse files
committed
add bumpver
1 parent 872bc27 commit 845dd56

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

pyproject.toml

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "widget_periodictable"
6+
name = "widget-periodictable"
77
version = "4.0.5"
88
dependencies = ["anywidget>=0.9.10"]
99
readme = "README.md"
@@ -17,7 +17,7 @@ keywords = [
1717
]
1818

1919
[project.optional-dependencies]
20-
dev = ["watchfiles", "jupyterlab"]
20+
dev = ["watchfiles", "jupyterlab", "bumpver>=2023"]
2121

2222
# automatically add the dev feature to the default env (e.g., hatch shell)
2323
[tool.hatch.envs.default]
@@ -37,3 +37,17 @@ dependencies = ["hatch-jupyter-builder>=0.5.0"]
3737
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
3838
npm = "npm"
3939
build_cmd = "build"
40+
41+
[tool.bumpver]
42+
current_version = "v4.0.5"
43+
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
44+
commit_message = "Bump version {old_version} -> {new_version}"
45+
commit = true
46+
tag = true
47+
push = true
48+
49+
[tool.bumpver.file_patterns]
50+
"pyproject.toml" = [
51+
'version = "{pep440_version}"',
52+
'current_version = "{version}"',
53+
]

0 commit comments

Comments
 (0)