From 737d7d72bf8fb714cb6d03e61dc579c43edf864a Mon Sep 17 00:00:00 2001 From: Evandro Myller Date: Fri, 5 Jun 2026 17:01:41 -0300 Subject: [PATCH] Improve uv compatibility in local envs --- api/Makefile | 2 +- api/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Makefile b/api/Makefile index 6500046e88b0..b755c1df9cbd 100644 --- a/api/Makefile +++ b/api/Makefile @@ -7,7 +7,7 @@ COMPOSE_PROJECT_NAME ?= flagsmith DOTENV_OVERRIDE_FILE ?= .env -UV_VERSION ?= $(shell python -c 'import tomllib; print(tomllib.load(open("pyproject.toml","rb"))["tool"]["uv"]["required-version"].lstrip("="))') +UV_VERSION ?= $(shell python -c 'import tomllib; print(tomllib.load(open("pyproject.toml","rb"))["tool"]["uv"]["required-version"].lstrip("<=>"))') OPENAPI_FORMAT_VERSION ?= 1.23.0 diff --git a/api/pyproject.toml b/api/pyproject.toml index cd954aab08cb..a59c0bdbb1a5 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -158,7 +158,7 @@ flagsmith-private = { index = "flagsmith-pypi-production" } clickhouse-driver = { git = "https://github.com/Flagsmith/clickhouse-driver", branch = "newjson" } [tool.uv] -required-version = "0.11.18" # Ensure this matches the version in .pre-commit-config.yaml +required-version = ">=0.11.18" # Ensure this matches the version in .pre-commit-config.yaml # Pin every resolved package to the exact version that api/poetry.lock used on # main before this migration, so the poetry -> uv switch is dependency-neutral. # Keep this list in sync with poetry.lock until the lockfile churn settles.