Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Commit

Permalink
added zip package script
Browse files Browse the repository at this point in the history
  • Loading branch information
rwngwn authored and goldmann committed Jun 19, 2017
1 parent 640ac3b commit 3490083
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ release: clean
python setup.py register
python setup.py sdist
python setup.py sdist upload

package: clean
python release.py
11 changes: 11 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/python
import os

from zipfile import ZipFile

with ZipFile('cct.zip', 'w') as zf:
zf.write('__main__.py')
for root, directory, files in os.walk('cct'):
for f in files:
arc_file = os.path.join(root, f)
zf.write(arc_file)

0 comments on commit 3490083

Please sign in to comment.