Skip to content

Commit b547360

Browse files
committed
make release tool, compiles list from cc0 marked files
1 parent 5c3f2ac commit b547360

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

make_release.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/python
2+
import csv
3+
import os
4+
import tarfile
5+
6+
RELEASE_PATH = "uixr-assets-cc0-1.0.tar.gz"
7+
8+
with open("Manifests/UIXR.manifest") as f:
9+
uixr_data = csv.DictReader(f)
10+
11+
tar_ball = tarfile.open(RELEASE_PATH, "w:")
12+
13+
for row in uixr_data:
14+
if row.get('license').upper() == 'CC0':
15+
tar_ball.add(os.path.join('../../../Private', row.get('asset')), row.get('asset'))
16+
17+
tar_ball.close()

0 commit comments

Comments
 (0)