Skip to content

Commit

Permalink
Document release process in DEVELOPMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Oct 9, 2021
1 parent 0cdf772 commit 4c01d9e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 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
21 changes: 21 additions & 0 deletions DEVELOPMENT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ Submitting Pull Requests
Please make sure any changes are covered by existing tests or that new tests are added.
ResolveLib is used on many different python versions and operating systems and environments so every effort must be made in order to keep code portable.
Pull requests should be small to facilitate easier review.


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.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ A Requirement should specify two things: a Package, and a Specifier.
Contributing
============

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

0 comments on commit 4c01d9e

Please sign in to comment.