This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 4d29d16b64 fix: make a new entrypoint for deprecated postgres dialect
(#20895)
4d29d16b64 is described below
commit 4d29d16b64c43bb40b8f399b90296a12e7f66426
Author: Elizabeth Thompson <[email protected]>
AuthorDate: Fri Jul 29 13:03:41 2022 -0700
fix: make a new entrypoint for deprecated postgres dialect (#20895)
* make a new entrypoint for deprecated postgres dialect
* Update setup.py
Co-authored-by: Beto Dealmeida <[email protected]>
Co-authored-by: Beto Dealmeida <[email protected]>
---
setup.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/setup.py b/setup.py
index b62dceb47f..5f1b7b7fd2 100644
--- a/setup.py
+++ b/setup.py
@@ -64,6 +64,11 @@ setup(
zip_safe=False,
entry_points={
"console_scripts": ["superset=superset.cli.main:superset"],
+ # the `postgres+psycopg2://` scheme was removed in SQLAlchemy 1.4, add
an alias here
+ # to prevent breaking existing databases
+ "sqlalchemy.dialects": [
+ "postgres.psycopg2=sqlalchemy.dialects.postgresql:dialect"
+ ],
},
install_requires=[
"backoff>=1.8.0",