Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Jul 30, 2024
1 parent bb02766 commit 718967b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions bumpchanges/bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def write_commit_details(version: str):
)


def main():
def entrypoint():
"Main entrypoint."
parser = argparse.ArgumentParser()
parser.add_argument("changelog", type=Path)
Expand All @@ -89,7 +89,3 @@ def main():

update_changelog(args.changelog, args.repo_url, args.version)
write_commit_details(args.version)


if __name__ == "__main__":
main()
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ maintainers = [
]

[project.scripts]
get-next-version = "bumpchanges:getversion.main"
bump-changelog = "bumpchanges:bump.main"
get-next-version = "bumpchanges:getversion.entrypoint"
bump-changelog = "bumpchanges:bump.entrypoint"

[build-system]
requires = ["hatchling", "hatch-vcs"]
Expand Down

0 comments on commit 718967b

Please sign in to comment.