diff --git a/lib/datasource/index.js b/lib/datasource/index.js index 73bf6d18be79ad0249fa815781baf1b3146ba9ae..69b85c1f8f2f7c27c256aeac17090a6ed0e290ae 100644 --- a/lib/datasource/index.js +++ b/lib/datasource/index.js @@ -63,6 +63,10 @@ const manualSourceUrls = { nvm: { node: 'https://github.com/nodejs/node', }, + pypi: { + mkdocs: 'https://github.com/mkdocs/mkdocs', + pillow: 'https://github.com/python-pillow/Pillow', + }, }; async function getPkgReleases(purlStr, config) { diff --git a/lib/datasource/pypi.js b/lib/datasource/pypi.js index e265b9237d2a8f89dd398aa1919f662064a89aec..470d555d0fcc1a7c5968ef932a2a18eefb8feed0 100644 --- a/lib/datasource/pypi.js +++ b/lib/datasource/pypi.js @@ -78,12 +78,6 @@ async function getDependency(depName, hostUrl, compatibility) { dependency.homepage = dep.info.home_page; } } - const manualRepositories = { - mkdocs: 'https://github.com/mkdocs/mkdocs', - pillow: 'https://github.com/python-pillow/Pillow', - }; - dependency.sourceUrl = - dependency.sourceUrl || manualRepositories[depName.toLowerCase()]; dependency.releases = []; if (dep.releases) { const versions = compatibleVersions(dep.releases, compatibility); diff --git a/test/datasource/__snapshots__/pypi.spec.js.snap b/test/datasource/__snapshots__/pypi.spec.js.snap index dbce0914d64c8d018b0f17af6a3ab23ecc361019..b96bd0c29fb356730db0e8582ffb1f402ada5f26 100644 --- a/test/datasource/__snapshots__/pypi.spec.js.snap +++ b/test/datasource/__snapshots__/pypi.spec.js.snap @@ -112,7 +112,6 @@ Object { "version": "0.31.0", }, ], - "sourceUrl": undefined, } `; @@ -120,7 +119,6 @@ exports[`datasource/pypi getPkgReleases returns non-github home_page 1`] = ` Object { "homepage": "https://microsoft.com", "releases": Array [], - "sourceUrl": undefined, } `;