Skip to content

Commit

Permalink
chore(deps): cap async_timeout<5.0.0 (apache#31170)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Nov 26, 2024
1 parent 09802ac commit 529aed5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ development = [
"docker",
"flask-testing",
"freezegun",
"greenlet>=2.0.2",
# playwright requires greenlet==3.0.3
# submitted a PR to relax deps in 11/2024
# https://github.com/microsoft/playwright-python/pull/2669
"greenlet==3.0.3",
"grpcio>=1.55.3",
"openapi-spec-validator",
"parameterized",
Expand Down
4 changes: 4 additions & 0 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
urllib3>=1.26.18
werkzeug>=3.0.1
numexpr>=2.9.0

# 5.0.0 has a sensitive deprecation used in other libs
# -> https://github.com/aio-libs/async-timeout/blob/master/CHANGES.rst#500-2024-10-31
async_timeout>=4.0.0,<5.0.0
8 changes: 5 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SHA1:85649679306ea016e401f37adfbad832028d2e5f
# SHA1:cc62b2b6658afa9dbb6e81046e1084f15442858a
#
# This file is autogenerated by pip-compile-multi
# To update, run:
Expand All @@ -15,8 +15,10 @@ apispec[yaml]==6.3.0
# via flask-appbuilder
apsw==3.46.0.0
# via shillelagh
async-timeout==5.0.1
# via redis
async-timeout==4.0.3
# via
# -r requirements/base.in
# redis
attrs==24.2.0
# via
# cattrs
Expand Down
3 changes: 3 additions & 0 deletions tests/integration_tests/db_engine_specs/hive_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ def test_df_to_sql_if_exists_fail_with_schema(mock_g):

@mock.patch("superset.db_engine_specs.hive.g", spec={})
@mock.patch("superset.db_engine_specs.hive.upload_to_s3")
@unittest.skipUnless(
SupersetTestCase.is_module_installed("boto3"), "boto3 not installed"
)
def test_df_to_sql_if_exists_replace(mock_upload_to_s3, mock_g):
config = app.config.copy()
app.config["CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC"]: lambda *args: "" # noqa: F722
Expand Down

0 comments on commit 529aed5

Please sign in to comment.