librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.11k stars 203 forks source link

Update Libraries Pypi parser to handle different "homepage" variations rework #3179

Closed djpowers closed 1 year ago

djpowers commented 1 year ago

This slightly reworks the changes introduced in #3174.

The previous PR does updates the homepage_url value used, but that is not ultimately used to set the Project#homepage value: https://github.com/librariesio/libraries.io/blob/456440d4ece34fdc96965ddaa36da2b9fcdaa36e/app/models/package_manager/pypi/json_api_project.rb#L106

The homepage_url value is only passed into the repo_fallback method, which is used to set the repository_url.

I don't see a need to distinguish between the homepage and homepage_url methods, so this consolidates them.