2020-01-19 22:51:45 +00:00
|
|
|
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
2022-08-16 15:57:36 +00:00
|
|
|
index 1e5f935a..26d1ac6a 100644
|
2020-01-19 22:51:45 +00:00
|
|
|
--- a/platformio/package/manifest/schema.py
|
|
|
|
+++ b/platformio/package/manifest/schema.py
|
2022-08-16 15:57:36 +00:00
|
|
|
@@ -276,9 +276,12 @@ class ManifestSchema(BaseSchema):
|
2020-01-19 22:51:45 +00:00
|
|
|
@staticmethod
|
|
|
|
@memoized(expire="1h")
|
|
|
|
def load_spdx_licenses():
|
2022-08-16 15:57:36 +00:00
|
|
|
- version = "3.18"
|
2021-03-18 09:47:35 +00:00
|
|
|
- spdx_data_url = (
|
|
|
|
- "https://raw.githubusercontent.com/spdx/license-list-data/"
|
|
|
|
- "v%s/json/licenses.json" % version
|
|
|
|
- )
|
2020-09-12 15:27:02 +00:00
|
|
|
- return json.loads(fetch_remote_content(spdx_data_url))
|
2022-08-16 15:57:36 +00:00
|
|
|
+ # version = "3.18"
|
|
|
|
+ # spdx_data_url = (
|
|
|
|
+ # "https://raw.githubusercontent.com/spdx/license-list-data/"
|
|
|
|
+ # "v%s/json/licenses.json" % version
|
|
|
|
+ # )
|
|
|
|
+ # return json.loads(fetch_remote_content(spdx_data_url))
|
2021-11-08 17:29:16 +00:00
|
|
|
+ with open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json") as f:
|
|
|
|
+ spdx = json.load(f)
|
|
|
|
+ return spdx
|