mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Making thrift, pyhive and tableschema as extra_requires (#6696)
* Making thrift, pyhive and tableschema as extra_requires Looking at the dependency tree for license related questions, I noticed that tableschema had a huge tree, and only people running Hive really need it. Making this as well as pyhive and thrift optional. Also bumping some python dependencies * Run pip-compile * Removing refs to past.builtins (from future lib) * Add thrift
This commit is contained in:
committed by
GitHub
parent
ebb799140a
commit
f742b9876b
@@ -20,8 +20,6 @@ import subprocess
|
||||
import time
|
||||
import unittest
|
||||
|
||||
from past.builtins import basestring
|
||||
|
||||
from superset import app, db
|
||||
from superset.models.helpers import QueryStatus
|
||||
from superset.models.sql_lab import Query
|
||||
@@ -239,7 +237,7 @@ class CeleryTestCase(SupersetTestCase):
|
||||
@staticmethod
|
||||
def de_unicode_dict(d):
|
||||
def str_if_basestring(o):
|
||||
if isinstance(o, basestring):
|
||||
if isinstance(o, str):
|
||||
return str(o)
|
||||
return o
|
||||
return {str_if_basestring(k): str_if_basestring(d[k]) for k in d}
|
||||
|
||||
Reference in New Issue
Block a user