Skip to content

Commit

Permalink
add setup.py and blank requirements.txt + update usage info + fix exi…
Browse files Browse the repository at this point in the history
…t statement
  • Loading branch information
0BuRner committed Jun 28, 2017
1 parent 01051ed commit 380f33d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 4 additions & 2 deletions corona-archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ def _write_data_entry(self, content, offset, filename):
logging.basicConfig(level=logging.WARNING, format='%(asctime)s:%(levelname)-8s %(message)s')

if len(sys.argv) != 4:
print "Usage: corona-archiver.py -p 'input_dir' 'output_file'"
exit(1)
print "Usage: "
print "\tpacking:\tcorona-archiver.py -p 'input_dir' 'output_file'"
print "\tunpacking:\tcorona-archiver.py -u 'input_file' 'output_dir'"
sys.exit(1)

method = sys.argv[1]
input = sys.argv[2]
Expand Down
Empty file added requirements.txt
Empty file.
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from distutils.core import setup
import py2exe

setup(
console=['corona-archiver.py'],
name='CoronaArchiver',
version='1.0',
description='Corona archive file packer/unpacker',
author='0BuRner',
url='https://github.com/0BuRner/corona-archiver'
)

0 comments on commit 380f33d

Please sign in to comment.