Commits

Steve Losh  committed 878111c

Add a setup.py

  • Participants
  • Parent commits 506f98a

Comments (0)

Files changed (5)

File README

-JILCROW
-=======
-
-A static site generator, tailored for *my* own needs. (Work in progress.)
-
-Install
--------
-
-    pip install -r requirements.txt
-
-Licensed under the terms of the MIT license (see the LICENSE file).

File README.markdown

+JILCROW
+=======
+
+A static site generator, tailored for *my* own needs. (Work in progress.)
+
+Use It
+------
+
+    mkdir mysite
+    cd mysite
+    mkvirtualenv mysite
+    pip install -e http://bitbucket.org/sjl/jilcrow/#egg=jilcrow
+
+    ... make your folders ...
+
+    jilcrow .
+
+Licensed under the terms of the MIT license (see the LICENSE file).
+#!/usr/bin/env python
+"""
+Static site generator.
+
+Copyright (c) 2009 Liam Cooke
+Licensed under the terms of the MIT license.
+
+"""
+import warnings
+warnings.simplefilter('ignore', DeprecationWarning)
+
+import sys
+
+import jilcrow
+
+
+if __name__ == '__main__':
+    exitstatus = jilcrow.main()
+    sys.exit(exitstatus or 0)

File jilcrow.py

-#!/usr/bin/env python
-"""
-Static site generator.
-
-Copyright (c) 2009 Liam Cooke
-Licensed under the terms of the MIT license.
-
-"""
-import warnings
-warnings.simplefilter('ignore', DeprecationWarning)
-
-import sys
-
-import jilcrow
-
-
-if __name__ == '__main__':
-    exitstatus = jilcrow.main()
-    sys.exit(exitstatus or 0)
+import os
+from setuptools import setup
+
+
+README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README')
+description = 'A small static site generator that uses Jinja templates.'
+
+if os.path.exists(README_PATH):
+    long_description = open(README_PATH).read()
+else:
+    long_description = description
+
+setup(
+    name='jilcrow',
+    version='0.1.0',
+    install_requires=['BeautifulSoup', 'python-dateutil', 'Jinja2', 'Markdown',
+                      'PyRSS2Gen', 'PyYAML'],
+    description=description,
+    long_description=long_description,
+    author='Liam Cooke, Steve Losh',
+    url='http://bitbucket.org/sjl/jilcrow/',
+    packages=['jilcrow'],
+    scripts=['bin/jilcrow'],
+)
+