From b3fe543967d7ce1cb7c42a89fffa7595978b1f86 Mon Sep 17 00:00:00 2001 From: Archit Kulkarni Date: Tue, 20 Jun 2023 12:57:18 -0700 Subject: [PATCH] Remove `urllib3` dependency Signed-off-by: Archit Kulkarni --- python/ray/autoscaler/_private/autoscaler.py | 6 ------ python/requirements.txt | 1 - python/setup.py | 1 - 3 files changed, 8 deletions(-) diff --git a/python/ray/autoscaler/_private/autoscaler.py b/python/ray/autoscaler/_private/autoscaler.py index 3d787c4956a8c..ba62e5c7d2bab 100644 --- a/python/ray/autoscaler/_private/autoscaler.py +++ b/python/ray/autoscaler/_private/autoscaler.py @@ -78,12 +78,6 @@ ) from ray.core.generated import gcs_service_pb2, gcs_service_pb2_grpc -try: - from urllib3.exceptions import MaxRetryError -except ImportError: - MaxRetryError = None - - logger = logging.getLogger(__name__) # Status of a node e.g. "up-to-date", see ray/autoscaler/tags.py diff --git a/python/requirements.txt b/python/requirements.txt index d976fcd9f0960..16e95ad7d02f5 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -40,7 +40,6 @@ colorful pyyaml rich gpustat>=1.0.0 -urllib3 opentelemetry-sdk fastapi virtualenv<20.21.1,>=20.0.24 diff --git a/python/setup.py b/python/setup.py index 08b4c91fb6dbe..776d09b7b5319 100644 --- a/python/setup.py +++ b/python/setup.py @@ -264,7 +264,6 @@ def get_packages(self): ], "serve": ["uvicorn", "requests", "starlette", "fastapi", "aiorwlock"], "tune": ["pandas", "tensorboardX>=1.9", "requests", pyarrow_dep], - "k8s": ["urllib3"], "observability": [ "opentelemetry-api", "opentelemetry-sdk",