From 18071754bc0c79a7109c5ccfdaa74ed913c343ba Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Mon, 6 Jun 2022 11:20:48 -0700 Subject: Port to psycopg3 (#1324) * WIP. * Add some comments about porting from psycopg 2 to 3 (#1318) * WIP * Disable _set_wait_callback() * TransactionStatus. * First working query. * More pg3 changes. * test_pgexecute still fails. * Fix bytea support. * Fix json and enum unicode. * Get unit tests to pass. * Behave tests still break, WIP. * Prompt seems to be displayed fine, why don't the tests see the whitespace? * Python version. * Fix test. * Black. * Added black to dev reqs. * nbu link for donations. * Use psycopg.sql to format statement. * Special case for show help in pgbouncer. * Fix test. * Added integration test. * Install pgbouncer in ci. * Fix integration test. * Remove tmate session. * Revert commenting out python versions. * Pin pgspecial to >=2. * Changelog. Co-authored-by: Daniele Varrazzo Co-authored-by: Amjith Ramanujam --- README.rst | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index c8ab8223..b1b2307a 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,7 @@ Picture by @fomenko_ph (Telegram). Please consider donating or volunteering. +* https://bank.gov.ua/en/ * https://savelife.in.ua/en/donate/ * https://www.comebackalive.in.ua/donate * https://www.globalgiving.org/projects/ukraine-crisis-relief-fund/ @@ -51,10 +52,7 @@ If you already know how to install python packages, then you can simply do: If you don't know how to install python packages, please check the `detailed instructions`_. -If you are restricted to using psycopg2 2.7.x then pip will try to install it from a binary. There are some known issues with the psycopg2 2.7 binary - see the `psycopg docs`_ for more information about this and how to force installation from source. psycopg2 2.8 has fixed these problems, and will build from source. - .. _`detailed instructions`: https://github.com/dbcli/pgcli#detailed-installation-instructions -.. _`psycopg docs`: http://initd.org/psycopg/docs/install.html#change-in-binary-packages-between-psycopg-2-7-and-2-8 Usage ----- @@ -353,8 +351,8 @@ choice: In [3]: my_result = _ -Pgcli only runs on Python3.6+ since 2.2.0, if you use an old version of Python, -you should use install ``pgcli <= 2.2.0``. +Pgcli only runs on Python3.7+ since 4.0.0, if you use an old version of Python, +you should use install ``pgcli <= 4.0.0``. Thanks: ------- @@ -368,7 +366,7 @@ of this app. `Click `_ is used for command line option parsing and printing error messages. -Thanks to `psycopg `_ for providing a rock solid +Thanks to `psycopg `_ for providing a rock solid interface to Postgres database. Thanks to all the beta testers and contributors for your time and patience. :) -- cgit v1.2.3