diff --git a/lib/manager/poetry/__snapshots__/extract.spec.ts.snap b/lib/manager/poetry/__snapshots__/extract.spec.ts.snap index 4f7984056b436ccc54443aa7ed5039905a831b75..5197c8135beed63a41ffb2d93bc345b5d7eddcc3 100644 --- a/lib/manager/poetry/__snapshots__/extract.spec.ts.snap +++ b/lib/manager/poetry/__snapshots__/extract.spec.ts.snap @@ -358,9 +358,7 @@ Object { exports[`lib/manager/poetry/extract extractPackageFile() extracts multiple dependencies (with dep = {version = "1.2.3"} case) 1`] = ` Object { - "constraints": Object { - "poetry": "poetry>=1.0 wheel", - }, + "constraints": Object {}, "deps": Array [ Object { "currentValue": "*", diff --git a/lib/manager/poetry/extract.ts b/lib/manager/poetry/extract.ts index c74a695fce11ede553102a8ec3cfa8acb3d566f8..d57ad2c9c5416b0c42e2e274b901b615edee5568 100644 --- a/lib/manager/poetry/extract.ts +++ b/lib/manager/poetry/extract.ts @@ -151,9 +151,7 @@ export async function extractPackageFile( // https://python-poetry.org/docs/pyproject/#poetry-and-pep-517 if ( - pyprojectfile['build-system']?.['build-backend'] === 'poetry.masonry.api' || - pyprojectfile['build-system']?.['build-backend'] === - 'poetry.core.masonry.api' + pyprojectfile['build-system']?.['build-backend'] === 'poetry.masonry.api' ) { constraints.poetry = pyprojectfile['build-system']?.requires.join(' '); }