diff --git a/lib/modules/manager/pep621/extract.spec.ts b/lib/modules/manager/pep621/extract.spec.ts index e7147e912b4b72..d86e5d419ad7c1 100644 --- a/lib/modules/manager/pep621/extract.spec.ts +++ b/lib/modules/manager/pep621/extract.spec.ts @@ -134,14 +134,14 @@ describe('modules/manager/pep621/extract', () => { datasource: 'pypi', depType: 'project.optional-dependencies', currentValue: '>12', - depName: 'pytest/pytest', + depName: 'pytest', }, { packageName: 'pytest-mock', datasource: 'pypi', depType: 'project.optional-dependencies', skipReason: 'unspecified-version', - depName: 'pytest/pytest-mock', + depName: 'pytest-mock', }, ]); @@ -154,28 +154,28 @@ describe('modules/manager/pep621/extract', () => { datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', skipReason: 'unspecified-version', - depName: 'test/pdm', + depName: 'pdm', }, { packageName: 'pytest-rerunfailures', datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', currentValue: '>=10.2', - depName: 'test/pytest-rerunfailures', + depName: 'pytest-rerunfailures', }, { packageName: 'tox', datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', skipReason: 'unspecified-version', - depName: 'tox/tox', + depName: 'tox', }, { packageName: 'tox-pdm', datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', currentValue: '>=0.5', - depName: 'tox/tox-pdm', + depName: 'tox-pdm', }, ]); }); @@ -214,7 +214,7 @@ describe('modules/manager/pep621/extract', () => { datasource: 'pypi', depType: 'project.optional-dependencies', currentValue: '>12', - depName: 'pytest/pytest', + depName: 'pytest', registryUrls: [ 'https://private-site.org/pypi/simple', 'https://private.pypi.org/simple', @@ -225,7 +225,7 @@ describe('modules/manager/pep621/extract', () => { datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', currentValue: '>=10.2', - depName: 'test/pytest-rerunfailures', + depName: 'pytest-rerunfailures', registryUrls: [ 'https://private-site.org/pypi/simple', 'https://private.pypi.org/simple', @@ -236,7 +236,7 @@ describe('modules/manager/pep621/extract', () => { datasource: 'pypi', depType: 'tool.pdm.dev-dependencies', currentValue: '>=0.5', - depName: 'tox/tox-pdm', + depName: 'tox-pdm', registryUrls: [ 'https://private-site.org/pypi/simple', 'https://private.pypi.org/simple', diff --git a/lib/modules/manager/pep621/utils.ts b/lib/modules/manager/pep621/utils.ts index d81deb8b987614..13293e38c20453 100644 --- a/lib/modules/manager/pep621/utils.ts +++ b/lib/modules/manager/pep621/utils.ts @@ -87,9 +87,9 @@ export function parseDependencyGroupRecord( } const deps: PackageDependency[] = []; - for (const [groupName, pep508Strings] of Object.entries(records)) { + for (const pep508Strings of Object.values(records)) { for (const dep of parseDependencyList(depType, pep508Strings)) { - deps.push({ ...dep, depName: `${groupName}/${dep.packageName!}` }); + deps.push({ ...dep, depName: dep.packageName! }); } } return deps;