aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2014-04-03 00:50:23 +0200
committerMartin Vilcans <martin@librador.com>2014-04-03 00:50:23 +0200
commit0ee0f40642f4e53058027947c07154056a26ad6d (patch)
tree3743d1447e166df33dc6b071e00e7036f95b9f7f
parente4b83cba87fdd077323831d71402a1775b7435e4 (diff)
downloadscreenplain-0ee0f40642f4e53058027947c07154056a26ad6d.tar.gz
Add setup script
-rw-r--r--.gitignore4
-rwxr-xr-xbin/screenplain3
-rwxr-xr-xsetup.py23
3 files changed, 27 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 52e4e61..2ee284d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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'
+ ]
+)