# 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?
'markupsafe',
'pgwui_core==' + version,
'pgwui_upload_core==' + version,
- 'psycopg2',
+ 'psycopg',
'pyramid',
],
-# Copyright (C) 2015, 2018, 2020, 2021 The Meme Factory, Inc.
+# Copyright (C) 2015, 2018, 2020, 2021, 2024 The Meme Factory, Inc.
# http://www.karlpinc.com/
# This file is part of PGWUI_Upload.
from __future__ import division
import attr
-import psycopg2
+import psycopg
from pyramid.view import view_config
import logging
ue UploadEngine instance
uh UploadHandler instance
insert_stmt Statement used to insert into db.
- (psycopg2 formatted for substituion)
+ (psycopg3 formatted for substituion)
'''
super(SaveLine, self).__init__(ue, uh)
self.insert_stmt = insert_stmt
ue.data, qualified_table, quotecols, column_quoter)
return SaveLine(ue, self, insert_stmt)
- except (core_ex.PGWUIError, psycopg2.Error):
+ except (core_ex.PGWUIError, psycopg.Error):
self.data.lineno = 0 # Don't report partially read number of lines
raise
[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