Skip to content

Commit

Permalink
Merge pull request #1327 from dbcli/j-bennet/update-readme-release
Browse files Browse the repository at this point in the history
Improve release instructions
  • Loading branch information
amjith authored Mar 30, 2022
2 parents a878d2a + 5ee4f89 commit 366c01b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions DEVELOP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,8 @@ Coding Style
------------

``pgcli`` uses `black <https://github.com/ambv/black>`_ to format the source code. Make sure to install black.

Releases
--------

If you're the person responsible for releasing `pgcli`, `this guide <https://github.com/dbcli/pgcli/blob/main/RELEASES.md>`_ is for you.
15 changes: 11 additions & 4 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Releasing pgcli
---------------

We have a script called `release.py` to automate the process.
You have been made the maintainer of `pgcli`? Congratulations! We have a release script to help you:

The script can be run with `-c` to confirm or skip steps. There's also a `--dry-run` option that only prints out the steps.

```
```sh
> python release.py --help
Usage: release.py [options]

Expand All @@ -15,3 +13,12 @@ Options:
will be skipped.
-d, --dry-run Print out, but not actually run any steps.
```

The script can be run with `-c` to confirm or skip steps. There's also a `--dry-run` option that only prints out the steps.

To release a new version of the package:

* Create and merge a PR to bump the version in the changelog ([example PR](https://github.com/dbcli/pgcli/pull/1325)).
* Pull `main` and bump the version number inside `pgcli/__init__.py`. Do not check in - the release script will do that.
* Make sure you have the dev requirements installed: `pip install -r requirements-dev.txt -U --upgrade-strategy only-if-needed`.
* Finally, run the release script: `python release.py`.

0 comments on commit 366c01b

Please sign in to comment.