Skip to content

Commit 404beb6

Browse files
authored
Ensure the same uv version is being used everywhere for integration tests (#74)
* Ensure the same uv version is being used everywhere for integration tests * Fix UV_VERSION command
1 parent a4446d3 commit 404beb6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PROJECT_NAME := connect-extensions
1010
# Python settings
1111
PYTHON ?= $(shell command -v python || command -v python3)
1212
UV ?= uv
13+
# Read UV version from pyproject.toml with more portable command
14+
UV_VERSION ?= $(shell grep 'required-version' pyproject.toml 2>/dev/null | sed -E 's/.*required-version = "([^"]+)".*/\1/' || echo "0.6.14")
1315
# uv defaults virtual environment to `$VIRTUAL_ENV` if set; otherwise .venv
1416
VIRTUAL_ENV ?= .venv
1517
UV_LOCK := uv.lock
@@ -104,7 +106,7 @@ debug-env:
104106
# Ensure UV and virtualenv are available for Connect integration tests
105107
ensure-uv:
106108
@if ! command -v $(UV) >/dev/null; then \
107-
$(PYTHON) -m ensurepip && $(PYTHON) -m pip install "uv >= 0.4.27"; \
109+
$(PYTHON) -m ensurepip && $(PYTHON) -m pip install "uv == $(UV_VERSION)"; \
108110
fi
109111

110112
echo "=== DEBUG before VENV creation ==="
@@ -130,7 +132,7 @@ ensure-uv:
130132
@$(MAKE) debug-env
131133

132134
echo "Installing UV in virtualenv"; \
133-
$(UV) pip install "uv >= 0.4.27" --quiet; \
135+
$(UV) pip install "uv == $(UV_VERSION)" --quiet; \
134136

135137

136138
# Install dependencies in Docker for Connect integration tests

0 commit comments

Comments
 (0)