Skip to content

Commit 8ed999c

Browse files
JonZeollaclaude
andcommitted
fix(ci): show only version number in --version, use descriptive CI project name
- Change --version output from "prog_name 0.0.0" to just "0.0.0" - Use "ci-test-project" instead of default "replace-me" for Windows smoke test generated project name Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1d3377a commit 8ed999c

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

  • .github/workflows
  • {{cookiecutter.project_name|replace(" ", "")}}/src

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ jobs:
141141
curl -fsSL "$scriptUrl" -o "$tmpdir/extract_template_zip.py"
142142
repoDir=$(python3 "$tmpdir/extract_template_zip.py" "$tmpdir/template.zip" "$tmpdir/src")
143143
144-
uvx --with gitpython cookiecutter "$repoDir" --no-input --output-dir "$RUNNER_TEMP"
144+
uvx --with gitpython cookiecutter "$repoDir" --no-input \
145+
project_name="ci-test-project" \
146+
--output-dir "$RUNNER_TEMP"
145147
- name: Verify generated project
146148
shell: pwsh
147149
run: |
148-
$project = Join-Path $env:RUNNER_TEMP "replace-me"
150+
$project = Join-Path $env:RUNNER_TEMP "ci-test-project"
149151
150152
# Verify the project directory was created
151153
if (-not (Test-Path $project)) {
@@ -222,25 +224,25 @@ jobs:
222224
- name: Initialize generated project
223225
shell: bash
224226
run: |
225-
cd "$RUNNER_TEMP/replace-me"
227+
cd "$RUNNER_TEMP/ci-test-project"
226228
task -v init
227229
- name: Run unit tests
228230
shell: bash
229231
# Integration tests require Docker (Linux images) which is not
230232
# available on Windows runners; those are covered by the Linux CI job.
231233
run: |
232-
cd "$RUNNER_TEMP/replace-me"
234+
cd "$RUNNER_TEMP/ci-test-project"
233235
task -v unit-test
234236
- name: Build Docker image
235237
shell: bash
236238
run: |
237-
cd "$RUNNER_TEMP/replace-me"
239+
cd "$RUNNER_TEMP/ci-test-project"
238240
task -v build
239241
- name: Verify Docker image
240242
shell: bash
241243
run: |
242-
docker run --rm zenable-io/replace-me:latest --version
243-
docker run --rm zenable-io/replace-me:latest --help
244+
docker run --rm zenable-io/ci-test-project:latest --version
245+
docker run --rm zenable-io/ci-test-project:latest --help
244246
- name: Verify zenable CLI
245247
shell: bash
246248
run: |

{{cookiecutter.project_name|replace(" ", "")}}/src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def main():
1515
description="{{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}",
1616
)
1717
parser.add_argument(
18-
"--version", action="version", version=f"%(prog)s {__version__}"
18+
"--version", action="version", version=__version__
1919
)
2020
parser.parse_args()
2121

0 commit comments

Comments
 (0)