Skip to content

Commit

Permalink
fix: make a new entrypoint for deprecated postgres dialect (#20895)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
eschutho and betodealmeida committed Jul 29, 2022
1 parent 06d0539 commit 4d29d16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def get_git_sha() -> str:
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",
Expand Down

0 comments on commit 4d29d16

Please sign in to comment.