Skip to content

Commit c6a64d1

Browse files
authored
Merge pull request #8 from nexB/7-expose-spdx-information
Expose SPDX license info in index.json #7
2 parents cf386c8 + efdb626 commit c6a64d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@ def generate_indexes(output_path):
7474
index = [
7575
{
7676
"license_key": key,
77+
"spdx_license_key": license.spdx_license_key,
78+
"other_spdx_license_keys": license.other_spdx_license_keys,
79+
"is_exception": license.is_exception,
7780
"json": f"{key}.json",
7881
"yml": f"{key}.yml",
7982
"html": f"{key}.html",
8083
"text": f"{key}.LICENSE",
8184
}
82-
for key in licenses.keys()
85+
for key, license in licenses.items()
8386
]
8487
write_file(output_path, "index.json", json.dumps(index))
8588
write_file(output_path, "index.yml", saneyaml.dump(index))

0 commit comments

Comments
 (0)