diff --git a/lib/manager/poetry/__snapshots__/artifacts.spec.ts.snap b/lib/manager/poetry/__snapshots__/artifacts.spec.ts.snap index 145316fedaef3f88adedcd33afe168c7e7fee276..22a07f24ee014ce9a0a918bc58d0135193722659 100644 --- a/lib/manager/poetry/__snapshots__/artifacts.spec.ts.snap +++ b/lib/manager/poetry/__snapshots__/artifacts.spec.ts.snap @@ -100,7 +100,7 @@ Array [ }, }, Object { - "cmd": "docker run --rm --name=renovate_python --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -w \\"/tmp/github/some/repo\\" renovate/python:2.7.5 bash -l -c \\"pip install 'poetry>=1.0' && poetry update --lock --no-interaction dep1\\"", + "cmd": "docker run --rm --name=renovate_python --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -w \\"/tmp/github/some/repo\\" renovate/python:2.7.5 bash -l -c \\"pip install poetry-core==1.0.0 'poetry>=1.0' && poetry update --lock --no-interaction dep1\\"", "options": Object { "cwd": "/tmp/github/some/repo", "encoding": "utf-8", @@ -135,7 +135,7 @@ Array [ }, }, Object { - "cmd": "docker run --rm --name=renovate_python --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -w \\"/tmp/github/some/repo\\" renovate/python:3.4.2 bash -l -c \\"pip install poetry && poetry update --lock --no-interaction dep1\\"", + "cmd": "docker run --rm --name=renovate_python --label=renovate_child -v \\"/tmp/github/some/repo\\":\\"/tmp/github/some/repo\\" -w \\"/tmp/github/some/repo\\" renovate/python:3.4.2 bash -l -c \\"pip install poetry-core==1.0.0 poetry && poetry update --lock --no-interaction dep1\\"", "options": Object { "cwd": "/tmp/github/some/repo", "encoding": "utf-8", diff --git a/lib/manager/poetry/artifacts.ts b/lib/manager/poetry/artifacts.ts index 9e7b81ee31dfef3f6e09edc53bd13a917fbab5a5..3e2efa11147a92165e8f1a5ace5041b2b5e52fb8 100644 --- a/lib/manager/poetry/artifacts.ts +++ b/lib/manager/poetry/artifacts.ts @@ -121,7 +121,9 @@ export async function updateArtifacts({ } const tagConstraint = getPythonConstraint(existingLockFileContent, config); const poetryRequirement = config.constraints?.poetry || 'poetry'; - const poetryInstall = 'pip install ' + quote(poetryRequirement); + // TODO: Stop pinning poetry-core once https://github.com/python-poetry/poetry/issues/3650 is fixed + const poetryInstall = + 'pip install poetry-core==1.0.0 ' + quote(poetryRequirement); const extraEnv = getSourceCredentialVars( newPackageFileContent, packageFileName