File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ PROJECT_NAME := connect-extensions
1010# Python settings
1111PYTHON ?= $(shell command -v python || command -v python3)
1212UV ?= 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
1416VIRTUAL_ENV ?= .venv
1517UV_LOCK := uv.lock
@@ -104,7 +106,7 @@ debug-env:
104106# Ensure UV and virtualenv are available for Connect integration tests
105107ensure-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
You can’t perform that action at this time.
0 commit comments