chore: remove unnecessary deps (#15787)

* chore: remove unneeded deps

* fix lint

* Run compile
This commit is contained in:
Beto Dealmeida 2021-07-21 16:53:45 -07:00 committed by GitHub
parent e66db63333
commit 3441182630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 91 additions and 57 deletions

View File

@ -316,7 +316,7 @@ generated-members=
# List of decorators that produce context managers, such as # List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that # contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers. # produce valid context managers.
contextmanager-decorators=contextlib.contextmanager,contextlib2.contextmanager contextmanager-decorators=contextlib.contextmanager
[VARIABLES] [VARIABLES]

View File

@ -48,8 +48,6 @@ colorama==0.4.4
# via # via
# apache-superset # apache-superset
# flask-appbuilder # flask-appbuilder
contextlib2==0.6.0.post1
# via apache-superset
convertdate==2.3.0 convertdate==2.3.0
# via holidays # via holidays
cron-descriptor==1.2.24 cron-descriptor==1.2.24
@ -58,8 +56,6 @@ croniter==0.3.36
# via apache-superset # via apache-superset
cryptography==3.3.2 cryptography==3.3.2
# via apache-superset # via apache-superset
decorator==4.4.2
# via retry
defusedxml==0.6.0 defusedxml==0.6.0
# via python3-openid # via python3-openid
deprecation==2.1.0 deprecation==2.1.0
@ -178,16 +174,12 @@ pandas==1.2.2
# via apache-superset # via apache-superset
parsedatetime==2.6 parsedatetime==2.6
# via apache-superset # via apache-superset
pathlib2==2.3.5
# via apache-superset
pgsanity==0.2.9 pgsanity==0.2.9
# via apache-superset # via apache-superset
polyline==1.4.0 polyline==1.4.0
# via apache-superset # via apache-superset
prison==0.1.3 prison==0.1.3
# via flask-appbuilder # via flask-appbuilder
py==1.9.0
# via retry
pyarrow==4.0.1 pyarrow==4.0.1
# via apache-superset # via apache-superset
pycparser==2.20 pycparser==2.20
@ -236,8 +228,6 @@ pyyaml==5.4.1
# apispec # apispec
redis==3.5.3 redis==3.5.3
# via apache-superset # via apache-superset
retry==0.9.2
# via apache-superset
selenium==3.141.0 selenium==3.141.0
# via apache-superset # via apache-superset
simplejson==3.17.2 simplejson==3.17.2
@ -252,7 +242,6 @@ six==1.15.0
# isodate # isodate
# jsonschema # jsonschema
# packaging # packaging
# pathlib2
# polyline # polyline
# prison # prison
# pyrsistent # pyrsistent

View File

@ -6,39 +6,87 @@
# pip-compile-multi # pip-compile-multi
# #
-r base.txt -r base.txt
-e file:. # via -r requirements/base.in -e file:.
boto3==1.16.10 # via tabulator # via -r requirements/base.in
botocore==1.19.10 # via boto3, s3transfer boto3==1.16.10
cached-property==1.5.2 # via tableschema # via tabulator
certifi==2020.6.20 # via requests botocore==1.19.10
deprecated==1.2.11 # via pygithub # via
et-xmlfile==1.0.1 # via openpyxl # boto3
flask-cors==3.0.9 # via -r requirements/development.in # s3transfer
future==0.18.2 # via pyhive cached-property==1.5.2
ijson==3.1.2.post0 # via tabulator # via tableschema
jdcal==1.4.1 # via openpyxl certifi==2020.6.20
jmespath==0.10.0 # via boto3, botocore # via requests
jsonlines==1.2.0 # via tabulator deprecated==1.2.11
linear-tsv==1.1.0 # via tabulator # via pygithub
mysqlclient==1.4.2.post1 # via -r requirements/development.in et-xmlfile==1.0.1
openpyxl==3.0.5 # via tabulator # via openpyxl
pillow==7.2.0 # via -r requirements/development.in flask-cors==3.0.9
progress==1.5 # via -r requirements/development.in # via -r requirements/development.in
psycopg2-binary==2.8.5 # via -r requirements/development.in future==0.18.2
pydruid==0.6.1 # via -r requirements/development.in # via pyhive
pygithub==1.54.1 # via -r requirements/development.in ijson==3.1.2.post0
pyhive[hive]==0.6.3 # via -r requirements/development.in # via tabulator
requests==2.24.0 # via pydruid, pygithub, tableschema, tabulator jdcal==1.4.1
rfc3986==1.4.0 # via tableschema # via openpyxl
s3transfer==0.3.3 # via boto3 jmespath==0.10.0
sasl==0.2.1 # via pyhive, thrift-sasl # via
tableschema==1.20.0 # via -r requirements/development.in # boto3
tabulator==1.52.5 # via tableschema # botocore
thrift-sasl==0.4.2 # via pyhive jsonlines==1.2.0
thrift==0.13.0 # via -r requirements/development.in, pyhive, thrift-sasl # via tabulator
unicodecsv==0.14.1 # via tableschema, tabulator linear-tsv==1.1.0
wrapt==1.12.1 # via deprecated # via tabulator
xlrd==1.2.0 # via tabulator mysqlclient==1.4.2.post1
# via -r requirements/development.in
openpyxl==3.0.5
# via tabulator
pillow==7.2.0
# via -r requirements/development.in
progress==1.5
# via -r requirements/development.in
psycopg2-binary==2.8.5
# via -r requirements/development.in
pydruid==0.6.1
# via -r requirements/development.in
pygithub==1.54.1
# via -r requirements/development.in
pyhive[hive]==0.6.3
# via -r requirements/development.in
requests==2.24.0
# via
# pydruid
# pygithub
# tableschema
# tabulator
rfc3986==1.4.0
# via tableschema
s3transfer==0.3.3
# via boto3
sasl==0.2.1
# via
# pyhive
# thrift-sasl
tableschema==1.20.0
# via -r requirements/development.in
tabulator==1.52.5
# via tableschema
thrift==0.13.0
# via
# -r requirements/development.in
# pyhive
# thrift-sasl
thrift-sasl==0.4.2
# via pyhive
unicodecsv==0.14.1
# via
# tableschema
# tabulator
wrapt==1.12.1
# via deprecated
xlrd==1.2.0
# via tabulator
# The following packages are considered to be unsafe in a requirements file: # The following packages are considered to be unsafe in a requirements file:
# setuptools # setuptools

View File

@ -17,6 +17,8 @@ backcall==0.2.0
# via ipython # via ipython
coverage==5.3 coverage==5.3
# via pytest-cov # via pytest-cov
decorator==5.0.9
# via ipython
docker==4.3.1 docker==4.3.1
# via -r requirements/testing.in # via -r requirements/testing.in
flask-testing==0.8.0 flask-testing==0.8.0

View File

@ -30,7 +30,7 @@ combine_as_imports = true
include_trailing_comma = true include_trailing_comma = true
line_length = 88 line_length = 88
known_first_party = superset known_first_party = superset
known_third_party =alembic,apispec,backoff,bleach,cachelib,celery,click,colorama,contextlib2,cron_descriptor,croniter,cryptography,dateutil,deprecation,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_jwt_extended,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,freezegun,geohash,geopy,graphlib,holidays,humanize,isodate,jinja2,jwt,markdown,markupsafe,marshmallow,marshmallow_enum,msgpack,numpy,pandas,parameterized,parsedatetime,pathlib2,pgsanity,pkg_resources,polyline,prison,progress,pyarrow,pyhive,pyparsing,pytest,pytest_mock,pytz,redis,requests,selenium,setuptools,simplejson,slack,sqlalchemy,sqlalchemy_utils,sqlparse,typing_extensions,werkzeug,wtforms,wtforms_json,yaml known_third_party =alembic,apispec,backoff,bleach,cachelib,celery,click,colorama,cron_descriptor,croniter,cryptography,dateutil,deprecation,flask,flask_appbuilder,flask_babel,flask_caching,flask_compress,flask_jwt_extended,flask_login,flask_migrate,flask_sqlalchemy,flask_talisman,flask_testing,flask_wtf,freezegun,geohash,geopy,graphlib,holidays,humanize,isodate,jinja2,jwt,markdown,markupsafe,marshmallow,marshmallow_enum,msgpack,numpy,pandas,parameterized,parsedatetime,pgsanity,pkg_resources,polyline,prison,progress,pyarrow,pyhive,pyparsing,pytest,pytest_mock,pytz,redis,requests,selenium,setuptools,simplejson,slack,sqlalchemy,sqlalchemy_utils,sqlparse,typing_extensions,werkzeug,wtforms,wtforms_json,yaml
multi_line_output = 3 multi_line_output = 3
order_by_type = false order_by_type = false

View File

@ -70,7 +70,6 @@ setup(
"celery>=4.3.0, <5.0.0, !=4.4.1", "celery>=4.3.0, <5.0.0, !=4.4.1",
"click<8", "click<8",
"colorama", "colorama",
"contextlib2",
"croniter>=0.3.28", "croniter>=0.3.28",
"cron-descriptor", "cron-descriptor",
"cryptography>=3.3.2", "cryptography>=3.3.2",
@ -87,13 +86,12 @@ setup(
"gunicorn>=20.0.2, <20.1", "gunicorn>=20.0.2, <20.1",
"holidays==0.10.3", # PINNED! https://github.com/dr-prodigy/python-holidays/issues/406 "holidays==0.10.3", # PINNED! https://github.com/dr-prodigy/python-holidays/issues/406
"humanize", "humanize",
"itsdangerous>=1.0.0, <2.0.0", "itsdangerous>=1.0.0, <2.0.0", # https://github.com/apache/superset/pull/14627
"isodate", "isodate",
"markdown>=3.0", "markdown>=3.0",
"msgpack>=1.0.0, <1.1", "msgpack>=1.0.0, <1.1",
"pandas>=1.2.2, <1.3", "pandas>=1.2.2, <1.3",
"parsedatetime", "parsedatetime",
"pathlib2",
"pgsanity", "pgsanity",
"polyline", "polyline",
"pyparsing>=2.4.7, <3.0.0", "pyparsing>=2.4.7, <3.0.0",
@ -112,9 +110,6 @@ setup(
"sqlparse==0.3.0", # PINNED! see https://github.com/andialbrecht/sqlparse/issues/562 "sqlparse==0.3.0", # PINNED! see https://github.com/andialbrecht/sqlparse/issues/562
"typing-extensions>=3.7.4.3,<4", # needed to support typing.Literal on py37 "typing-extensions>=3.7.4.3,<4", # needed to support typing.Literal on py37
"wtforms-json", "wtforms-json",
"pyparsing>=2.4.7, <3.0.0",
"holidays==0.10.3", # PINNED! https://github.com/dr-prodigy/python-holidays/issues/406
"deprecation>=2.1.0, <2.2.0",
], ],
extras_require={ extras_require={
"athena": ["pyathena>=1.10.8,<1.11"], "athena": ["pyathena>=1.10.8,<1.11"],

View File

@ -19,6 +19,7 @@ import json
import logging import logging
import sys import sys
from datetime import datetime, timedelta from datetime import datetime, timedelta
from pathlib import Path
from subprocess import Popen from subprocess import Popen
from typing import Any, Dict, List, Optional, Type, Union from typing import Any, Dict, List, Optional, Type, Union
from zipfile import is_zipfile, ZipFile from zipfile import is_zipfile, ZipFile
@ -30,7 +31,6 @@ from colorama import Fore, Style
from flask import current_app, g from flask import current_app, g
from flask.cli import FlaskGroup, with_appcontext from flask.cli import FlaskGroup, with_appcontext
from flask_appbuilder import Model from flask_appbuilder import Model
from pathlib2 import Path
from superset import app, appbuilder, config, security_manager from superset import app, appbuilder, config, security_manager
from superset.app import create_app from superset.app import create_app

View File

@ -15,9 +15,9 @@
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
import logging import logging
from contextlib import contextmanager
from typing import Iterator from typing import Iterator
from contextlib2 import contextmanager
from sqlalchemy import create_engine from sqlalchemy import create_engine
from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm import Session, sessionmaker from sqlalchemy.orm import Session, sessionmaker

View File

@ -17,10 +17,10 @@
from __future__ import annotations from __future__ import annotations
import time import time
from contextlib import contextmanager
from functools import wraps from functools import wraps
from typing import Any, Callable, Dict, Iterator, TYPE_CHECKING, Union from typing import Any, Callable, Dict, Iterator, TYPE_CHECKING, Union
from contextlib2 import contextmanager
from flask import current_app, Response from flask import current_app, Response
from superset import is_feature_enabled from superset import is_feature_enabled

View File

@ -15,13 +15,13 @@
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
import json import json
from contextlib import contextmanager
from datetime import datetime, timedelta from datetime import datetime, timedelta
from typing import List, Optional from typing import List, Optional
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
from uuid import uuid4 from uuid import uuid4
import pytest import pytest
from contextlib2 import contextmanager
from flask_sqlalchemy import BaseQuery from flask_sqlalchemy import BaseQuery
from freezegun import freeze_time from freezegun import freeze_time
from sqlalchemy.sql import func from sqlalchemy.sql import func

View File

@ -17,10 +17,10 @@
"""Unit tests for alerting in Superset""" """Unit tests for alerting in Superset"""
import json import json
import logging import logging
from contextlib import contextmanager
from unittest.mock import patch from unittest.mock import patch
import pytest import pytest
from contextlib2 import contextmanager
from flask_appbuilder.security.sqla.models import Role from flask_appbuilder.security.sqla.models import Role
from superset.extensions import db, security_manager from superset.extensions import db, security_manager