Skip to content

Commit 6923641

Browse files
authored
PYTHON-5729 Pin setuptools when using older gevent (#2708)
1 parent b60d266 commit 6923641

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.evergreen/run-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ trap "cleanup_tests" SIGINT ERR
3838

3939
# Start the test runner.
4040
echo "Running tests with UV_PYTHON=${UV_PYTHON:-}..."
41+
echo "UV_ARGS=${UV_ARGS}"
4142
uv run ${UV_ARGS} --reinstall-package pymongo .evergreen/scripts/run_tests.py "$@"
4243
echo "Running tests with UV_PYTHON=${UV_PYTHON:-}... done."
4344

.evergreen/scripts/setup_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ def handle_test_env() -> None:
466466
if opts.green_framework:
467467
framework = opts.green_framework or os.environ["GREEN_FRAMEWORK"]
468468
UV_ARGS.append(f"--group {framework}")
469+
if framework == "gevent" and opts.test_min_deps:
470+
# PYTHON-5729. This can be removed when the min supported gevent is moved to 25.9.1.
471+
UV_ARGS.append('--with "setuptools==81.0"')
469472

470473
else:
471474
TEST_ARGS = f"-v --durations=5 {TEST_ARGS}"

0 commit comments

Comments
 (0)