Skip to content

Commit 395d8eb

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent 2c9e91a commit 395d8eb

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
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": "8b33de78451ca2e4cdb06bd2da3db5cf5d74ae2c",
2+
"_commit": "d7435dd1e6da0c644771ce635b32487492c42954",
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": "8b33de78451ca2e4cdb06bd2da3db5cf5d74ae2c",
3+
"commit": "d7435dd1e6da0c644771ce635b32487492c42954",
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": "8b33de78451ca2e4cdb06bd2da3db5cf5d74ae2c"
21+
"_commit": "d7435dd1e6da0c644771ce635b32487492c42954"
2222
}
2323
},
2424
"directory": null

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
fetch-tags: true
1821

1922
- name: Set up uv
2023
uses: astral-sh/setup-uv@v6

scripts/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ def get_latest_release_notes() -> str:
120120
"The latest tag and version are the same. Please ensure the release notes are taken before tagging."
121121
)
122122
rev_range: str = "" if latest_tag is None else f"{latest_tag}..{latest_version}"
123-
123+
command: list[str] = [
124+
"uvx", "--from", "commitizen", "cz", "changelog", rev_range, "--dry-run", "--unreleased-version", latest_version
125+
]
124126
result: subprocess.CompletedProcess = subprocess.run(
125-
["uvx", "--from", "commitizen", "cz", "changelog", rev_range, "--dry-run"],
127+
command,
126128
cwd=REPO_FOLDER,
127129
capture_output=True,
128130
check=True

0 commit comments

Comments
 (0)