File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ async def get_pypi_data_from_purl(
9191 homepage_url = info .get ("home_page" )
9292 project_urls = info .get ("project_urls" ) or {}
9393 code_view_url = get_pypi_codeview_url (project_urls )
94+ vcs_url = None
95+ if code_view_url :
96+ vcs_url = code_view_url .rstrip ("/" )
97+ if not vcs_url .endswith (".git" ):
98+ vcs_url = vcs_url + ".git"
9499 bug_tracking_url = get_pypi_bugtracker_url (project_urls )
95100 python_version = get_python_version_from_env_tag (python_version = environment .python_version )
96101 valid_distribution_urls = []
@@ -197,6 +202,7 @@ def remove_credentials_from_url(url: str):
197202 api_data_url = remove_credentials_from_url (api_url ),
198203 bug_tracking_url = bug_tracking_url ,
199204 code_view_url = code_view_url ,
205+ vcs_url = vcs_url ,
200206 license_expression = info .get ("license_expression" ),
201207 declared_license = get_declared_license (info ),
202208 download_url = remove_credentials_from_url (dist_url ),
You can’t perform that action at this time.
0 commit comments