Skip to content

Commit 9ec1b64

Browse files
committed
feat: remove unused release nox session
1 parent e43ac97 commit 9ec1b64

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

{{cookiecutter.project_name}}/noxfile.py

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

261261

262-
@nox.session(python=False, tags=[RELEASE])
263-
def release(session: Session) -> None:
264-
"""Run the release process using Commitizen.
265-
266-
Requires uvx in PATH (from uv install). Requires Git. Assumes Conventional Commits.
267-
Optionally accepts increment (major, minor, patch) after '--'.
268-
"""
269-
session.log("Running release process using Commitizen...")
270-
try:
271-
session.run("git", "version", success_codes=[0], external=True, silent=True)
272-
except CommandFailed:
273-
session.log("Git command not found. Commitizen requires Git.")
274-
session.skip("Git not available.")
275-
276-
session.log("Checking Commitizen availability via uvx.")
277-
session.run("uvx", "--from=commitizen", "cz", "version", success_codes=[0])
278-
279-
increment = session.posargs[0] if session.posargs else None
280-
session.log(
281-
"Bumping version and tagging release (increment: %s).",
282-
increment if increment else "default",
283-
)
284-
285-
cz_bump_args = ["uvx", "--from=commitizen", "cz", "bump", "--changelog"]
286-
287-
if increment:
288-
cz_bump_args.append(f"--increment={increment}")
289-
290-
session.log("Running cz bump with args: %s", cz_bump_args)
291-
session.run(*cz_bump_args, success_codes=[0, 1], external=True)
292-
293-
session.log("Version bumped and tag created locally via Commitizen/uvx.")
294-
session.log("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline.")
295-
296-
297262
@nox.session(python=False, name="publish-python", tags=[RELEASE])
298263
def publish_python(session: Session) -> None:
299264
"""Publish sdist and wheel packages to PyPI via uv publish.

0 commit comments

Comments
 (0)