Skip to content

Commit

Permalink
build: Script to bump a new release by tagging commit and generating …
Browse files Browse the repository at this point in the history
…changelog
  • Loading branch information
prosto committed Dec 19, 2023
1 parent 2da700b commit 84a923d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ path = "src/neo4j_haystack/__about__.py"
tag_sign = false
tag_name = "v{new_version}"
commit_message = "🚀 Version {new_version}"

[tool.hatch.build]
include = ["/src/**/*.py"]
check_dirty = false
commit = true

[tool.hatch.envs.default]
features = ["tests"]
Expand Down Expand Up @@ -110,11 +109,16 @@ template = "maintain"
features = ["maintain"]

[tool.hatch.envs.maintain.scripts]
changelog = "git-changelog -c basic -t angular"
changelog = "git-changelog"
bump = [
"hatch version {args:.}",
"changelog",
"git add CHANGELOG.md && git commit --amend --no-edit",
]

[tool.git-changelog]
bump = "auto"
convention = "angular"
bump = "none"
convention = "conventional"
in-place = true
output = "CHANGELOG.md"
parse-refs = false
Expand Down

0 comments on commit 84a923d

Please sign in to comment.