build: Add python 3.8 to the build matrix (#9827)

This commit is contained in:
Erik Ritter 2020-05-17 14:49:51 -07:00 committed by GitHub
parent 53b58edd6f
commit c7c76c6a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 11 deletions

View File

@ -76,8 +76,7 @@ jobs:
strategy: strategy:
matrix: matrix:
# run unit tests in multiple version just for fun # run unit tests in multiple version just for fun
# (3.8 is not supported yet, some dependencies need an update) python-version: [3.6, 3.7, 3.8]
python-version: [3.6, 3.7]
env: env:
PYTHONPATH: ${{ github.workspace }} PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.superset_test_config SUPERSET_CONFIG: tests.superset_test_config

View File

@ -15,5 +15,5 @@
# limitations under the License. # limitations under the License.
# #
gevent==1.4.0 gevent==1.4.0
psycopg2-binary==2.7.5 psycopg2-binary==2.8.5
redis==3.2.1 redis==3.2.1

View File

@ -24,7 +24,7 @@ replicaCount: 1
## These requirements are used to build a requirements file which is then applied on init ## These requirements are used to build a requirements file which is then applied on init
## of superset containers ## of superset containers
additionalRequirements: additionalRequirements:
- "psycopg2==2.8.3" - "psycopg2==2.8.5"
- "redis==3.2.1" - "redis==3.2.1"
## The name of the secret which we will use to generate a superset_config.py file ## The name of the secret which we will use to generate a superset_config.py file

View File

@ -24,7 +24,7 @@ mypy==0.770
nose==1.3.7 nose==1.3.7
pip-tools==5.1.2 pip-tools==5.1.2
pre-commit==1.17.0 pre-commit==1.17.0
psycopg2-binary==2.7.5 psycopg2-binary==2.8.5
pycodestyle==2.5.0 pycodestyle==2.5.0
pydruid==0.5.9 pydruid==0.5.9
pyhive==0.6.2 pyhive==0.6.2

View File

@ -116,7 +116,7 @@ setup(
"gsheets": ["gsheetsdb>=0.1.9"], "gsheets": ["gsheetsdb>=0.1.9"],
"hive": ["pyhive[hive]>=0.6.1", "tableschema", "thrift>=0.11.0, <1.0.0"], "hive": ["pyhive[hive]>=0.6.1", "tableschema", "thrift>=0.11.0, <1.0.0"],
"mysql": ["mysqlclient==1.4.2.post1"], "mysql": ["mysqlclient==1.4.2.post1"],
"postgres": ["psycopg2-binary==2.7.5"], "postgres": ["psycopg2-binary==2.8.5"],
"presto": ["pyhive[presto]>=0.4.0"], "presto": ["pyhive[presto]>=0.4.0"],
"elasticsearch": ["elasticsearch-dbapi>=0.1.0, <0.2.0"], "elasticsearch": ["elasticsearch-dbapi>=0.1.0, <0.2.0"],
"druid": ["pydruid==0.5.7", "requests==2.22.0"], "druid": ["pydruid==0.5.7", "requests==2.22.0"],

View File

@ -16,10 +16,10 @@
# under the License. # under the License.
# isort:skip_file # isort:skip_file
"""Unit tests for Superset""" """Unit tests for Superset"""
import cgi
import csv import csv
import datetime import datetime
import doctest import doctest
import html
import io import io
import json import json
import logging import logging
@ -1150,7 +1150,11 @@ class CoreTests(SupersetTestCase):
{"FOO": lambda x: 1, "super": "set"}, {"FOO": lambda x: 1, "super": "set"},
default=utils.pessimistic_json_iso_dttm_ser, default=utils.pessimistic_json_iso_dttm_ser,
) )
html = cgi.escape(encoded).replace("'", "&#39;").replace('"', "&#34;") html_string = (
html.escape(encoded, quote=False)
.replace("'", "&#39;")
.replace('"', "&#34;")
)
urls = [ urls = [
"/superset/sqllab", "/superset/sqllab",
@ -1161,7 +1165,7 @@ class CoreTests(SupersetTestCase):
] ]
for url in urls: for url in urls:
data = self.get_resp(url) data = self.get_resp(url)
self.assertTrue(html in data) self.assertTrue(html_string in data)
@mock.patch.dict( @mock.patch.dict(
"superset.extensions.feature_flag_manager._feature_flags", "superset.extensions.feature_flag_manager._feature_flags",