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 <roberto@dealmeida.net>

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
This commit is contained in:
Elizabeth Thompson 2022-07-29 13:03:41 -07:00 committed by GitHub
parent 06d05394c2
commit 4d29d16b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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",