]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: Document what to do when a new major version of Postgres is released
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 22 Sep 2023 21:44:42 +0000 (23:44 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 23 Sep 2023 02:02:48 +0000 (04:02 +0200)
docs/release.rst
psycopg/psycopg/postgres.py
psycopg_c/psycopg_c/_psycopg/oids.pxd
tools/build/scaleway_m1.sh
tools/build/wheel_win32_before_build.bat

index d5f9bb8166e9045118691d9c4ab530530d9905df..dcbb789da0dd12a17989576159e28046947bc15b 100644 (file)
@@ -12,21 +12,25 @@ How to make a psycopg release
     .. _OpenSSL: https://www.openssl.org/source/
 
 - Check if there is a new `cibuildwheel release`__; if so, upgrade it in
-``.github/workflows/packages-bin.yml``.
+  ``.github/workflows/packages-bin.yml``.
 
   .. __: https://github.com/pypa/cibuildwheel/releases
 
 - Use ``tools/bump_version.py`` to upgrade package version numbers.
 
-- Change ``docs/news.rst`` to drop the "unreleased" mark from the version
-
 - 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`__.
+- Build the packages by triggering manually the ones requested among:
+
+  - `Source packages`__
+  - `Binary packages`__
+  - `Pool packages`__
 
-  .. __: https://github.com/psycopg/psycopg/actions/workflows/packages.yml
+  .. __: https://github.com/psycopg/psycopg/actions/workflows/packages-src.yml
+  .. __: https://github.com/psycopg/psycopg/actions/workflows/packages-bin.yml
+  .. __: https://github.com/psycopg/psycopg/actions/workflows/packages-pool.yml
 
 - Delete the ``wheelhouse`` directory there is one.
 
@@ -52,3 +56,22 @@ How to make a psycopg release
 - If the package is stable, omit ``-r testpypi``::
 
     $ twine upload *
+
+- Run ``tools/bump_version.py -l dev`` to bump to the next dev version.
+
+
+When a new PostgreSQL major version is released
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Add the new version to ``tools/update_errors.py`` and run the script to add
+  new error classes.
+
+- Run the script ``tools/update_oids.py`` to add new oids. Use ``-h`` to get
+  an example docker command line to run a server locally.
+
+- Bump ``PG_VERSION`` in the ``macos`` job of
+  ``.github/workflows/packages-bin.yml``.
+
+- Bump ``pg_version`` in ``tools/build/build_macos_arm64.sh``.
+
+- Bump the version in ``tools/build/wheel_win32_before_build.bat``.
index 976533a16f6a4d8a33a7d0f9643ebd4d2990eafe..33143bcc60fec40ab71d2510f0943c81b4f5f812 100644 (file)
@@ -18,7 +18,7 @@ adapters = AdaptersMap(types=types)
 for t in [
     TypeInfo('"char"', 18, 1002),
     # autogenerated: start
-    # Generated from PostgreSQL 15.0
+    # Generated from PostgreSQL 16.0
     TypeInfo("aclitem", 1033, 1034),
     TypeInfo("bit", 1560, 1561),
     TypeInfo("bool", 16, 1000, regtype="boolean"),
index 2a864c4a1de03d386b6e6a0f3cb64121f058b8b8..09525634702fdeb1ef5376b08adc01ea72b27236 100644 (file)
@@ -11,7 +11,7 @@ cdef enum:
 
     # autogenerated: start
 
-    # Generated from PostgreSQL 15.0
+    # Generated from PostgreSQL 16.0
 
     ACLITEM_OID = 1033
     BIT_OID = 1560
index 3fe288e43dddf446e93283bfa413aa0f4bd14d2a..a803746818ee791845b0187f73ed5161d61088a3 100755 (executable)
@@ -66,7 +66,7 @@ function delete {
 }
 
 function server_id {
-    # Return the id of the first server available, else the emtpy string
+    # Return the id of the first server available, else the empty string
     servers=$(get $servers_url || error "failed to request servers list")
     server_ids=$(echo "$servers" | jq -r ".servers[].id")
     for id in $server_ids; do
index 7c18fe3b73a0634fd63bae5971e68b1460b5ffde..1d24ab8dbf61e9703ce1c659ab2f7db29574afa1 100644 (file)
@@ -21,3 +21,6 @@ REM On https://community.chocolatey.org/packages/postgresql15/15.0.1#discussion
 REM I found the following command in a comment:
 choco install postgresql15 --version 15.0.1
 REM which I'm going to randomly try.
+
+REM See https://community.chocolatey.org/packages/postgresql15#install
+REM for the last package available (bump the version number in the url).