Upgrade from psycopg2 to psycopg3; drop python <= v3.5, add v3.8-v3.11
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Feb 2024 16:31:18 +0000 (10:31 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Feb 2024 16:31:18 +0000 (10:31 -0600)
setup.py
src/pgwui_common/check_settings.py
tox.ini

index 089b032bb3ba67d0b602b1e075ef041815f328c9..bd2d6fa65787bcf7eee163258eb372cc9a2ccd7f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -114,10 +114,12 @@ setup(
         # Specify the Python versions you support here. In particular, ensure
         # that you indicate whether you support Python 2, Python 3 or both.
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
     ],
 
     # What does your project relate to?
index 1cdc1e2254f0c783ca0cdcb34a99d05079bd12b2..2d48224f8e5e072509fe0f1ba91552da670b03b6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018, 2019, 2020 The Meme Factory, Inc.
+# Copyright (C) 2018, 2019, 2020, 2024 The Meme Factory, Inc.
 # http://www.karlpinc.com/
 
 # This file is part of PGWUI_Common.
@@ -65,9 +65,9 @@ def validate_setting_values(errors, settings):
     '''
     pgwui_settings = settings['pgwui']
 
-    # pg_host can be missing, it defaults to the Unix socket (in psycopg2)
+    # pg_host can be missing, it defaults to the Unix socket (in psycopg3)
 
-    # pg_port can be missing, it defaults to 5432 (in psycopg2)
+    # pg_port can be missing, it defaults to 5432 (in psycopg3)
 
     # default_db can be missing, then the user sees no default
 
diff --git a/tox.ini b/tox.ini
index 066bc0eba6fde6ef5c1786f5c1144a790313b420..50b6067ef5f1f1137ab04108ce4c3a082c372d59 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,14 @@
 [tox]
-envlist = py{34,35,36,37}
+envlist = py{36,37,38,39,310,311}
 
 [testenv]
 basepython =
-    py34: python3.4
-    py35: python3.5
     py36: python3.6
     py37: python3.7
+    py38: python3.8
+    py39: python3.9
+    py310: python3.10
+    py311: python3.11
 deps =
     check-manifest
     cmarkgfm