You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LocalPackageInfo doesn't find licenses defined with License-Expression.
Description
I noticed this when checking a package playwright where no license was found. On inspection it would appear that the wrong string is used when searching for License-Expression (License_Expression is used). It should be a hyphen as per PEP-639.
Why did i notice it? It appears playwright has an issue in the json metadata on the latest version and the license cannot be found on remote either (which is the fallback) - https://pypi.org/pypi/playwright/1.52.0/json
def get_license(self) -> str | None:
return (
meta_get(self.meta, "License_Expression")
or from_classifiers(self.meta.get_all("Classifier"))
or meta_get(self.meta, "License")
)
Expected Behavior
License-Expression should be found in metadata
Actual Behavior
No License found (this happens for all PEP-639 packages except it is normally silent due to the remote fallback
System Information
environment:Python 3.10.12
Operating System (OS): Ubuntu
OS Version: 22.04
The text was updated successfully, but these errors were encountered:
Issue Details
LocalPackageInfo doesn't find licenses defined with License-Expression.
Description
I noticed this when checking a package
playwright
where no license was found. On inspection it would appear that the wrong string is used when searching for License-Expression (License_Expression is used). It should be a hyphen as per PEP-639.Why did i notice it? It appears playwright has an issue in the json metadata on the latest version and the license cannot be found on remote either (which is the fallback) - https://pypi.org/pypi/playwright/1.52.0/json
Expected Behavior
License-Expression should be found in metadata
Actual Behavior
No License found (this happens for all PEP-639 packages except it is normally silent due to the remote fallback
System Information
environment:Python 3.10.12
The text was updated successfully, but these errors were encountered: