From 4fcb144e7f0e81902c3bde40b9c1decd66b3e9ee Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Fri, 8 Dec 2023 12:58:25 +0100 Subject: [PATCH] Workaround for yaml/pyyaml#601 --- pipeline.Dockerfile | 3 ++- tests/constraints.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/constraints.txt diff --git a/pipeline.Dockerfile b/pipeline.Dockerfile index 91bda14de15..a3f037b1193 100644 --- a/pipeline.Dockerfile +++ b/pipeline.Dockerfile @@ -39,10 +39,11 @@ WORKDIR /kubespray RUN --mount=type=bind,target=./requirements-2.12.txt,src=./requirements-2.12.txt \ --mount=type=bind,target=./tests/requirements-2.12.txt,src=./tests/requirements-2.12.txt \ + --mount=type=bind,target=./tests/constraints.txt,src=./tests/constraints.txt \ --mount=type=bind,target=./roles/kubespray-defaults/defaults/main.yaml,src=./roles/kubespray-defaults/defaults/main.yaml \ update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \ && pip install --no-compile --no-cache-dir pip -U \ - && pip install --no-compile --no-cache-dir -r tests/requirements-2.12.txt \ + && pip install --no-compile --no-cache-dir -r tests/requirements-2.12.txt -c tests/constraints.txt \ && KUBE_VERSION=$(sed -n 's/^kube_version: //p' roles/kubespray-defaults/defaults/main.yaml) \ && curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl -o /usr/local/bin/kubectl \ && echo $(curl -L https://dl.k8s.io/release/$KUBE_VERSION/bin/linux/$(dpkg --print-architecture)/kubectl.sha256) /usr/local/bin/kubectl | sha256sum --check \ diff --git a/tests/constraints.txt b/tests/constraints.txt new file mode 100644 index 00000000000..039eb0db279 --- /dev/null +++ b/tests/constraints.txt @@ -0,0 +1 @@ +cython<3