forked from hans/Nominatim
Merge pull request #3897 from lonvia/test-psycopg-33
Allow psycopg 3.3 back
This commit is contained in:
@@ -15,7 +15,7 @@ classifiers = [
|
|||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"psycopg<3.3",
|
"psycopg != 3.3.0",
|
||||||
"python-dotenv",
|
"python-dotenv",
|
||||||
"jinja2",
|
"jinja2",
|
||||||
"pyYAML>=5.1",
|
"pyYAML>=5.1",
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ class Configuration:
|
|||||||
if dsn.startswith('pgsql:'):
|
if dsn.startswith('pgsql:'):
|
||||||
return dict((p.split('=', 1) for p in dsn[6:].split(';')))
|
return dict((p.split('=', 1) for p in dsn[6:].split(';')))
|
||||||
|
|
||||||
return conninfo_to_dict(dsn)
|
return conninfo_to_dict(dsn) # type: ignore
|
||||||
|
|
||||||
def get_import_style_file(self) -> Path:
|
def get_import_style_file(self) -> Path:
|
||||||
""" Return the import style file as a path object. Translates the
|
""" Return the import style file as a path object. Translates the
|
||||||
|
|||||||
Reference in New Issue
Block a user