Update SPDX Data to v3.21

This commit is contained in:
Ivan Kravets
2023-06-19 11:38:43 +03:00
parent c0d2abc9a7
commit e48dfbaadc

View File

@ -276,9 +276,9 @@ class ManifestSchema(BaseSchema):
@staticmethod @staticmethod
@memoized(expire="1h") @memoized(expire="1h")
def load_spdx_licenses(): def load_spdx_licenses():
version = "3.20" version = "3.21"
spdx_data_url = ( spdx_data_url = (
"https://raw.githubusercontent.com/spdx/license-list-data/" "https://raw.githubusercontent.com/spdx/license-list-data/"
"v%s/json/licenses.json" % version f"v{version}/json/licenses.json"
) )
return json.loads(fetch_remote_content(spdx_data_url)) return json.loads(fetch_remote_content(spdx_data_url))