Skip to content

Commit

Permalink
Ignore azure-datalake-store deprecated mod use (#27287)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Oct 27, 2022
1 parent 6b2dc6f commit b757bfa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/in_container/verify_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ class ProviderPackageDetails(NamedTuple):
("'_request_ctx_stack' is deprecated and will be remoevd in Flask 2.3.", "flask_appbuilder"),
("'_request_ctx_stack' is deprecated and will be removed in Flask 2.3.", "flask_appbuilder"),
("'_request_ctx_stack' is deprecated and will be removed in Flask 2.3.", "flask_jwt_extended"),
(
"'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of "
"urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680",
"azure/datalake/store",
),
(
"'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of "
"urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680",
Expand Down Expand Up @@ -264,9 +269,8 @@ class ProviderPackageDetails(NamedTuple):

def filter_known_warnings(warn: warnings.WarningMessage) -> bool:
msg_string = str(warn.message).replace("\n", " ")
for m in KNOWN_DEPRECATED_MESSAGES:
expected_package_string = "/" + m[1] + "/"
if msg_string == m[0] and warn.filename.find(expected_package_string) != -1:
for message, origin in KNOWN_DEPRECATED_MESSAGES:
if msg_string == message and warn.filename.find(f"/{origin}/") != -1:
return False
return True

Expand Down

0 comments on commit b757bfa

Please sign in to comment.