Permalink
Browse files

Moved description into README

  • Loading branch information...
1 parent 5bda522 commit 5f6f3dfe2a19cb21a74f6f22c57b5345df175aa3 @mitsuhiko mitsuhiko committed Jun 22, 2010
Showing with 17 additions and 15 deletions.
  1. +1 −1 MANIFEST.in
  2. +11 −0 README
  3. +5 −14 setup.py
View
@@ -1,2 +1,2 @@
-include LICENSE
+include LICENSE README
recursive-include markupsafe *.c
View
@@ -0,0 +1,11 @@
+MarkupSafe
+==========
+
+Implements a unicode subclass that supports HTML strings:
+
+>>> from markupsafe import Markup, escape
+>>> escape("<script>alert(document.cookie);</script>")
+Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
+>>> tmpl = Markup("<em>%s</em>")
+>>> tmpl % "Peter > Lustig"
+Markup(u'<em>Peter &gt; Lustig</em>')
View
@@ -1,16 +1,4 @@
-"""
-MarkupSafe
-==========
-
-Implements a unicode subclass that supports HTML strings:
-
->>> from markupsafe import Markup, escape
->>> escape("<script>alert(document.cookie);</script>")
-Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
->>> tmpl = Markup("<em>%s</em>")
->>> tmpl % "Peter > Lustig"
-Markup(u'<em>Peter &gt; Lustig</em>')
-"""
+import os
import sys
from setuptools import setup, Extension, Feature
from distutils.command.build_ext import build_ext
@@ -57,6 +45,9 @@ def build_extension(self, ext):
raise BuildFailed()
+description = open(os.path.join(os.path.dirname(__file__), 'README')).read()
+
+
def run_setup(with_binary):
features = {}
if with_binary:
@@ -69,7 +60,7 @@ def run_setup(with_binary):
author='Armin Ronacher',
author_email='armin.ronacher@active-4.com',
description='Implements a XML/HTML/XHTML Markup safe string for Python',
- long_description=__doc__,
+ long_description=description,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',

0 comments on commit 5f6f3df

Please sign in to comment.