Skip to content

Commit

Permalink
add bumpver
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Apr 30, 2024
1 parent 872bc27 commit 845dd56
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "widget_periodictable"
name = "widget-periodictable"
version = "4.0.5"
dependencies = ["anywidget>=0.9.10"]
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ keywords = [
]

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

# automatically add the dev feature to the default env (e.g., hatch shell)
[tool.hatch.envs.default]
Expand All @@ -37,3 +37,17 @@ dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"

[tool.bumpver]
current_version = "v4.0.5"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true

[tool.bumpver.file_patterns]
"pyproject.toml" = [
'version = "{pep440_version}"',
'current_version = "{version}"',
]

0 comments on commit 845dd56

Please sign in to comment.