repo2rlenv-swe-next / tasks /swe-next-43f0bb60fa39009c9cf3 /tests /source /docs /development /release-process.rst
Download tasks/swe-next-43f0bb60fa39009c9cf3/tests/source/docs/development/release-process.rst from FineEnvs/repo2rlenv-swe-next: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-43f0bb60fa39009c9cf3/tests/source/docs/development/release-process.rst
- Command line
-
hf download hf://datasets/FineEnvs/repo2rlenv-swe-next/tasks/swe-next-43f0bb60fa39009c9cf3/tests/source/docs/development/release-process.rst
-
curl -L -o release-process.rst https://huggingface.co/datasets/FineEnvs/repo2rlenv-swe-next/resolve/main/tasks/swe-next-43f0bb60fa39009c9cf3/tests/source/docs/development/release-process.rst
1.62 kB
| Release Process | |
| =============== | |
| #. Checkout the current ``main`` branch. | |
| #. Install the latest ``nox``:: | |
| $ pip install nox | |
| #. Manually update the changelog to list all unreleased changes. Also verify | |
| that no new changes were added to a previous release in an earlier PR due to | |
| merge/rebase issues. You can get started with this:: | |
| $ gh api repos/pypa/packaging/releases/generate-notes \ | |
| -f tag_name=YY.N \ | |
| -f previous_tag_name=YY.(N-1) \ | |
| --jq .body | |
| #. Run the release automation with the required version number (YY.N):: | |
| $ nox -s release -- YY.N | |
| This creates a new tag for the release. It will tell you how to push the tag. | |
| #. Push the tag (command will be printed out in the last step). | |
| #. Run the 'Publish' manual GitHub workflow, specifying the Git tag's commit | |
| SHA. This will build and publish the package to PyPI. Publishing will wait | |
| for any `required approvals`_. | |
| #. Once it is approved and published to PyPI, add a | |
| `release on GitHub <https://github.com/pypa/packaging/releases>`__. | |
| Changelog can be auto-generated, but compare with the official changelog | |
| too. | |
| .. note:: | |
| Access that is needed for making the release are: | |
| - PyPI maintainer (or owner) access to ``packaging`` | |
| - push directly to the ``main`` branch on the source repository | |
| - push tags directly to the source repository | |
| .. _required approvals: https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-deployments/reviewing-deployments#approving-or-rejecting-a-job | |