diff --git a/pyproject.toml b/pyproject.toml index aead4f628f3..918a3727ef1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/requirements/base.in b/requirements/base.in index d0f71088405..aed60f2032e 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -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 diff --git a/requirements/base.txt b/requirements/base.txt index b9970e40009..88596b13ad9 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,4 +1,4 @@ -# SHA1:85649679306ea016e401f37adfbad832028d2e5f +# SHA1:cc62b2b6658afa9dbb6e81046e1084f15442858a # # This file is autogenerated by pip-compile-multi # To update, run: @@ -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 diff --git a/tests/integration_tests/db_engine_specs/hive_tests.py b/tests/integration_tests/db_engine_specs/hive_tests.py index 7ef4854cda1..734ebca1c1c 100644 --- a/tests/integration_tests/db_engine_specs/hive_tests.py +++ b/tests/integration_tests/db_engine_specs/hive_tests.py @@ -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