From ecc34a473a27db17599f72d7e6797caea74210c6 Mon Sep 17 00:00:00 2001 From: Multazim Deshmukh Date: Sat, 20 May 2023 07:25:01 +0530 Subject: [PATCH 01/17] Test pure-sasl with PyHive in python 3.11 --- requirements/base.txt | 8 ++++++++ requirements/development.txt | 4 +--- requirements/testing.txt | 2 -- setup.py | 6 +++--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 93721bf232ea..0d7b7538a136 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -122,6 +122,8 @@ geographiclib==1.52 # via geopy geopy==2.2.0 # via apache-superset +greenlet==2.0.2 + # via sqlalchemy gunicorn==20.1.0 # via apache-superset hashids==1.3.1 @@ -134,6 +136,8 @@ humanize==3.11.0 # via apache-superset idna==3.2 # via email-validator +importlib-metadata==6.6.0 + # via flask importlib-resources==5.12.0 # via limits isodate==0.6.0 @@ -322,6 +326,10 @@ wtforms-json==0.3.5 # via apache-superset xlsxwriter==3.0.7 # via apache-superset +zipp==3.15.0 + # via + # importlib-metadata + # importlib-resources # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/requirements/development.txt b/requirements/development.txt index e398368e7a7c..25e0c9d7efdc 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -10,8 +10,6 @@ # via # -r requirements/base.in # -r requirements/development.in -appnope==0.1.3 - # via ipython astroid==2.6.6 # via pylint asttokens==2.2.1 @@ -88,7 +86,7 @@ pure-sasl==0.6.2 # via thrift-sasl pydruid==0.6.5 # via apache-superset -pyhive[hive]==0.6.5 +pyhive @ git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506 # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in diff --git a/requirements/testing.txt b/requirements/testing.txt index efa48fcad939..381efba06f55 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -107,8 +107,6 @@ pydata-google-auth==1.7.0 # via pandas-gbq pyfakefs==5.2.2 # via -r requirements/testing.in -pyhive[presto]==0.6.5 - # via apache-superset pytest==7.3.1 # via # -r requirements/testing.in diff --git a/setup.py b/setup.py index d59f0c6496a0..be7f33cdaa62 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def get_git_sha() -> str: "firebolt": ["firebolt-sqlalchemy>=0.0.1"], "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], - "hive": ["pyhive[hive]>=0.6.5", "tableschema", "thrift>=0.14.1, <1.0.0"], + "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506", "tableschema", "thrift>=0.14.1, <1.0.0"], "impala": ["impyla>0.16.2, <0.17"], "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], "kylin": ["kylinpy>=2.8.1, <2.9"], @@ -175,7 +175,7 @@ def get_git_sha() -> str: "oracle": ["cx-Oracle>8.0.0, <8.1"], "pinot": ["pinotdb>=0.3.3, <0.4"], "postgres": ["psycopg2-binary==2.9.6"], - "presto": ["pyhive[presto]>=0.6.5"], + "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506"], "trino": ["trino>=0.324.0"], "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], @@ -184,7 +184,7 @@ def get_git_sha() -> str: "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" ], "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], - "spark": ["pyhive[hive]>=0.6.5", "tableschema", "thrift>=0.14.1, <1.0.0"], + "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506", "tableschema", "thrift>=0.14.1, <1.0.0"], "teradata": ["teradatasql>=16.20.0.23"], "thumbnails": ["Pillow>=9.5.0, <10.0.0"], "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], From ec98680d76edd5c6cdade07e312121bff21d1b03 Mon Sep 17 00:00:00 2001 From: Multazim Deshmukh Date: Sat, 20 May 2023 07:28:05 +0530 Subject: [PATCH 02/17] Test pure-sasl with PyHive in python 3.11 --- .github/workflows/superset-python-presto-hive.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index 934954984844..913d3766dba4 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.9"] + python-version: ["3.11"] env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -91,7 +91,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.9"] + python-version: ["3.11"] env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config From c139e11d3d017a136bc28f76162ca915a763ef5d Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 08:17:21 +0530 Subject: [PATCH 03/17] Test pure-sasl with PyHive in python 3.11 --- requirements/base.txt | 6 ------ requirements/development.txt | 6 +++--- requirements/integration.txt | 5 ----- requirements/testing.txt | 2 -- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index 0d7b7538a136..9cfa93f292ec 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -136,8 +136,6 @@ humanize==3.11.0 # via apache-superset idna==3.2 # via email-validator -importlib-metadata==6.6.0 - # via flask importlib-resources==5.12.0 # via limits isodate==0.6.0 @@ -326,10 +324,6 @@ wtforms-json==0.3.5 # via apache-superset xlsxwriter==3.0.7 # via apache-superset -zipp==3.15.0 - # via - # importlib-metadata - # importlib-resources # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/requirements/development.txt b/requirements/development.txt index 25e0c9d7efdc..08344d7c9ee0 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -83,7 +83,9 @@ ptyprocess==0.7.0 pure-eval==0.2.2 # via stack-data pure-sasl==0.6.2 - # via thrift-sasl + # via + # pyhive + # thrift-sasl pydruid==0.6.5 # via apache-superset pyhive @ git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506 @@ -101,8 +103,6 @@ rfc3986==2.0.0 # via tableschema s3transfer==0.6.1 # via boto3 -sasl==0.3.1 - # via pyhive sqloxide==0.1.33 # via -r requirements/development.in stack-data==0.6.2 diff --git a/requirements/integration.txt b/requirements/integration.txt index b9fdb03e0c22..54414d260881 100644 --- a/requirements/integration.txt +++ b/requirements/integration.txt @@ -52,11 +52,6 @@ pyproject-hooks==1.0.0 # via build pyyaml==5.4.1 # via pre-commit -tomli==2.0.1 - # via - # build - # pyproject-api - # tox toposort==1.10 # via pip-compile-multi tox==4.5.1 diff --git a/requirements/testing.txt b/requirements/testing.txt index 381efba06f55..c4de6670ee37 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -18,8 +18,6 @@ db-dtypes==1.1.1 # via pandas-gbq docker==6.1.1 # via -r requirements/testing.in -exceptiongroup==1.1.1 - # via pytest flask-testing==0.8.1 # via -r requirements/testing.in freezegun==1.2.2 From d5664a4455ad5a5426c400bfa3adca82bf948cf6 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 08:36:43 +0530 Subject: [PATCH 04/17] Test pure-sasl with PyHive in python 3.11 --- requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/base.txt b/requirements/base.txt index 9cfa93f292ec..ca118d9ce123 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -312,7 +312,7 @@ werkzeug==2.3.3 # flask # flask-jwt-extended # flask-login -wrapt==1.12.1 +wrapt==1.15.0 # via deprecated wtforms==2.3.3 # via From a31cf5ccaeb5bc7f8e4a1fbe23157a6600d55f81 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 10:27:26 +0530 Subject: [PATCH 05/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.in | 2 +- requirements/development.txt | 12 ++++++++---- requirements/integration.txt | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/requirements/development.in b/requirements/development.in index efe5bb5747e6..0dbb515b2f09 100644 --- a/requirements/development.in +++ b/requirements/development.in @@ -21,6 +21,6 @@ ipython progress>=1.5,<2 pyinstrument>=4.0.2,<5 -pylint==2.9.6 +pylint==2.15.0 setuptools>=65.5.1 sqloxide diff --git a/requirements/development.txt b/requirements/development.txt index 08344d7c9ee0..1a0eeee9a1a7 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -1,4 +1,4 @@ -# SHA1:6d10e2cb134133e823edef48aa3e33b2b1b85681 +# SHA1:4c968a12954870dc2461956c6fccb6a1065404fd # # This file is autogenerated by pip-compile-multi # To update, run: @@ -10,7 +10,7 @@ # via # -r requirements/base.in # -r requirements/development.in -astroid==2.6.6 +astroid==2.13.5 # via pylint asttokens==2.2.1 # via stack-data @@ -32,6 +32,8 @@ charset-normalizer==3.1.0 # via requests decorator==5.1.1 # via ipython +dill==0.3.6 + # via pylint et-xmlfile==1.1.0 # via openpyxl executing==1.2.0 @@ -74,6 +76,8 @@ pickleshare==0.7.5 # via ipython pillow==9.5.0 # via apache-superset +platformdirs==3.5.1 + # via pylint progress==1.6 # via -r requirements/development.in psycopg2-binary==2.9.6 @@ -92,7 +96,7 @@ pyhive @ git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87 # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in -pylint==2.9.6 +pylint==2.15.0 # via -r requirements/development.in requests==2.30.0 # via @@ -118,7 +122,7 @@ thrift==0.16.0 # thrift-sasl thrift-sasl==0.4.3 # via pyhive -toml==0.10.2 +tomlkit==0.11.8 # via pylint traitlets==5.9.0 # via diff --git a/requirements/integration.txt b/requirements/integration.txt index 54414d260881..8732a650fa5c 100644 --- a/requirements/integration.txt +++ b/requirements/integration.txt @@ -38,7 +38,7 @@ pip-compile-multi==2.6.3 # via -r requirements/integration.in pip-tools==6.13.0 # via pip-compile-multi -platformdirs==3.5.0 +platformdirs==3.5.1 # via # tox # virtualenv From ef997c79ac43580cb88c8abedbf532b0cad539a1 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 16:25:00 +0530 Subject: [PATCH 06/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.txt | 4 ++-- setup.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements/development.txt b/requirements/development.txt index 1a0eeee9a1a7..65103cb6dec2 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -6,7 +6,7 @@ # pip-compile-multi # -r base.txt --e file:. +-e file:///mnt/c/Users/MDESHMU/Downloads/OSS/apache-superset # via # -r requirements/base.in # -r requirements/development.in @@ -92,7 +92,7 @@ pure-sasl==0.6.2 # thrift-sasl pydruid==0.6.5 # via apache-superset -pyhive @ git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506 +pyhive @ git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in diff --git a/setup.py b/setup.py index be7f33cdaa62..4d369606aa77 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def get_git_sha() -> str: "firebolt": ["firebolt-sqlalchemy>=0.0.1"], "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], - "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506", "tableschema", "thrift>=0.14.1, <1.0.0"], + "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b", "tableschema", "thrift>=0.14.1, <1.0.0"], "impala": ["impyla>0.16.2, <0.17"], "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], "kylin": ["kylinpy>=2.8.1, <2.9"], @@ -175,7 +175,7 @@ def get_git_sha() -> str: "oracle": ["cx-Oracle>8.0.0, <8.1"], "pinot": ["pinotdb>=0.3.3, <0.4"], "postgres": ["psycopg2-binary==2.9.6"], - "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506"], + "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b"], "trino": ["trino>=0.324.0"], "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], @@ -184,7 +184,7 @@ def get_git_sha() -> str: "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" ], "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], - "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@ff984798fac577f286556fcd81c87556c69ff506", "tableschema", "thrift>=0.14.1, <1.0.0"], + "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b", "tableschema", "thrift>=0.14.1, <1.0.0"], "teradata": ["teradatasql>=16.20.0.23"], "thumbnails": ["Pillow>=9.5.0, <10.0.0"], "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], From d689a67bb39b9b82c9f4c46d75e6081df516ba49 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 16:30:15 +0530 Subject: [PATCH 07/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/development.txt b/requirements/development.txt index 65103cb6dec2..858648c60d75 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -6,7 +6,7 @@ # pip-compile-multi # -r base.txt --e file:///mnt/c/Users/MDESHMU/Downloads/OSS/apache-superset +-e file:. # via # -r requirements/base.in # -r requirements/development.in From 21ee9ae5da7e2120b2c69c8b5830073f2931ae4e Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 17:02:47 +0530 Subject: [PATCH 08/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/development.txt b/requirements/development.txt index 858648c60d75..b80d20a7fdaa 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -92,7 +92,7 @@ pure-sasl==0.6.2 # thrift-sasl pydruid==0.6.5 # via apache-superset -pyhive @ git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b +pyhive @ git+https://github.com/dropbox/PyHive.git@866c83efe971ce3b66105bf9c52d0eeef8ac9d8a # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in From 22ae2dc21e95de086f8f29b0cb4968931ba695b6 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 17:27:18 +0530 Subject: [PATCH 09/17] Test pure-sasl with PyHive in python 3.11 --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 4d369606aa77..cdf69935fdb9 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def get_git_sha() -> str: "firebolt": ["firebolt-sqlalchemy>=0.0.1"], "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], - "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b", "tableschema", "thrift>=0.14.1, <1.0.0"], + "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df", "tableschema", "thrift>=0.14.1, <1.0.0"], "impala": ["impyla>0.16.2, <0.17"], "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], "kylin": ["kylinpy>=2.8.1, <2.9"], @@ -175,7 +175,7 @@ def get_git_sha() -> str: "oracle": ["cx-Oracle>8.0.0, <8.1"], "pinot": ["pinotdb>=0.3.3, <0.4"], "postgres": ["psycopg2-binary==2.9.6"], - "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b"], + "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df"], "trino": ["trino>=0.324.0"], "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], @@ -184,7 +184,7 @@ def get_git_sha() -> str: "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" ], "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], - "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@20cd74fcaf3d919825c5dc6192a8e968b9723e6b", "tableschema", "thrift>=0.14.1, <1.0.0"], + "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df", "tableschema", "thrift>=0.14.1, <1.0.0"], "teradata": ["teradatasql>=16.20.0.23"], "thumbnails": ["Pillow>=9.5.0, <10.0.0"], "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], From 9e4338b164ebdc523a2c2bde8e68b666648b597d Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 17:42:37 +0530 Subject: [PATCH 10/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/development.txt b/requirements/development.txt index b80d20a7fdaa..91ebd1f41e1f 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -92,7 +92,7 @@ pure-sasl==0.6.2 # thrift-sasl pydruid==0.6.5 # via apache-superset -pyhive @ git+https://github.com/dropbox/PyHive.git@866c83efe971ce3b66105bf9c52d0eeef8ac9d8a +pyhive @ git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in From 1977e6531f8c664fe3b5f02ff964f0c12bb306bb Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sat, 20 May 2023 18:38:24 +0530 Subject: [PATCH 11/17] Test pure-sasl with PyHive in python 3.11 --- requirements/development.txt | 2 +- setup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements/development.txt b/requirements/development.txt index 91ebd1f41e1f..730071f8adc5 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -92,7 +92,7 @@ pure-sasl==0.6.2 # thrift-sasl pydruid==0.6.5 # via apache-superset -pyhive @ git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df +pyhive @ git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821 # via apache-superset pyinstrument==4.4.0 # via -r requirements/development.in diff --git a/setup.py b/setup.py index cdf69935fdb9..ec80013dad85 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def get_git_sha() -> str: "firebolt": ["firebolt-sqlalchemy>=0.0.1"], "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], - "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df", "tableschema", "thrift>=0.14.1, <1.0.0"], + "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821", "tableschema", "thrift>=0.14.1, <1.0.0"], "impala": ["impyla>0.16.2, <0.17"], "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], "kylin": ["kylinpy>=2.8.1, <2.9"], @@ -175,7 +175,7 @@ def get_git_sha() -> str: "oracle": ["cx-Oracle>8.0.0, <8.1"], "pinot": ["pinotdb>=0.3.3, <0.4"], "postgres": ["psycopg2-binary==2.9.6"], - "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df"], + "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821"], "trino": ["trino>=0.324.0"], "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], @@ -184,7 +184,7 @@ def get_git_sha() -> str: "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" ], "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], - "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@5e20ded4c9bdb49069e4893e4bf4bccb700e58df", "tableschema", "thrift>=0.14.1, <1.0.0"], + "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821", "tableschema", "thrift>=0.14.1, <1.0.0"], "teradata": ["teradatasql>=16.20.0.23"], "thumbnails": ["Pillow>=9.5.0, <10.0.0"], "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], From 2921a5a48565965cf3c23e0d1915427c8864d876 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 07:01:46 +0530 Subject: [PATCH 12/17] Test pure-sasl with PyHive in python 3.11 --- superset/sql_parse.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/superset/sql_parse.py b/superset/sql_parse.py index 323fabb3d3c1..8aef54f94659 100644 --- a/superset/sql_parse.py +++ b/superset/sql_parse.py @@ -17,7 +17,14 @@ import logging import re from dataclasses import dataclass -from enum import Enum + +try: + from enum import StrEnum +except ImportError: + from enum import Enum + class StrEnum(str, Enum): + pass + from typing import Any, cast, Iterator, List, Optional, Set, Tuple from urllib import parse @@ -70,7 +77,7 @@ ) -class CtasMethod(str, Enum): +class CtasMethod(strEnum): TABLE = "TABLE" VIEW = "VIEW" @@ -482,7 +489,7 @@ def sanitize_clause(clause: str) -> str: return clause -class InsertRLSState(str, Enum): +class InsertRLSState(strEnum): """ State machine that scans for WHERE and ON clauses referencing tables. """ From 607eda536d2cc7b948b8570abf8fdf2d309f3bec Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 07:08:51 +0530 Subject: [PATCH 13/17] Test pure-sasl with PyHive in python 3.11 --- superset/sql_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/sql_parse.py b/superset/sql_parse.py index 8aef54f94659..cdd14fc58104 100644 --- a/superset/sql_parse.py +++ b/superset/sql_parse.py @@ -77,7 +77,7 @@ class StrEnum(str, Enum): ) -class CtasMethod(strEnum): +class CtasMethod(StrEnum): TABLE = "TABLE" VIEW = "VIEW" From 93ac4f01116f421f0d523c57b8e6c414c99857d4 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 07:14:55 +0530 Subject: [PATCH 14/17] Test pure-sasl with PyHive in python 3.11 --- superset/sql_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/sql_parse.py b/superset/sql_parse.py index cdd14fc58104..58a88193edba 100644 --- a/superset/sql_parse.py +++ b/superset/sql_parse.py @@ -489,7 +489,7 @@ def sanitize_clause(clause: str) -> str: return clause -class InsertRLSState(strEnum): +class InsertRLSState(StrEnum): """ State machine that scans for WHERE and ON clauses referencing tables. """ From b0206b021e1d3a4b65c69546849db62fae17cbc1 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 07:30:19 +0530 Subject: [PATCH 15/17] Test pure-sasl with PyHive in python 3.11 --- superset/common/chart_data.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/superset/common/chart_data.py b/superset/common/chart_data.py index 659a64015937..9963b95614d7 100644 --- a/superset/common/chart_data.py +++ b/superset/common/chart_data.py @@ -14,11 +14,17 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -from enum import Enum +try: + from enum import StrEnum +except ImportError: + from enum import Enum + class StrEnum(str, Enum): + pass + from typing import Set -class ChartDataResultFormat(str, Enum): +class ChartDataResultFormat(StrEnum): """ Chart data response format """ @@ -32,7 +38,7 @@ def table_like(cls) -> Set["ChartDataResultFormat"]: return {cls.CSV} | {cls.XLSX} -class ChartDataResultType(str, Enum): +class ChartDataResultType(StrEnum): """ Chart data response type """ From ca2b8421b2607ea7676feeb8ca3403ee05474ab1 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 08:09:02 +0530 Subject: [PATCH 16/17] Test pure-sasl with PyHive in python 3.11 --- .github/workflows/superset-python-presto-hive.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/superset-python-presto-hive.yml b/.github/workflows/superset-python-presto-hive.yml index 913d3766dba4..2ca9b8a8dbc8 100644 --- a/.github/workflows/superset-python-presto-hive.yml +++ b/.github/workflows/superset-python-presto-hive.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.11"] + python-version: ["3.10"] env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config @@ -91,7 +91,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.11"] + python-version: ["3.10"] env: PYTHONPATH: ${{ github.workspace }} SUPERSET_CONFIG: tests.integration_tests.superset_test_config From 3366fb6a0c4c1d45bf35b612803477659a992e59 Mon Sep 17 00:00:00 2001 From: mdeshmu Date: Sun, 21 May 2023 10:42:20 +0530 Subject: [PATCH 17/17] Test pure-sasl with PyHive in python 3.10 --- requirements/development.txt | 278 ++++++++++++------------ setup.py | 406 +++++++++++++++++------------------ 2 files changed, 342 insertions(+), 342 deletions(-) diff --git a/requirements/development.txt b/requirements/development.txt index 730071f8adc5..0f4b65a0e0bb 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -1,139 +1,139 @@ -# SHA1:4c968a12954870dc2461956c6fccb6a1065404fd -# -# This file is autogenerated by pip-compile-multi -# To update, run: -# -# pip-compile-multi -# --r base.txt --e file:. - # via - # -r requirements/base.in - # -r requirements/development.in -astroid==2.13.5 - # via pylint -asttokens==2.2.1 - # via stack-data -backcall==0.2.0 - # via ipython -boto3==1.26.130 - # via tabulator -botocore==1.29.130 - # via - # boto3 - # s3transfer -cached-property==1.5.2 - # via tableschema -certifi==2023.5.7 - # via requests -chardet==5.1.0 - # via tabulator -charset-normalizer==3.1.0 - # via requests -decorator==5.1.1 - # via ipython -dill==0.3.6 - # via pylint -et-xmlfile==1.1.0 - # via openpyxl -executing==1.2.0 - # via stack-data -flask-cors==3.0.10 - # via apache-superset -future==0.18.3 - # via pyhive -ijson==3.2.0.post0 - # via tabulator -ipython==8.12.2 - # via -r requirements/development.in -isort==5.12.0 - # via pylint -jedi==0.18.2 - # via ipython -jmespath==1.0.1 - # via - # boto3 - # botocore -jsonlines==3.1.0 - # via tabulator -lazy-object-proxy==1.9.0 - # via astroid -linear-tsv==1.1.0 - # via tabulator -matplotlib-inline==0.1.6 - # via ipython -mccabe==0.6.1 - # via pylint -mysqlclient==2.1.0 - # via apache-superset -openpyxl==3.1.2 - # via tabulator -parso==0.8.3 - # via jedi -pexpect==4.8.0 - # via ipython -pickleshare==0.7.5 - # via ipython -pillow==9.5.0 - # via apache-superset -platformdirs==3.5.1 - # via pylint -progress==1.6 - # via -r requirements/development.in -psycopg2-binary==2.9.6 - # via apache-superset -ptyprocess==0.7.0 - # via pexpect -pure-eval==0.2.2 - # via stack-data -pure-sasl==0.6.2 - # via - # pyhive - # thrift-sasl -pydruid==0.6.5 - # via apache-superset -pyhive @ git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821 - # via apache-superset -pyinstrument==4.4.0 - # via -r requirements/development.in -pylint==2.15.0 - # via -r requirements/development.in -requests==2.30.0 - # via - # pydruid - # tableschema - # tabulator -rfc3986==2.0.0 - # via tableschema -s3transfer==0.6.1 - # via boto3 -sqloxide==0.1.33 - # via -r requirements/development.in -stack-data==0.6.2 - # via ipython -tableschema==1.20.2 - # via apache-superset -tabulator==1.53.5 - # via tableschema -thrift==0.16.0 - # via - # apache-superset - # pyhive - # thrift-sasl -thrift-sasl==0.4.3 - # via pyhive -tomlkit==0.11.8 - # via pylint -traitlets==5.9.0 - # via - # ipython - # matplotlib-inline -unicodecsv==0.14.1 - # via - # tableschema - # tabulator -xlrd==2.0.1 - # via tabulator - -# The following packages are considered to be unsafe in a requirements file: -# setuptools +# SHA1:4c968a12954870dc2461956c6fccb6a1065404fd +# +# This file is autogenerated by pip-compile-multi +# To update, run: +# +# pip-compile-multi +# +-r base.txt +-e file:. + # via + # -r requirements/base.in + # -r requirements/development.in +astroid==2.13.5 + # via pylint +asttokens==2.2.1 + # via stack-data +backcall==0.2.0 + # via ipython +boto3==1.26.130 + # via tabulator +botocore==1.29.130 + # via + # boto3 + # s3transfer +cached-property==1.5.2 + # via tableschema +certifi==2023.5.7 + # via requests +chardet==5.1.0 + # via tabulator +charset-normalizer==3.1.0 + # via requests +decorator==5.1.1 + # via ipython +dill==0.3.6 + # via pylint +et-xmlfile==1.1.0 + # via openpyxl +executing==1.2.0 + # via stack-data +flask-cors==3.0.10 + # via apache-superset +future==0.18.3 + # via pyhive +ijson==3.2.0.post0 + # via tabulator +ipython==8.12.2 + # via -r requirements/development.in +isort==5.12.0 + # via pylint +jedi==0.18.2 + # via ipython +jmespath==1.0.1 + # via + # boto3 + # botocore +jsonlines==3.1.0 + # via tabulator +lazy-object-proxy==1.9.0 + # via astroid +linear-tsv==1.1.0 + # via tabulator +matplotlib-inline==0.1.6 + # via ipython +mccabe==0.6.1 + # via pylint +mysqlclient==2.1.0 + # via apache-superset +openpyxl==3.1.2 + # via tabulator +parso==0.8.3 + # via jedi +pexpect==4.8.0 + # via ipython +pickleshare==0.7.5 + # via ipython +pillow==9.5.0 + # via apache-superset +platformdirs==3.5.1 + # via pylint +progress==1.6 + # via -r requirements/development.in +psycopg2-binary==2.9.6 + # via apache-superset +ptyprocess==0.7.0 + # via pexpect +pure-eval==0.2.2 + # via stack-data +pure-sasl==0.6.2 + # via + # pyhive + # thrift-sasl +pydruid==0.6.5 + # via apache-superset +pyhive @ git+https://github.com/dropbox/PyHive.git@b3c123195b6d2586e1e609eefecafe036324eb46 + # via apache-superset +pyinstrument==4.4.0 + # via -r requirements/development.in +pylint==2.15.0 + # via -r requirements/development.in +requests==2.30.0 + # via + # pydruid + # tableschema + # tabulator +rfc3986==2.0.0 + # via tableschema +s3transfer==0.6.1 + # via boto3 +sqloxide==0.1.33 + # via -r requirements/development.in +stack-data==0.6.2 + # via ipython +tableschema==1.20.2 + # via apache-superset +tabulator==1.53.5 + # via tableschema +thrift==0.16.0 + # via + # apache-superset + # pyhive + # thrift-sasl +thrift-sasl==0.4.3 + # via pyhive +tomlkit==0.11.8 + # via pylint +traitlets==5.9.0 + # via + # ipython + # matplotlib-inline +unicodecsv==0.14.1 + # via + # tableschema + # tabulator +xlrd==2.0.1 + # via tabulator + +# The following packages are considered to be unsafe in a requirements file: +# setuptools diff --git a/setup.py b/setup.py index ec80013dad85..0fee417ff635 100644 --- a/setup.py +++ b/setup.py @@ -1,203 +1,203 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -import io -import json -import os -import subprocess -import sys - -from setuptools import find_packages, setup - -BASE_DIR = os.path.abspath(os.path.dirname(__file__)) -PACKAGE_JSON = os.path.join(BASE_DIR, "superset-frontend", "package.json") - -with open(PACKAGE_JSON, "r") as package_file: - version_string = json.load(package_file)["version"] - -with io.open("README.md", "r", encoding="utf-8") as f: - long_description = f.read() - - -def get_git_sha() -> str: - try: - s = subprocess.check_output(["git", "rev-parse", "HEAD"]) - return s.decode().strip() - except Exception: - return "" - - -GIT_SHA = get_git_sha() -version_info = {"GIT_SHA": GIT_SHA, "version": version_string} -print("-==-" * 15) -print("VERSION: " + version_string) -print("GIT SHA: " + GIT_SHA) -print("-==-" * 15) - -VERSION_INFO_FILE = os.path.join(BASE_DIR, "superset", "static", "version_info.json") - -with open(VERSION_INFO_FILE, "w") as version_file: - json.dump(version_info, version_file) - - -setup( - name="apache-superset", - description="A modern, enterprise-ready business intelligence web application", - long_description=long_description, - long_description_content_type="text/markdown", - version=version_string, - packages=find_packages(), - include_package_data=True, - zip_safe=False, - entry_points={ - "console_scripts": ["superset=superset.cli.main:superset"], - # the `postgres` and `postgres+psycopg2://` schemes were removed in SQLAlchemy 1.4 - # add an alias here to prevent breaking existing databases - "sqlalchemy.dialects": [ - "postgres.psycopg2 = sqlalchemy.dialects.postgresql:dialect", - "postgres = sqlalchemy.dialects.postgresql:dialect", - ], - }, - install_requires=[ - "backoff>=1.8.0", - "cachelib>=0.4.1,<0.5", - "celery>=5.2.2, <6.0.0", - "click>=8.0.3", - "click-option-group", - "colorama", - "croniter>=0.3.28", - "cron-descriptor", - "cryptography>=39.0.1, <40", - "deprecation>=2.1.0, <2.2.0", - "flask>=2.2.5, <3.0.0", - "flask-appbuilder>=4.3.0, <5.0.0", - "flask-caching>=1.10.1, <1.11", - "flask-compress>=1.13, <2.0", - "flask-talisman>=1.0.0, <2.0", - "flask-login==0.6.0", - "flask-migrate>=3.1.0, <4.0", - "flask-wtf>=1.0.1, <1.1", - "func_timeout", - "geopy", - "gunicorn>=20.1.0; sys_platform != 'win32'", - "hashids>=1.3.1, <2", - "holidays>=0.23, <0.24", - "humanize", - "isodate", - "Mako>=1.2.2", - "markdown>=3.0", - "msgpack>=1.0.0, <1.1", - "nh3>=0.2.11, <0.3", - "numpy==1.23.5", - "packaging", - "pandas>=1.5.3, <1.6", - "parsedatetime", - "pgsanity", - "polyline>=2.0.0, <3.0", - "pyparsing>=3.0.6, <4", - "python-dateutil", - "python-dotenv", - "python-geohash", - "pyarrow>=10.0.1, <11", - "pyyaml>=5.4", - "PyJWT>=2.4.0, <3.0", - "redis>=4.5.4, <5.0", - "selenium>=3.141.0", - "shortid", - "sshtunnel>=0.4.0, <0.5", - "simplejson>=3.15.0", - "slack_sdk>=3.19.0, <4", - "sqlalchemy>=1.4, <2", - "sqlalchemy-utils>=0.38.3, <0.39", - "sqlparse>=0.4.3, <0.5", - "tabulate>=0.8.9, <0.9", - "typing-extensions>=4, <5", - "waitress; sys_platform == 'win32'", - "werkzeug>=2.3.3, <3", - "wtforms>=2.3.3, <4", - "wtforms-json", - "xlsxwriter>=3.0.7, <3.1", - ], - extras_require={ - "athena": ["pyathena[pandas]>=2, <3"], - "aurora-data-api": ["preset-sqlalchemy-aurora-data-api>=0.2.8,<0.3"], - "bigquery": [ - "pandas-gbq>=0.19.1", - "sqlalchemy-bigquery>=1.6.1", - "google-cloud-bigquery>=3.10.0", - ], - "clickhouse": ["clickhouse-connect>=0.5.14, <1.0"], - "cockroachdb": ["cockroachdb>=0.3.5, <0.4"], - "cors": ["flask-cors>=2.0.0"], - "crate": ["crate[sqlalchemy]>=0.26.0, <0.27"], - "databricks": [ - "databricks-sql-connector>=2.0.2, <3", - "sqlalchemy-databricks>=0.2.0", - ], - "db2": ["ibm-db-sa>=0.3.5, <0.4"], - "dremio": ["sqlalchemy-dremio>=1.1.5, <1.3"], - "drill": ["sqlalchemy-drill==0.1.dev"], - "druid": ["pydruid>=0.6.5,<0.7"], - "dynamodb": ["pydynamodb>=0.4.2"], - "solr": ["sqlalchemy-solr >= 0.2.0"], - "elasticsearch": ["elasticsearch-dbapi>=0.2.9, <0.3.0"], - "exasol": ["sqlalchemy-exasol >= 2.4.0, <3.0"], - "excel": ["xlrd>=1.2.0, <1.3"], - "firebird": ["sqlalchemy-firebird>=0.7.0, <0.8"], - "firebolt": ["firebolt-sqlalchemy>=0.0.1"], - "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], - "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], - "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821", "tableschema", "thrift>=0.14.1, <1.0.0"], - "impala": ["impyla>0.16.2, <0.17"], - "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], - "kylin": ["kylinpy>=2.8.1, <2.9"], - "mssql": ["pymssql>=2.1.4, <2.2"], - "mysql": ["mysqlclient>=2.1.0, <3"], - "ocient": [ - "sqlalchemy-ocient>=1.0.0", - "pyocient>=1.0.15", - "shapely", - "geojson", - ], - "oracle": ["cx-Oracle>8.0.0, <8.1"], - "pinot": ["pinotdb>=0.3.3, <0.4"], - "postgres": ["psycopg2-binary==2.9.6"], - "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821"], - "trino": ["trino>=0.324.0"], - "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], - "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], - "rockset": ["rockset>=0.8.10, <0.9"], - "shillelagh": [ - "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" - ], - "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], - "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@7563946170ad5e4310620239967bd5a02bc0e821", "tableschema", "thrift>=0.14.1, <1.0.0"], - "teradata": ["teradatasql>=16.20.0.23"], - "thumbnails": ["Pillow>=9.5.0, <10.0.0"], - "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], - "netezza": ["nzalchemy>=11.0.2"], - }, - python_requires="~=3.9", - author="Apache Software Foundation", - author_email="dev@superset.apache.org", - url="https://superset.apache.org/", - download_url="https://www.apache.org/dist/superset/" + version_string, - classifiers=[ - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - ], -) +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +import io +import json +import os +import subprocess +import sys + +from setuptools import find_packages, setup + +BASE_DIR = os.path.abspath(os.path.dirname(__file__)) +PACKAGE_JSON = os.path.join(BASE_DIR, "superset-frontend", "package.json") + +with open(PACKAGE_JSON, "r") as package_file: + version_string = json.load(package_file)["version"] + +with io.open("README.md", "r", encoding="utf-8") as f: + long_description = f.read() + + +def get_git_sha() -> str: + try: + s = subprocess.check_output(["git", "rev-parse", "HEAD"]) + return s.decode().strip() + except Exception: + return "" + + +GIT_SHA = get_git_sha() +version_info = {"GIT_SHA": GIT_SHA, "version": version_string} +print("-==-" * 15) +print("VERSION: " + version_string) +print("GIT SHA: " + GIT_SHA) +print("-==-" * 15) + +VERSION_INFO_FILE = os.path.join(BASE_DIR, "superset", "static", "version_info.json") + +with open(VERSION_INFO_FILE, "w") as version_file: + json.dump(version_info, version_file) + + +setup( + name="apache-superset", + description="A modern, enterprise-ready business intelligence web application", + long_description=long_description, + long_description_content_type="text/markdown", + version=version_string, + packages=find_packages(), + include_package_data=True, + zip_safe=False, + entry_points={ + "console_scripts": ["superset=superset.cli.main:superset"], + # the `postgres` and `postgres+psycopg2://` schemes were removed in SQLAlchemy 1.4 + # add an alias here to prevent breaking existing databases + "sqlalchemy.dialects": [ + "postgres.psycopg2 = sqlalchemy.dialects.postgresql:dialect", + "postgres = sqlalchemy.dialects.postgresql:dialect", + ], + }, + install_requires=[ + "backoff>=1.8.0", + "cachelib>=0.4.1,<0.5", + "celery>=5.2.2, <6.0.0", + "click>=8.0.3", + "click-option-group", + "colorama", + "croniter>=0.3.28", + "cron-descriptor", + "cryptography>=39.0.1, <40", + "deprecation>=2.1.0, <2.2.0", + "flask>=2.2.5, <3.0.0", + "flask-appbuilder>=4.3.0, <5.0.0", + "flask-caching>=1.10.1, <1.11", + "flask-compress>=1.13, <2.0", + "flask-talisman>=1.0.0, <2.0", + "flask-login==0.6.0", + "flask-migrate>=3.1.0, <4.0", + "flask-wtf>=1.0.1, <1.1", + "func_timeout", + "geopy", + "gunicorn>=20.1.0; sys_platform != 'win32'", + "hashids>=1.3.1, <2", + "holidays>=0.23, <0.24", + "humanize", + "isodate", + "Mako>=1.2.2", + "markdown>=3.0", + "msgpack>=1.0.0, <1.1", + "nh3>=0.2.11, <0.3", + "numpy==1.23.5", + "packaging", + "pandas>=1.5.3, <1.6", + "parsedatetime", + "pgsanity", + "polyline>=2.0.0, <3.0", + "pyparsing>=3.0.6, <4", + "python-dateutil", + "python-dotenv", + "python-geohash", + "pyarrow>=10.0.1, <11", + "pyyaml>=5.4", + "PyJWT>=2.4.0, <3.0", + "redis>=4.5.4, <5.0", + "selenium>=3.141.0", + "shortid", + "sshtunnel>=0.4.0, <0.5", + "simplejson>=3.15.0", + "slack_sdk>=3.19.0, <4", + "sqlalchemy>=1.4, <2", + "sqlalchemy-utils>=0.38.3, <0.39", + "sqlparse>=0.4.3, <0.5", + "tabulate>=0.8.9, <0.9", + "typing-extensions>=4, <5", + "waitress; sys_platform == 'win32'", + "werkzeug>=2.3.3, <3", + "wtforms>=2.3.3, <4", + "wtforms-json", + "xlsxwriter>=3.0.7, <3.1", + ], + extras_require={ + "athena": ["pyathena[pandas]>=2, <3"], + "aurora-data-api": ["preset-sqlalchemy-aurora-data-api>=0.2.8,<0.3"], + "bigquery": [ + "pandas-gbq>=0.19.1", + "sqlalchemy-bigquery>=1.6.1", + "google-cloud-bigquery>=3.10.0", + ], + "clickhouse": ["clickhouse-connect>=0.5.14, <1.0"], + "cockroachdb": ["cockroachdb>=0.3.5, <0.4"], + "cors": ["flask-cors>=2.0.0"], + "crate": ["crate[sqlalchemy]>=0.26.0, <0.27"], + "databricks": [ + "databricks-sql-connector>=2.0.2, <3", + "sqlalchemy-databricks>=0.2.0", + ], + "db2": ["ibm-db-sa>=0.3.5, <0.4"], + "dremio": ["sqlalchemy-dremio>=1.1.5, <1.3"], + "drill": ["sqlalchemy-drill==0.1.dev"], + "druid": ["pydruid>=0.6.5,<0.7"], + "dynamodb": ["pydynamodb>=0.4.2"], + "solr": ["sqlalchemy-solr >= 0.2.0"], + "elasticsearch": ["elasticsearch-dbapi>=0.2.9, <0.3.0"], + "exasol": ["sqlalchemy-exasol >= 2.4.0, <3.0"], + "excel": ["xlrd>=1.2.0, <1.3"], + "firebird": ["sqlalchemy-firebird>=0.7.0, <0.8"], + "firebolt": ["firebolt-sqlalchemy>=0.0.1"], + "gsheets": ["shillelagh[gsheetsapi]>=1.0.14, <2"], + "hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"], + "hive": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@b3c123195b6d2586e1e609eefecafe036324eb46", "tableschema", "thrift>=0.14.1, <1.0.0"], + "impala": ["impyla>0.16.2, <0.17"], + "kusto": ["sqlalchemy-kusto>=2.0.0, <3"], + "kylin": ["kylinpy>=2.8.1, <2.9"], + "mssql": ["pymssql>=2.1.4, <2.2"], + "mysql": ["mysqlclient>=2.1.0, <3"], + "ocient": [ + "sqlalchemy-ocient>=1.0.0", + "pyocient>=1.0.15", + "shapely", + "geojson", + ], + "oracle": ["cx-Oracle>8.0.0, <8.1"], + "pinot": ["pinotdb>=0.3.3, <0.4"], + "postgres": ["psycopg2-binary==2.9.6"], + "presto": ["pyhive[presto]@git+https://github.com/dropbox/PyHive.git@b3c123195b6d2586e1e609eefecafe036324eb46"], + "trino": ["trino>=0.324.0"], + "prophet": ["prophet>=1.0.1, <1.1", "pystan<3.0"], + "redshift": ["sqlalchemy-redshift>=0.8.1, < 0.9"], + "rockset": ["rockset>=0.8.10, <0.9"], + "shillelagh": [ + "shillelagh[datasetteapi,gsheetsapi,socrata,weatherapi]>=1.1.1, <2" + ], + "snowflake": ["snowflake-sqlalchemy>=1.2.4, <2"], + "spark": ["pyhive[hive]@git+https://github.com/dropbox/PyHive.git@b3c123195b6d2586e1e609eefecafe036324eb46", "tableschema", "thrift>=0.14.1, <1.0.0"], + "teradata": ["teradatasql>=16.20.0.23"], + "thumbnails": ["Pillow>=9.5.0, <10.0.0"], + "vertica": ["sqlalchemy-vertica-python>=0.5.9, < 0.6"], + "netezza": ["nzalchemy>=11.0.2"], + }, + python_requires="~=3.9", + author="Apache Software Foundation", + author_email="dev@superset.apache.org", + url="https://superset.apache.org/", + download_url="https://www.apache.org/dist/superset/" + version_string, + classifiers=[ + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + ], +)