Improve the output of tests/stubtest_third_party.py when it fails (#11763)

This commit is contained in:
Alex Waygood
2024-04-14 23:23:25 +01:00
committed by GitHub
parent f4b89f5f86
commit 7c8e82fe48
3 changed files with 32 additions and 7 deletions

View File

@@ -498,6 +498,7 @@ async def determine_action(stub_path: Path, session: aiohttp.ClientSession) -> U
"Release": f"{pypi_info.pypi_root}/{relevant_version}",
"Homepage": project_urls.get("Homepage"),
"Repository": stub_info.upstream_repository,
"Typeshed stubs": f"https://github.com/{TYPESHED_OWNER}/typeshed/tree/main/{stub_info.distribution}",
"Changelog": project_urls.get("Changelog") or project_urls.get("Changes") or project_urls.get("Change Log"),
}
links = {k: v for k, v in maybe_links.items() if v is not None}