diff options
author | Martin Vilcans <martin@librador.com> | 2014-04-03 00:50:23 +0200 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2014-04-03 00:50:23 +0200 |
commit | 0ee0f40642f4e53058027947c07154056a26ad6d (patch) | |
tree | 3743d1447e166df33dc6b071e00e7036f95b9f7f | |
parent | e4b83cba87fdd077323831d71402a1775b7435e4 (diff) | |
download | screenplain-0ee0f40642f4e53058027947c07154056a26ad6d.tar.gz |
Add setup script
-rw-r--r-- | .gitignore | 4 | ||||
-rwxr-xr-x | bin/screenplain | 3 | ||||
-rwxr-xr-x | setup.py | 23 |
3 files changed, 27 insertions, 3 deletions
@@ -1,2 +1,6 @@ *.pyc *.pyo + +# Generated by setuptools +MANIFEST +dist/ diff --git a/bin/screenplain b/bin/screenplain index ad6a673..e28cb73 100755 --- a/bin/screenplain +++ b/bin/screenplain @@ -1,9 +1,6 @@ #!/usr/bin/env python import sys -from os.path import dirname, join, abspath, pardir if __name__ == '__main__': - p = abspath(join(dirname(__file__), pardir)) - sys.path.append(p) from screenplain.main import main main(sys.argv[1:]) diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..8261a7f --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup( + name='screenplain', + version='0.2', + description='Convert text file to viewable screenplay.', + author='Martin Vilcans', + author_email='screenplain@librador.com', + url='http://www.screenplain.com/', + packages=[ + 'screenplain', + 'screenplain.export', + 'screenplain.parsers', + ], + package_data={ + 'screenplain.export': ['default.css'] + }, + scripts=[ + 'bin/screenplain' + ] +) |