@@ -34,7 +34,7 @@ classifiers = [
3434dependencies = [" pythonnet>=3.0.3" ]
3535
3636[project .optional-dependencies ]
37- dev = [" pytest>=7.0" , " ruff>=0.5" ]
37+ dev = [" pytest>=7.0" , " ruff>=0.5" , " build>=1.0 " , " bump-my-version>=0.20 " ]
3838
3939[project .urls ]
4040Homepage = " https://github.com/compas-dev/ghpython_componentizer"
@@ -51,7 +51,26 @@ path = "src/ghpython_componentizer/__init__.py"
5151packages = [" src/ghpython_componentizer" ]
5252
5353[tool .hatch .build .targets .sdist ]
54- include = [" src" , " tests" , " README.md" , " LICENSE" ]
54+ include = [" src" , " tests" , " README.md" , " CHANGELOG.md" , " LICENSE" ]
55+
56+ [tool .bumpversion ]
57+ current_version = " 0.1.0"
58+ message = " Bump version to {new_version}"
59+ commit = true
60+ tag = true
61+ tag_name = " v{new_version}"
62+
63+ [[tool .bumpversion .files ]]
64+ filename = " src/ghpython_componentizer/__init__.py"
65+ search = " {current_version}"
66+ replace = " {new_version}"
67+
68+ # Turns the `Unreleased` heading into the released one. The release-pr action
69+ # adds the next `Unreleased` section back on top.
70+ [[tool .bumpversion .files ]]
71+ filename = " CHANGELOG.md"
72+ search = " Unreleased"
73+ replace = " [{new_version}] {now:%Y-%m-%d}"
5574
5675[tool .ruff ]
5776line-length = 179
0 commit comments