Skip to content

Commit 163f2c0

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent 7b7666c commit 163f2c0

File tree

4 files changed

+9
-38
lines changed

4 files changed

+9
-38
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": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7",
2+
"_commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5",
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": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7",
3+
"commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5",
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": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7"
21+
"_commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5"
2222
}
2323
},
2424
"directory": null

noxfile.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -211,41 +211,6 @@ def get_release_notes(session: Session) -> None:
211211
session.run("python", SCRIPTS_FOLDER / "get-release-notes.py", *session.posargs, external=True)
212212

213213

214-
@nox.session(python=False, tags=[RELEASE])
215-
def release(session: Session) -> None:
216-
"""Run the release process using Commitizen.
217-
218-
Requires uvx in PATH (from uv install). Requires Git. Assumes Conventional Commits.
219-
Optionally accepts increment (major, minor, patch) after '--'.
220-
"""
221-
session.log("Running release process using Commitizen...")
222-
try:
223-
session.run("git", "version", success_codes=[0], external=True, silent=True)
224-
except CommandFailed:
225-
session.log("Git command not found. Commitizen requires Git.")
226-
session.skip("Git not available.")
227-
228-
session.log("Checking Commitizen availability via uvx.")
229-
session.run("uvx", "--from=commitizen", "cz", "version", success_codes=[0])
230-
231-
increment = session.posargs[0] if session.posargs else None
232-
session.log(
233-
"Bumping version and tagging release (increment: %s).",
234-
increment if increment else "default",
235-
)
236-
237-
cz_bump_args = ["uvx", "--from=commitizen", "cz", "bump", "--changelog"]
238-
239-
if increment:
240-
cz_bump_args.append(f"--increment={increment}")
241-
242-
session.log("Running cz bump with args: %s", cz_bump_args)
243-
session.run(*cz_bump_args, success_codes=[0, 1], external=True)
244-
245-
session.log("Version bumped and tag created locally via Commitizen/uvx.")
246-
session.log("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline.")
247-
248-
249214
@nox.session(python=False, name="publish-python", tags=[RELEASE])
250215
def publish_python(session: Session) -> None:
251216
"""Publish sdist and wheel packages to PyPI via uv publish.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ docs = [
5050
Homepage = "https://github.com/56kyle/robust-python-demo"
5151
Repository = "https://github.com/56kyle/robust-python-demo"
5252

53+
[[tool.uv.index]]
54+
name = "testpypi"
55+
url = "https://test.pypi.org/simple/"
56+
publish-url = "https://test.pypi.org/legacy/"
57+
explicit = true
58+
5359
[build-system]
5460
requires = ["setuptools>=61.0"]
5561
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)