From 12a9d8ad90cd3f394673df1b7c7c50627729c42f Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sun, 2 Feb 2025 07:08:46 +0900 Subject: [PATCH] update release process document --- RELEASE-PROCESS.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-PROCESS.rst b/RELEASE-PROCESS.rst index 1f91bf3930..77ad2958e7 100644 --- a/RELEASE-PROCESS.rst +++ b/RELEASE-PROCESS.rst @@ -1,13 +1,14 @@ For maintainers of Luigi, who have push access to pypi. Here's how you upload Luigi to pypi. -#. Make sure [twine](https://pypi.org/project/twine/) is installed ``pip install twine``. +#. Make sure [uv](https://github.com/astral-sh/uv) is installed ``curl -LsSf https://astral.sh/uv/install.sh | sh``. #. Update version number in `luigi/__version__.py`. #. Commit, perhaps simply with a commit message like ``Version x.y.z``. #. Push to GitHub at [spotify/luigi](https://github.com/spotify/luigi). -#. Clean up previous distributions by executing ``rm -rf dist`` -#. Build a source distribution by executing ``python setup.py sdist`` -#. Upload to pypi by executing ``twine upload dist/*`` +#. Clean up previous distributions by executing ``rm -rf dist``. +#. Build a source distribution by executing ``uv build``. +#. Set pypi token on environment variable ``export UV_PUBLISH_TOKEN="LUIGI_PYPI_TOKEN_HERE"``. +#. Upload to pypi by executing ``uv publish``. #. Add a tag on github (https://github.com/spotify/luigi/releases), including a handwritten changelog, possibly inspired from previous notes.