From 7b7666cbfc5581481bdbbc57e24234821eb96283 Mon Sep 17 00:00:00 2001 From: Kyle Oliver Date: Fri, 18 Jul 2025 01:43:03 -0400 Subject: [PATCH 1/3] chore: update demo to the latest cookiecutter-robust-python --- build/lib/robust_python_demo/__init__.py | 1 + build/lib/robust_python_demo/__main__.py | 15 +++++++++++++++ build/lib/robust_python_demo/py.typed | 0 3 files changed, 16 insertions(+) create mode 100644 build/lib/robust_python_demo/__init__.py create mode 100644 build/lib/robust_python_demo/__main__.py create mode 100644 build/lib/robust_python_demo/py.typed diff --git a/build/lib/robust_python_demo/__init__.py b/build/lib/robust_python_demo/__init__.py new file mode 100644 index 0000000..40f1b5d --- /dev/null +++ b/build/lib/robust_python_demo/__init__.py @@ -0,0 +1 @@ +"""Robust Python Demo.""" diff --git a/build/lib/robust_python_demo/__main__.py b/build/lib/robust_python_demo/__main__.py new file mode 100644 index 0000000..83d387b --- /dev/null +++ b/build/lib/robust_python_demo/__main__.py @@ -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 diff --git a/build/lib/robust_python_demo/py.typed b/build/lib/robust_python_demo/py.typed new file mode 100644 index 0000000..e69de29 From 163f2c0687c4d318d3e415fcdf7d4f765a2e1d91 Mon Sep 17 00:00:00 2001 From: Kyle Oliver Date: Fri, 18 Jul 2025 01:43:33 -0400 Subject: [PATCH 2/3] chore: update demo to the latest cookiecutter-robust-python --- .cookiecutter.json | 2 +- .cruft.json | 4 ++-- noxfile.py | 35 ----------------------------------- pyproject.toml | 6 ++++++ 4 files changed, 9 insertions(+), 38 deletions(-) diff --git a/.cookiecutter.json b/.cookiecutter.json index bc34be9..0475c96 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -1,5 +1,5 @@ { - "_commit": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7", + "_commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5", "_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python", "add_rust_extension": false, "author": "Kyle Oliver", diff --git a/.cruft.json b/.cruft.json index a779b81..66f2001 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python", - "commit": "e43ac97858d8d40be0104a7a313ed12bcf9e1ab7", + "commit": "f5a057a9bfb8d9a20e7c233c4f5a11659fc1eac5", "checkout": null, "context": { "cookiecutter": { @@ -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 diff --git a/noxfile.py b/noxfile.py index fad5d75..3008a34 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 00ab033..5f3385a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" From c3f19a4e8dc76794c9e28ac29b56cf7e226807d2 Mon Sep 17 00:00:00 2001 From: Kyle Oliver Date: Fri, 18 Jul 2025 01:43:55 -0400 Subject: [PATCH 3/3] =?UTF-8?q?bump:=20version=200.3.0=20=E2=86=92=200.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d6939..8181bf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## v0.4.0 (2025-07-18) + ## v0.3.0 (2025-07-16) ## v0.2.0 (2025-07-16) diff --git a/pyproject.toml b/pyproject.toml index 5f3385a..7ed4b28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" },