@@ -86,7 +86,7 @@ def create_release_branch(new_version: str) -> None:
8686
8787def bump_version (increment : Optional [str ] = None ) -> None :
8888 """Bumps the package version."""
89- bump_cmd : list [str ] = ["uvx" , "cz" , "bump" , "--yes" , "--files-only" , "--changelog" ]
89+ bump_cmd : list [str ] = ["uvx" , "--from" , "commitizen" , " cz" , "bump" , "--yes" , "--files-only" , "--changelog" ]
9090 if increment is not None :
9191 bump_cmd .extend (["--increment" , increment ])
9292 subprocess .run (bump_cmd , cwd = REPO_FOLDER , check = True )
@@ -122,7 +122,7 @@ def get_latest_release_notes() -> str:
122122 rev_range : str = latest_version if latest_tag is None else f"{ latest_tag } ..{ latest_version } "
123123
124124 result : subprocess .CompletedProcess = subprocess .run (
125- ["uvx" , "cz" , "changelog" , rev_range , "--dry-run" ],
125+ ["uvx" , "--from" , "commitizen" , " cz" , "changelog" , rev_range , "--dry-run" ],
126126 cwd = REPO_FOLDER ,
127127 check = True
128128 )
@@ -131,4 +131,4 @@ def get_latest_release_notes() -> str:
131131
132132def tag_release () -> None :
133133 """Tags the release using commitizen bump with tag only."""
134- subprocess .run (["uvx" , "cz" , "bump" , "--tag-only" , "--yes" ], cwd = REPO_FOLDER , check = True )
134+ subprocess .run (["uvx" , "--from" , "commitizen" , " cz" , "bump" , "--tag-only" , "--yes" ], cwd = REPO_FOLDER , check = True )
0 commit comments