diff --git a/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py b/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py index 87dc0e6d5bf30..c6c0d7e6458ec 100644 --- a/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py +++ b/.buildkite/dagster-buildkite/dagster_buildkite/steps/packages.py @@ -393,7 +393,11 @@ def k8s_extra_cmds(version: str, _) -> List[str]: "cli_tests", # test suite prone to hangs on unpinned grpcio version due to https://github.com/grpc/grpc/issues/31885 } ) - else [] + else ( + [AvailablePythonVersion.V3_8] # pendulum 3 not supported on python 3.8 + if tox_factor in {"scheduler_tests", "definitions_tests"} + else [] + ) ) ), ), diff --git a/python_modules/dagster/setup.py b/python_modules/dagster/setup.py index b7519a27cc015..eecb85682a7e8 100644 --- a/python_modules/dagster/setup.py +++ b/python_modules/dagster/setup.py @@ -86,7 +86,8 @@ def get_version() -> str: f"grpcio>={GRPC_VERSION_FLOOR}", f"grpcio-health-checking>={GRPC_VERSION_FLOOR}", "packaging>=20.9", - "pendulum>=0.7.0,<4", + "pendulum>=0.7.0,<4; python_version>='3.9'", + "pendulum>=0.7.0,<3; python_version<'3.9'", # https://github.com/dagster-io/dagster/issues/19500 "protobuf>=3.20.0,<5", # min protobuf version to be compatible with both protobuf 3 and 4 "python-dateutil", "python-dotenv",