Add Creative Commons 4.0 licenses [#955]
authorDpg <doubleplusgood23@gmail.com>
Wed, 23 May 2018 14:59:38 +0000 (00:59 +1000)
committerBen Sturmfels <ben@sturm.com.au>
Wed, 23 May 2018 15:04:48 +0000 (01:04 +1000)
Add CC version 4.0 licenses to SORTED_LICENSES.

mediagoblin/tools/licenses.py

index a964980e8928946313265086b3612977abfb636e..2aff7f20c2f59024ba3481f8924f0a914bf0c355 100644 (file)
@@ -20,28 +20,45 @@ License = namedtuple("License", ["abbreviation", "name", "uri"])
 
 SORTED_LICENSES = [
     License("All rights reserved", "No license specified", ""),
+    License("CC BY 4.0", "Creative Commons Attribution 4.0 International",
+            "https://creativecommons.org/licenses/by/4.0/"),
+    License("CC BY-SA 4.0",
+            "Creative Commons Attribution-ShareAlike 4.0 International",
+            "https://creativecommons.org/licenses/by-sa/4.0/"),
+    License("CC BY-ND 4.0",
+            "Creative Commons Attribution-NoDerivs 4.0 International",
+            "https://creativecommons.org/licenses/by-nd/4.0/"),
+    License("CC BY-NC 4.0",
+            "Creative Commons Attribution-NonCommercial 4.0 International",
+            "https://creativecommons.org/licenses/by-nc/4.0/"),
+    License("CC BY-NC-SA 4.0",
+            "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",
+            "https://creativecommons.org/licenses/by-nc-sa/4.0/"),
+    License("CC BY-NC-ND 4.0",
+            "Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International",
+            "https://creativecommons.org/licenses/by-nc-nd/4.0/"),
     License("CC BY 3.0", "Creative Commons Attribution Unported 3.0",
-           "http://creativecommons.org/licenses/by/3.0/"),
+           "https://creativecommons.org/licenses/by/3.0/"),
     License("CC BY-SA 3.0",
-           "Creative Commons Attribution-ShareAlike Unported 3.0",
-           "http://creativecommons.org/licenses/by-sa/3.0/"),
+           "Creative Commons Attribution-ShareAlike 3.0 Unported",
+           "https://creativecommons.org/licenses/by-sa/3.0/"),
     License("CC BY-ND 3.0",
            "Creative Commons Attribution-NoDerivs 3.0 Unported",
-           "http://creativecommons.org/licenses/by-nd/3.0/"),
+           "https://creativecommons.org/licenses/by-nd/3.0/"),
     License("CC BY-NC 3.0",
-          "Creative Commons Attribution-NonCommercial Unported 3.0",
-          "http://creativecommons.org/licenses/by-nc/3.0/"),
+          "Creative Commons Attribution-NonCommercial 3.0 Unported",
+          "https://creativecommons.org/licenses/by-nc/3.0/"),
     License("CC BY-NC-SA 3.0",
            "Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported",
-           "http://creativecommons.org/licenses/by-nc-sa/3.0/"),
+           "https://creativecommons.org/licenses/by-nc-sa/3.0/"),
     License("CC BY-NC-ND 3.0",
            "Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported",
-           "http://creativecommons.org/licenses/by-nc-nd/3.0/"),
+           "https://creativecommons.org/licenses/by-nc-nd/3.0/"),
     License("CC0 1.0",
            "Creative Commons CC0 1.0 Universal",
-           "http://creativecommons.org/publicdomain/zero/1.0/"),
+           "https://creativecommons.org/publicdomain/zero/1.0/"),
     License("Public Domain","Public Domain",
-           "http://creativecommons.org/publicdomain/mark/1.0/"),
+           "https://creativecommons.org/publicdomain/mark/1.0/"),
     ]
 
 # dict {uri: License,...} to enable fast license lookup by uri. Ideally,