Skip to content

Commit

Permalink
make the 1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
psi29a committed Feb 27, 2017
1 parent f1d62e8 commit 37ee397
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ release or re-license their work to a Creative Common License of their choice.

## Available CC licenses

Currently 100% of the assets found in the LE fall under either the CC0 or CC-BY license.
Currently 100% of the assets found in the LE fall under one of the Creative Commons licenses.

As more content creators are contacted, they can pick a CC license that bests suites them.

Expand All @@ -26,10 +26,15 @@ purposes without restriction under copyright or database law.

### CC-BY
CC-BY is a license which only stipulates that you include the original author's name with
the work, including all derived work.
the work.

- CC-BY https://creativecommons.org/licenses/by/4.0/

### CC-BY-NC
CC-BY-NC is the same as CC-BY except that it can't be used for commercial use.

- CC-BY-NC https://creativecommons.org/licenses/by-nc/4.0/

## People you should thank

Alain "Spyder" Brunotte, released over a 1300 assets under the CC0 license. Spyder wrote:
Expand Down
12 changes: 8 additions & 4 deletions make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import tarfile

RELEASE_PATH = "uixr-assets-cc0-1.1.tar"
RELEASE_PATH = "uixr-assets-le-1.2.tar"
ASSET_PATH = "../../../Private"


Expand Down Expand Up @@ -34,7 +34,8 @@ def either(c):
additional_assets = []
print("Gathering assets: ")
for row in uixr_data:
if row.get('license').lower() == 'cc0':
row_license = row.get('license').lower()
if row_license == 'cc0' or row_license == 'cc-by' or row_license == 'cc-by-nc':
sys.stdout.write("\033[K")
sys.stdout.write(next(spinner))
sys.stdout.write(" [{0}]".format(row.get('asset')))
Expand Down Expand Up @@ -85,9 +86,12 @@ def either(c):
f.seek(0) # reset to beginning of csv file
for row in uixr_data:
if row.get('asset').lower() == relative_asset_path.lower():
if row.get('license').lower() == 'cc0':
row_license = row.get('license').lower()
if row_license == 'cc0':
break # good to go, break
elif row.get('license').lower() == 'cc-by':
elif row_license == 'cc-by':
break # good to go, break
elif row_license == 'cc-by-nc':
break # good to go, break
else:
print("WARNING: Non-CC license asset -> {0}".format(relative_asset_path))
Expand Down

0 comments on commit 37ee397

Please sign in to comment.