Skip to content

Commit

Permalink
Document release process in README
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Oct 9, 2021
1 parent 0cdf772 commit af456b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
0.8.0 (2021-10-08)
No significant changes.


0.8.0 (2021-10-08)
==================

Expand Down
20 changes: 20 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,23 @@ Contributing
============

Please see `developer documentation <./CONTRIBUTING.rst>`__.

Release process for maintainers
===============================

Replace ``X.Y.Z`` with the release you would like to make.

* Make sure the news fragments are in place.
* ``nox -s release -- --repo https://upload.pypi.org/legacy/ --prebump X.Y.Z+1.dev0 --version X.Y.Z``
* ``git push origin master --tags``
* ``git push upstream master --tags``

Breakdown of the ``release`` nox task:

* Writes ``X.Y.Z`` to ``src/resolvelib/__init__.py``.
* Runs ``towncrier`` to update the changelog and delete news fragments.
* Commit the changelog and version change.
* Tag the commit as release ``X.Y.Z``.
* Build, check, and upload distributions to the index specified by ``repo``.
* Writes ``X.Y.Z+1.dev0`` to ``src/resolvelib/__init__.py``.
* Commit the "prebump" change.

0 comments on commit af456b9

Please sign in to comment.