Compatibility with python 3.12 (#3058)

- monkey patch `jsonlogger.RESERVED_ATTRS` to hide new attribute in `LogRecord`
- "silence" warning about `atetime.datetime.utcnow()`
- run some tests with python 3.12
- bump actions versions to silence complains about Node version
- fix PATH to Postgres binaries on MacOS
This commit is contained in:
Alexander Kukushkin
2024-05-07 09:29:28 +02:00
committed by GitHub
parent 634b44ee05
commit 03bb9125cb
6 changed files with 47 additions and 31 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ def main():
else:
if sys.platform == 'darwin':
version = os.environ.get('PGVERSION', '16.1-1')
path = '/usr/local/opt/postgresql@{0}/bin:.'.format(version.split('.')[0])
path = '/opt/homebrew/opt/postgresql@{0}/bin:.'.format(version.split('.')[0])
unbuffer = ['unbuffer']
else:
path = os.path.abspath(os.path.join('pgsql', 'bin'))