chore(dep): Unpin slackclient dependency (#21586)

Co-authored-by: Erik Cederstrand <erik@adamatics.com>
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
This commit is contained in:
Erik Cederstrand 2022-10-04 13:42:42 +02:00 committed by GitHub
parent f784455264
commit 640628952e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 30 deletions

View File

@ -7,21 +7,14 @@
#
-e file:.
# via -r requirements/base.in
aiohttp==3.8.1
# via slackclient
aiosignal==1.2.0
# via aiohttp
alembic==1.6.5
# via flask-migrate
amqp==5.1.0
# via kombu
apispec[yaml]==3.3.2
# via flask-appbuilder
async-timeout==4.0.2
# via aiohttp
attrs==21.2.0
# via
# aiohttp
# jsonschema
babel==2.9.1
# via flask-babel
@ -39,8 +32,6 @@ celery==5.2.2
# via apache-superset
cffi==1.14.6
# via cryptography
charset-normalizer==2.0.4
# via aiohttp
click==8.0.4
# via
# apache-superset
@ -110,10 +101,6 @@ flask-wtf==0.14.3
# via
# apache-superset
# flask-appbuilder
frozenlist==1.3.0
# via
# aiohttp
# aiosignal
func-timeout==4.3.5
# via apache-superset
geographiclib==1.52
@ -128,14 +115,13 @@ gunicorn==20.1.0
# via apache-superset
hashids==1.3.1
# via apache-superset
holidays==0.14.2
holidays==0.16.0
# via apache-superset
humanize==3.11.0
# via apache-superset
idna==3.2
# via
# email-validator
# yarl
isodate==0.6.0
# via apache-superset
itsdangerous==2.1.1
@ -172,10 +158,6 @@ marshmallow-sqlalchemy==0.23.1
# via flask-appbuilder
msgpack==1.0.2
# via apache-superset
multidict==5.1.0
# via
# aiohttp
# yarl
numpy==1.22.1
# via
# apache-superset
@ -259,7 +241,7 @@ six==1.16.0
# python-dateutil
# sqlalchemy-utils
# wtforms-json
slackclient==2.5.0
slack_sdk==3.18.3
# via apache-superset
sqlalchemy==1.4.36
# via
@ -301,8 +283,6 @@ wtforms==2.3.3
# wtforms-json
wtforms-json==0.3.3
# via apache-superset
yarl==1.6.3
# via aiohttp
# The following packages are considered to be unsafe in a requirements file:
# setuptools

View File

@ -94,7 +94,7 @@ setup(
"graphlib-backport",
"gunicorn>=20.1.0",
"hashids>=1.3.1, <2",
"holidays==0.14.2",
"holidays>=0.16.0, <0.17",
"humanize",
"isodate",
"markdown>=3.0",
@ -114,11 +114,11 @@ setup(
"redis",
"selenium>=3.141.0",
"simplejson>=3.15.0",
"slackclient==2.5.0", # PINNED! slack changes file upload api in the future versions
"slack_sdk>=3.1.1, <4",
"sqlalchemy>=1.4, <2",
"sqlalchemy-utils>=0.38.3, <0.39",
"sqlparse>=0.4.3, <0.5",
"tabulate==0.8.9",
"tabulate>=0.8.9, <0.9",
# needed to support Literal (3.8) and TypeGuard (3.10)
"typing-extensions>=3.10, <4",
"wtforms-json",

View File

@ -22,8 +22,8 @@ from typing import Sequence, Union
import backoff
from flask_babel import gettext as __
from slack import WebClient
from slack.errors import SlackApiError, SlackClientError
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError, SlackClientError
from superset import app
from superset.reports.models import ReportRecipientType

View File

@ -23,9 +23,9 @@ from typing import cast, Optional, Union
import backoff
from flask import current_app
from slack import WebClient
from slack.errors import SlackApiError
from slack.web.slack_response import SlackResponse
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
from slack_sdk.web.slack_response import SlackResponse
# Globals
logger = logging.getLogger("tasks.slack_util")