]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Add notes about making a release
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 18 Jul 2021 02:38:35 +0000 (04:38 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 18 Jul 2021 02:40:07 +0000 (04:40 +0200)
docs/release.rst [new file with mode: 0644]

diff --git a/docs/release.rst b/docs/release.rst
new file mode 100644 (file)
index 0000000..5e88525
--- /dev/null
@@ -0,0 +1,36 @@
+:orphan:
+
+How to make a psycopg release
+=============================
+
+- Change version number in:
+
+  - ``psycopg_c/psycopg_c/version.py``
+  - ``psycopg/psycopg/version.py``
+
+- Push to GitHub to run `the tests workflow`__.
+
+  .. __: https://github.com/psycopg/psycopg/actions/workflows/tests.yml
+
+- Build the packages by triggering manually the `Build packages workflow`__.
+
+  .. __: https://github.com/psycopg/psycopg/actions/workflows/packages.yml
+
+- If all went fine, create a tag named after the version::
+
+    git tag -a -s 3.0.dev1
+    git push --tags
+
+- Download the ``artifacts.zip`` package from the last Packages workflow run.
+
+- Unpack the packages locally::
+
+    mkdir tmp
+    cd tmp
+    unzip ~/Downloads/artifact.zip
+
+- If the package is a testing one, upload it on TestPyPI with::
+
+    $ twine upload -s -r testpypi *
+
+- If the package is stable, omit ``-r testpypi``.