Browse files

Move the RST doc from setup.py to __init__.py

  • Loading branch information...
1 parent 9add301 commit 1574279fc8aaf705101f54fd3dd586f31e8502b8 @joeyespo committed Nov 21, 2012
Showing with 22 additions and 27 deletions.
  1. +21 −2 grip/__init__.py
  2. +1 −25 setup.py
View
23 grip/__init__.py
@@ -1,7 +1,25 @@
"""\
Grip
+----
-Preview your readme files with the Github mockup renderers.
+Render local readme files before sending off to Github.
+
+
+Grip is easy to set up
+``````````````````````
+
+::
+
+ $ pip install grip
+ $ cd myproject
+ $ grip
+ * Running on http://localhost:5000/
+
+
+Links
+`````
+
+* `Website <http://github.com/joeyespo/grip/>`_
"""
import command
@@ -10,5 +28,6 @@
from .watcher import find_readme
__all__ = ['command', 'serve', 'render_content', 'render_page', 'find_readme']
+
__version__ = '0.1.1'
-__description__ = '\n\n'.join(__doc__.split('\n\n')[1:])
+__description__ = '\n\n'.join(__doc__.split('\n\n')[1:]).split('\n\n\n')[0]
View
26 setup.py
@@ -1,27 +1,3 @@
-"""\
-Grip
-----
-
-Render local readme files before sending off to Github.
-
-
-Grip is easy to set up
-``````````````````````
-
-::
-
- $ pip install grip
- $ cd myproject
- $ grip
- * Running on http://localhost:5000/
-
-
-Links
-`````
-
-* `Website <http://github.com/joeyespo/grip/>`_
-"""
-
from setuptools import setup, find_packages
import grip as package
@@ -40,7 +16,7 @@ def read(fname):
license='MIT',
version=package.__version__,
description=package.__description__,
- long_description=__doc__,
+ long_description=package.__doc__,
platforms='any',
packages=find_packages(),
package_data={package.__name__: ['LICENSE', 'static/*', 'templates/*']},

0 comments on commit 1574279

Please sign in to comment.