Skip to content

Commit ef4b2a4

Browse files
committed
chore: manual cruft update
1 parent fb380cf commit ef4b2a4

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
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": "4163ffbcc49cd8cae8427fe5e642fc827a765886",
2+
"_commit": "856fb7a642e90086494989be99ea5b5b911336cc",
33
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
44
"add_rust_extension": false,
55
"author": "Kyle Oliver",

noxfile.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,6 @@ def build_container(session: Session) -> None:
193193
session.log(f"Container image {project_image_name}:latest built locally.")
194194

195195

196-
@nox.session(python=None, name="publish-python", tags=[RELEASE])
197-
def publish_python(session: Session) -> None:
198-
"""Publish sdist and wheel packages to PyPI via uv publish.
199-
200-
Requires packages to be built first (`nox -s build-python` or `nox -s build`).
201-
Requires TWINE_USERNAME/TWINE_PASSWORD or TWINE_API_KEY environment variables set (usually in CI).
202-
"""
203-
session.log("Checking built packages with Twine.")
204-
session.run("uvx", "twine", "check", "dist/*")
205-
206-
session.log("Publishing packages to PyPI.")
207-
session.run("uv", "publish", "dist/*", external=True)
208-
209-
210196
@nox.session(python=None, tags=[RELEASE])
211197
def release(session: Session) -> None:
212198
"""Run the release process using Commitizen.
@@ -242,6 +228,20 @@ def release(session: Session) -> None:
242228
session.log("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline.")
243229

244230

231+
@nox.session(python=None, name="publish-python", tags=[RELEASE])
232+
def publish_python(session: Session) -> None:
233+
"""Publish sdist and wheel packages to PyPI via uv publish.
234+
235+
Requires packages to be built first (`nox -s build-python` or `nox -s build`).
236+
Requires TWINE_USERNAME/TWINE_PASSWORD or TWINE_API_KEY environment variables set (usually in CI).
237+
"""
238+
session.log("Checking built packages with Twine.")
239+
session.run("uvx", "twine", "check", "dist/*")
240+
241+
session.log("Publishing packages to PyPI.")
242+
session.run("uv", "publish", "dist/*", *session.posargs, external=True)
243+
244+
245245
@nox.session(python=None)
246246
def tox(session: Session) -> None:
247247
"""Run the 'tox' test matrix.

0 commit comments

Comments
 (0)