Skip to content

Commit

Permalink
Omit spec version, add licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 14, 2024
1 parent 6084616 commit 786ebae
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 99 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ static/bower_components/
*.sln
*.pyproj
*.pyc
__pycache__
86 changes: 49 additions & 37 deletions refresh_datajs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,96 +9,108 @@
from typing import List, Dict

license_id_to_name = {
"public-domain": "public domain",
"AFL-3.0": "Academic Free License 3.0",
"AGPL-3.0": "GNU Affero General Public License 3.0",
"Apache": "Apache License",
"Apache-1.0": "Apache License 1.0",
"Apache-2.0": "Apache License 2.0",
"APSL-2.0": "Apple Public Source License 2.0",
"Artistic": "Artistic License",
"Artistic-1.0": "Artistic License 1.0",
"Artistic-2.0": "Artistic License 2.0",
"BSD-2-clause": "BSD 2-clause \"Simplified\" License",
"BSD-3-clause": "BSD 3-clause \"New\" or \"Revised\" License",
"BSD-4-clause": "BSD 4-clause \"Original\" or \"Old\" License",
"ISC": "ISC License",
"CC-BY": "Creative Commons Attribution",
"CC-BY-1.0": "Creative Commons Attribution 1.0",
"CC-BY-2.0": "Creative Commons Attribution 2.0",
"CC-BY-2.5": "Creative Commons Attribution 2.5",
"CC-BY-3.0": "Creative Commons Attribution 3.0",
"CC-BY-4.0": "Creative Commons Attribution 4.0",
"CC-BY-SA": "Creative Commons Attribution Share Alike",
"CC-BY-SA-1.0": "Creative Commons Attribution Share Alike 1.0",
"CC-BY-SA-2.0": "Creative Commons Attribution Share Alike 2.0",
"CC-BY-SA-2.5": "Creative Commons Attribution Share Alike 2.5",
"CC-BY-SA-3.0": "Creative Commons Attribution Share Alike 3.0",
"CC-BY-SA-4.0": "Creative Commons Attribution Share Alike 4.0",
"CC-BY-NC": "Creative Commons Attribution Non Commercial",
"CC-BY-NC-1.0": "Creative Commons Attribution Non Commercial 1.0",
"CC-BY-NC-2.0": "Creative Commons Attribution Non Commercial 2.0",
"CC-BY-NC-2.5": "Creative Commons Attribution Non Commercial 2.5",
"CC-BY-NC-3.0": "Creative Commons Attribution Non Commercial 3.0",
"CC-BY-NC-4.0": "Creative Commons Attribution Non Commercial 4.0",
"CC-BY-NC-ND": "Creative Commons Attribution Non Commercial No Derivatives",
"CC-BY-NC-ND-1.0": "Creative Commons Attribution Non Commercial No Derivatives 1.0",
"CC-BY-NC-ND-2.0": "Creative Commons Attribution Non Commercial No Derivatives 2.0",
"CC-BY-NC-ND-2.5": "Creative Commons Attribution Non Commercial No Derivatives 2.5",
"CC-BY-NC-ND-3.0": "Creative Commons Attribution Non Commercial No Derivatives 3.0",
"CC-BY-NC-ND-4.0": "Creative Commons Attribution Non Commercial No Derivatives 4.0",
"CC-BY-NC-SA": "Creative Commons Attribution Non Commercial Share Alike",
"CC-BY-NC-SA-1.0": "Creative Commons Attribution Non Commercial Share Alike 1.0",
"CC-BY-NC-SA-2.0": "Creative Commons Attribution Non Commercial Share Alike 2.0",
"CC-BY-NC-SA-2.5": "Creative Commons Attribution Non Commercial Share Alike 2.5",
"CC-BY-NC-SA-3.0": "Creative Commons Attribution Non Commercial Share Alike 3.0",
"CC-BY-NC-SA-4.0": "Creative Commons Attribution Non Commercial Share Alike 4.0",
"CC-BY-SA": "Creative Commons Attribution Share Alike",
"CC-BY-SA-1.0": "Creative Commons Attribution Share Alike 1.0",
"CC-BY-SA-2.0": "Creative Commons Attribution Share Alike 2.0",
"CC-BY-SA-2.5": "Creative Commons Attribution Share Alike 2.5",
"CC-BY-SA-3.0": "Creative Commons Attribution Share Alike 3.0",
"CC-BY-SA-4.0": "Creative Commons Attribution Share Alike 4.0",
"CC0": "Creative Commons Zero v1.0 Universal",
"CC-BY-NC-ND": "Creative Commons Attribution Non Commercial No Derivatives",
"CC-BY-NC-ND-1.0": "Creative Commons Attribution Non Commercial No Derivatives 1.0",
"CC-BY-NC-ND-2.0": "Creative Commons Attribution Non Commercial No Derivatives 2.0",
"CC-BY-NC-ND-2.5": "Creative Commons Attribution Non Commercial No Derivatives 2.5",
"CC-BY-NC-ND-3.0": "Creative Commons Attribution Non Commercial No Derivatives 3.0",
"CC-BY-NC-ND-4.0": "Creative Commons Attribution Non Commercial No Derivatives 4.0",
"CC-BY-ND": "Creative Commons Attribution No Derivatives",
"CC-BY-ND-1.0": "Creative Commons Attribution No Derivatives 1.0",
"CC-BY-ND-2.0": "Creative Commons Attribution No Derivatives 2.0",
"CC-BY-ND-2.5": "Creative Commons Attribution No Derivatives 2.5",
"CC-BY-ND-3.0": "Creative Commons Attribution No Derivatives 3.0",
"CC-BY-ND-4.0": "Creative Commons Attribution No Derivatives 4.0",
"CC0": "Creative Commons Zero 1.0 Universal",
"CDDL": "Common Development and Distribution License",
"CPL": "Common Public License",
"EFL-1.0": "Eiffel Forum License v1.0",
"EFL-2.0": "Eiffel Forum License v2.0",
"EFL-1.0": "Eiffel Forum License 1.0",
"EFL-2.0": "Eiffel Forum License 2.0",
"Expat": "MIT License (Expat)",
"GFDL-1.0": "GNU Free Documentation License v1.0",
"GFDL-1.1": "GNU Free Documentation License v1.1",
"GFDL-1.2": "GNU Free Documentation License v1.2",
"GFDL-1.3": "GNU Free Documentation License v1.3",
"MIT": "MIT License (Expat)",
"GPL-1.0": "GNU General Public License 1.0 only",
"GPL-2.0": "GNU General Public License 2.0 only",
"GPL-3.0": "GNU General Public License 3.0 only",
"LGPL-2.0": "GNU Library General Public License 2 only",
"LGPL-2.1": "GNU Library General Public License 2.1 only",
"LGPL-3.0": "GNU Library General Public License 3 only",
"GFDL-1.0": "GNU Free Documentation License 1.0",
"GFDL-1.1": "GNU Free Documentation License 1.1",
"GFDL-1.2": "GNU Free Documentation License 1.2",
"GFDL-1.3": "GNU Free Documentation License 1.3",
"GFDL-NIV-1.0": "GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections v1.0",
"GFDL-NIV-1.1": "GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections v1.1",
"GFDL-NIV-1.2": "GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections v1.2",
"GFDL-NIV-1.3": "GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections v1.3",
"GPL-1.0": "GNU General Public License v1.0 only",
"GPL-2.0": "GNU General Public License v2.0 only",
"GPL-3.0": "GNU General Public License v3.0 only",
"ISC": "ISC License",
"LGPL-2.0": "GNU Library General Public License v2 only",
"LGPL-2.1": "GNU Library General Public License v2.1 only",
"LGPL-3.0": "GNU Library General Public License v3 only",
"LPPL-1.0": "LaTeX Project Public License v1.0",
"LPPL-1.1": "LaTeX Project Public License v1.1",
"LPPL-1.2": "LaTeX Project Public License v1.2",
"LPPL-1.3c": "LaTeX Project Public License v1.3c",
"MIT": "MIT License (Expat)",
"LPPL-1.0": "LaTeX Project Public License 1.0",
"LPPL-1.1": "LaTeX Project Public License 1.1",
"LPPL-1.2": "LaTeX Project Public License 1.2",
"LPPL-1.3c": "LaTeX Project Public License 1.3c",
"MPL-1.0": "Mozilla Public License 1.0",
"MPL-1.1": "Mozilla Public License 1.1",
"MPL-2.0": "Mozilla Public License 2.0",
"Ms-PL": "Microsoft Public License",
"Ms-RL": "Microsoft Reciprocal License",
"Perl": "Artistic License 1.0 (Perl)",
"Python-2.0": "Python License 2.0",
"QPL-1.0": "Q Public License 1.0",
# Waiting for v1.18 "Unlicense": "The Unlicense",
"Unlicense": "The Unlicense",
"W3C": "W3C Software Notice and License (2002-12-31)",
"WTFPL": "Do What The F*ck You Want To Public License",
"Zlib": "zlib License",
"Zope": "Zope Public License",
"open-source": "Other Open Source Initiative (OSI) approved license",
"public-domain": "public domain",
"restricted": "All rights reserved",
"unknown": "License not provided",
"unrestricted": "Not an OSI approved license, but not restricted"
"unrestricted": "Not an OSI approved license, but not restricted",
"unknown": "License not provided"
}

mandatory_fields = [
"spec_version",
"identifier",
"name",
"abstract",
"author",
"version",
"ksp_version",
"license",
"version",
"download"
]

Expand Down
Loading

0 comments on commit 786ebae

Please sign in to comment.