Skip to content

Commit

Permalink
add hatch for version management and update metadata hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoelles committed Dec 3, 2024
1 parent 10a1313 commit 1880161
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ dev = [
"nbconvert",
"nbformat",
"matplotlib",
"hatch",
]
doc = [
"sphinx",
Expand Down Expand Up @@ -101,3 +102,12 @@ relative_files = true

[tool.coverage.report]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"]

[tool.hatch.version]
path = "pointcloudset/__init__.py"

[tool.hatch.metadata.hooks.version-bump]
files = [
{ path = "pyproject.toml", search = 'version = "{current_version}"', replace = 'version = "{new_version}"' },
{ path = "CHANGELOG.rst", search = "Unreleased", replace = "Unreleased\n\t-------------\n\t\n\t{new_version} - ({now:%Y-%m-%d})" },
]

0 comments on commit 1880161

Please sign in to comment.