Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_commit": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7",
"_commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5",
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
"add_rust_extension": false,
"author": "Kyle Oliver",
Expand Down
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
"commit": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7",
"commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -18,7 +18,7 @@
"license": "MIT",
"development_status": "Development Status :: 1 - Planning",
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
"_commit": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7"
"_commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5"
}
},
"directory": null
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.4.0 (2025-07-18)

## v0.3.0 (2025-07-16)

## v0.2.0 (2025-07-16)
Expand Down
1 change: 1 addition & 0 deletions build/lib/robust_python_demo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Robust Python Demo."""
15 changes: 15 additions & 0 deletions build/lib/robust_python_demo/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Command-line interface."""

import typer


app: typer.Typer = typer.Typer()


@app.command(name="robust-python-demo")
def main() -> None:
"""Robust Python Demo."""


if __name__ == "__main__":
app() # pragma: no cover
Empty file.
35 changes: 0 additions & 35 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,41 +211,6 @@ def get_release_notes(session: Session) -> None:
session.run("python", SCRIPTS_FOLDER / "get-release-notes.py", *session.posargs, external=True)


@nox.session(python=False, tags=[RELEASE])
def release(session: Session) -> None:
"""Run the release process using Commitizen.

Requires uvx in PATH (from uv install). Requires Git. Assumes Conventional Commits.
Optionally accepts increment (major, minor, patch) after '--'.
"""
session.log("Running release process using Commitizen...")
try:
session.run("git", "version", success_codes=[0], external=True, silent=True)
except CommandFailed:
session.log("Git command not found. Commitizen requires Git.")
session.skip("Git not available.")

session.log("Checking Commitizen availability via uvx.")
session.run("uvx", "--from=commitizen", "cz", "version", success_codes=[0])

increment = session.posargs[0] if session.posargs else None
session.log(
"Bumping version and tagging release (increment: %s).",
increment if increment else "default",
)

cz_bump_args = ["uvx", "--from=commitizen", "cz", "bump", "--changelog"]

if increment:
cz_bump_args.append(f"--increment={increment}")

session.log("Running cz bump with args: %s", cz_bump_args)
session.run(*cz_bump_args, success_codes=[0, 1], external=True)

session.log("Version bumped and tag created locally via Commitizen/uvx.")
session.log("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline.")


@nox.session(python=False, name="publish-python", tags=[RELEASE])
def publish_python(session: Session) -> None:
"""Publish sdist and wheel packages to PyPI via uv publish.
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "robust-python-demo"
version = "0.3.0"
version = "0.4.0"
description = "robust-python-demo"
authors = [
{ name = "Kyle Oliver", email = "56kyleoliver+cookiecutter-robust-python@gmail.com" },
Expand Down Expand Up @@ -50,6 +50,12 @@ docs = [
Homepage = "https://github.com/56kyle/robust-python-demo"
Repository = "https://github.com/56kyle/robust-python-demo"

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
Loading