Skip to content
Snippets Groups Projects
Unverified Commit b0856544 authored by Trim21's avatar Trim21 Committed by GitHub
Browse files

fix(pypi): support more project urls (#6420)

parent a3d71598
Branches
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ Object {
"version": "2.2.0",
},
],
"sourceUrl": "https://github.com/nedbat/coveragepy",
"sourceUrl": "https://github.com/mkdocs/mkdocs",
}
`;
......
......@@ -42,7 +42,7 @@ describe('datasource/metadata', () => {
};
const datasource = datasourcePypi.id;
const lookupName = 'coverage';
const lookupName = 'mkdocs';
addMetaData(dep, datasource, lookupName);
expect(dep).toMatchSnapshot();
......
......@@ -60,9 +60,7 @@ const manualSourceUrls = {
node: 'https://github.com/nodejs/node',
},
pypi: {
coverage: 'https://github.com/nedbat/coveragepy/', // bitbucket entry on pypi is wrong
mkdocs: 'https://github.com/mkdocs/mkdocs',
pillow: 'https://github.com/python-pillow/Pillow',
},
};
......
......@@ -89,6 +89,7 @@ async function getDependency(
if (
lower.startsWith('repo') ||
lower === 'code' ||
lower === 'source' ||
github_repo_pattern.exec(projectUrl)
) {
dependency.sourceUrl = projectUrl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment