From b2436928b69fd411d36a15edf8c83c2941b148ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C5=91d=20Ill=C3=A9s?= Date: Thu, 11 Sep 2025 17:31:26 +0200 Subject: [PATCH] Fix update_constraints.sh for 'python_version>=' cases 'python_version>=3.10' lines were started to be used in upper-constraints.txt, but update_constraints.sh script expected to use explicit versions in the constraint files and because of this some new-release patches were simply scipped as there were no matches for 'python_version==' in the constraints file. This patch adds the extra check for 'python_version>=' lines and updates them if needed. Change-Id: If770b2e7f2d25495c4b455e40f0d2c04ec7e41f6 --- .../files/release-tools/update_constraints.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/copy-release-tools-scripts/files/release-tools/update_constraints.sh b/roles/copy-release-tools-scripts/files/release-tools/update_constraints.sh index d80ff24a5e..279ac570c1 100755 --- a/roles/copy-release-tools-scripts/files/release-tools/update_constraints.sh +++ b/roles/copy-release-tools-scripts/files/release-tools/update_constraints.sh @@ -120,6 +120,8 @@ else for PYTHON_VERSION in $PYTHON_3_VERSIONS; do sed -e "s/^${dist_name}=.*;python_version=='$PYTHON_VERSION'/$dist_name===$VERSION;python_version=='$PYTHON_VERSION'/" --in-place upper-constraints.txt sed -e "s/^${canonical_name}=.*;python_version=='$PYTHON_VERSION'/$canonical_name===$VERSION;python_version=='$PYTHON_VERSION'/" --in-place upper-constraints.txt + sed -e "s/^${dist_name}=.*;python_version>='$PYTHON_VERSION'/$dist_name===$VERSION;python_version>='$PYTHON_VERSION'/" --in-place upper-constraints.txt + sed -e "s/^${canonical_name}=.*;python_version>='$PYTHON_VERSION'/$canonical_name===$VERSION;python_version>='$PYTHON_VERSION'/" --in-place upper-constraints.txt done # Then only update lines that do not have specific python_versions # specified.