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:56 +0000 (10:31 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Feb 2024 16:31:56 +0000 (10:31 -0600)
setup.py
src/pgwui_copy/exceptions.py
tox.ini

index 30cd98f2889a70a37064548661ccc28878b6a753..4461e120d13944f18e65ec1b85df3a0581e9ec57 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -115,10 +115,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 fcd0fd1a3f54c104df91679572e769819ae7f4ae..247b4cf5c94b750e8c806cff369586c5da7fcb8c 100644 (file)
@@ -1,4 +1,5 @@
-# Copyright (C) 2020, 2021 The Meme Factory, Inc.  http://www.karlpinc.com/
+# Copyright (C) 2020, 2021, 2024 The Meme Factory, Inc.
+# http://www.karlpinc.com/
 
 # This file is part of PGWUI_Copy.
 #
@@ -138,7 +139,7 @@ class PGRestoreError(CopyProcessError):
 class DropSchemaError(core_ex.DBError):
     def __init__(self, pgexc, schema, db):
         '''
-        pgexc  The psycopg2 exception object
+        pgexc  The psycopg3 exception object
         '''
         super().__init__(
             pgexc, 'drop the ({0}) schema in the ({1}) db'.format(schema, db))
@@ -147,7 +148,7 @@ class DropSchemaError(core_ex.DBError):
 class VacuumFullError(core_ex.DBError):
     def __init__(self, pgexc, db):
         '''
-        pgexc  The psycopg2 exception object
+        pgexc  The psycopg3 exception object
         '''
         super().__init__(
             pgexc, 'VACUUM FULL the ({0}) db'.format(db))
@@ -156,7 +157,7 @@ class VacuumFullError(core_ex.DBError):
 class VacuumAnalyzeError(core_ex.DBError):
     def __init__(self, pgexc, db):
         '''
-        pgexc  The psycopg2 exception object
+        pgexc  The psycopg3 exception object
         '''
         super().__init__(
             pgexc, 'VACUUM ANALYZE the ({0}) db'.format(db))
diff --git a/tox.ini b/tox.ini
index 2a076eaa49729cdd966396861dd7add9c3b8138c..52809cfd70a7e8aa15bad25a7c0a5cb5f0a827f5 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