From a154de0fec089b7bd2dcd9d4eb90d522734f5235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20Syrj=C3=A4salo?= Date: Sun, 28 Jul 2024 12:21:50 +0300 Subject: [PATCH] chore: Release 1.4.0 --- noxfile.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/noxfile.py b/noxfile.py index 586962f..05fea74 100644 --- a/noxfile.py +++ b/noxfile.py @@ -176,6 +176,27 @@ def install_testpypi(session): ) +@nox.session(venv_backend="venv") +def release_pypi(session): + """Publish dist/* to PyPI.""" + session.install("zest.releaser[recommended]") + session.run("twine", "check", "dist/*") + session.run( + "twine", + "upload", + "dist/*", + ) + + +@nox.session(venv_backend="venv") +def install_pypi(session): + """Install the latest release from PyPI.""" + session.install( + "--no-cache-dir", + PROJECT_NAME, + ) + + @nox.session(venv_backend="venv") def release(session): """Tag, build and publish a new release to PyPI."""