From 73b7d40041905715d0d5bdb9e62c967a9b647c74 Mon Sep 17 00:00:00 2001 From: Sravan Reddy Date: Fri, 12 May 2023 16:34:58 +0530 Subject: [PATCH] Pin conflicting versions --- hq_superset/tests/config_for_tests.py | 1 - setup.py | 4 +++- superset_config.example.py | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hq_superset/tests/config_for_tests.py b/hq_superset/tests/config_for_tests.py index 42c0b8f..0801936 100644 --- a/hq_superset/tests/config_for_tests.py +++ b/hq_superset/tests/config_for_tests.py @@ -36,7 +36,6 @@ superset_config.SQLALCHEMY_DATABASE_URI = "sqlite:///:memory:" superset_config.SHARED_DIR = "shared_dir" -superset_config.ENABLE_ASYNC_UCR_IMPORTS = True superset_config.CACHE_CONFIG = { 'CACHE_TYPE': 'RedisCache', 'CACHE_DEFAULT_TIMEOUT': 300, diff --git a/setup.py b/setup.py index a69a32b..4042f49 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,9 @@ # Werkzeug 2.1 doesn't work, so pin it 'Werkzeug==2.0.0', 'jinja2==3.0.3', + 'celery==5.2.7', + 'sqlparse==0.4.3', + 'pyopenssl==22.1.0', 'dimagi-superset==2.0.1', 'authlib==1.0.1', 'requests==2.28.1', @@ -24,7 +27,6 @@ 'WTForms==2.3.3', 'cryptography==37.0.4', 'sentry-sdk==1.9.10', - 'celery==5.2.7', ], classifiers=[ 'Programming Language :: Python', diff --git a/superset_config.example.py b/superset_config.example.py index fb968dc..beafcc6 100644 --- a/superset_config.example.py +++ b/superset_config.example.py @@ -50,10 +50,6 @@ # This is where async UCR imports are stored temporarily SHARED_DIR = 'shared_dir' -# If this is enabled, UCRs larger than -# hq_superset.views.ASYNC_DATASOURCE_IMPORT_LIMIT_IN_BYTES -# are imported via Celery/Redis. -ENABLE_ASYNC_UCR_IMPORTS = False # Enable below for sentry integration import sentry_sdk