From 81d5de42ecc7d4233e501e36d0fe6d9ec77b0dcc Mon Sep 17 00:00:00 2001 From: sulhicader Date: Thu, 21 Mar 2024 21:50:44 +0530 Subject: [PATCH] Removed importing urllib3 --- py/Makefile | 2 +- py/tests/__main__.py | 3 --- setup.ps1 | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/py/Makefile b/py/Makefile index 9c7b036af8..4e087677cd 100644 --- a/py/Makefile +++ b/py/Makefile @@ -38,7 +38,7 @@ setup-tests: ## Install dependencies for tests only python3 -m venv venv echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py ./venv/bin/python -m pip install --editable h2o_wave - ./venv/bin/pip install httpx urllib3 typing_extensions + ./venv/bin/pip install httpx typing_extensions .PHONY: docs docs: ## Build API docs diff --git a/py/tests/__main__.py b/py/tests/__main__.py index 0337067af0..a87194df45 100644 --- a/py/tests/__main__.py +++ b/py/tests/__main__.py @@ -6,9 +6,6 @@ import os import platform -# HACK: Use urllib3 import side-effect to resolve "ResourceWarning: unclosed transport" in python>=3.9 versions. -import urllib3 - from .test_expando import * from .test_python_server import * from .test_python_server_async import * diff --git a/setup.ps1 b/setup.ps1 index 5b24e5a0c8..c68818b288 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -11,7 +11,7 @@ Set-Location py python -m venv venv .\venv\Scripts\python -m pip install --upgrade pip .\venv\Scripts\python -m pip install --editable h2o_wave -.\venv\Scripts\pip install httpx urllib3 typing_extensions +.\venv\Scripts\pip install httpx typing_extensions echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py if ($LastExitCode -ne 0) { exit $LastExitCode }