Skip to content

Commit 6b9da70

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent f144fec commit 6b9da70

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_commit": "25270e77695521310ba772b545dc194eeea1cb78",
2+
"_commit": "9a676e5ee83ad4144a0b988d63d9b7776cedbb5b",
33
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
44
"add_rust_extension": false,
55
"author": "Kyle Oliver",

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
3-
"commit": "25270e77695521310ba772b545dc194eeea1cb78",
3+
"commit": "9a676e5ee83ad4144a0b988d63d9b7776cedbb5b",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -18,7 +18,7 @@
1818
"license": "MIT",
1919
"development_status": "Development Status :: 1 - Planning",
2020
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
21-
"_commit": "25270e77695521310ba772b545dc194eeea1cb78"
21+
"_commit": "9a676e5ee83ad4144a0b988d63d9b7776cedbb5b"
2222
}
2323
},
2424
"directory": null

scripts/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def create_release_branch(new_version: str) -> None:
8686

8787
def 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

132132
def 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

Comments
 (0)