Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Moved description into README

  • Loading branch information...
commit 5f6f3dfe2a19cb21a74f6f22c57b5345df175aa3 1 parent 5bda522
Armin Ronacher authored June 22, 2010
2  MANIFEST.in
... ...
@@ -1,2 +1,2 @@
1  
-include LICENSE
  1
+include LICENSE README
2 2
 recursive-include markupsafe *.c
11  README
... ...
@@ -0,0 +1,11 @@
  1
+MarkupSafe
  2
+==========
  3
+
  4
+Implements a unicode subclass that supports HTML strings:
  5
+
  6
+>>> from markupsafe import Markup, escape
  7
+>>> escape("<script>alert(document.cookie);</script>")
  8
+Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
  9
+>>> tmpl = Markup("<em>%s</em>")
  10
+>>> tmpl % "Peter > Lustig"
  11
+Markup(u'<em>Peter &gt; Lustig</em>')
19  setup.py
... ...
@@ -1,16 +1,4 @@
1  
-"""
2  
-MarkupSafe
3  
-==========
4  
-
5  
-Implements a unicode subclass that supports HTML strings:
6  
-
7  
->>> from markupsafe import Markup, escape
8  
->>> escape("<script>alert(document.cookie);</script>")
9  
-Markup(u'&lt;script&gt;alert(document.cookie);&lt;/script&gt;')
10  
->>> tmpl = Markup("<em>%s</em>")
11  
->>> tmpl % "Peter > Lustig"
12  
-Markup(u'<em>Peter &gt; Lustig</em>')
13  
-"""
  1
+import os
14 2
 import sys
15 3
 from setuptools import setup, Extension, Feature
16 4
 from distutils.command.build_ext import build_ext
@@ -57,6 +45,9 @@ def build_extension(self, ext):
57 45
             raise BuildFailed()
58 46
 
59 47
 
  48
+description = open(os.path.join(os.path.dirname(__file__), 'README')).read()
  49
+
  50
+
60 51
 def run_setup(with_binary):
61 52
     features = {}
62 53
     if with_binary:
@@ -69,7 +60,7 @@ def run_setup(with_binary):
69 60
         author='Armin Ronacher',
70 61
         author_email='armin.ronacher@active-4.com',
71 62
         description='Implements a XML/HTML/XHTML Markup safe string for Python',
72  
-        long_description=__doc__,
  63
+        long_description=description,
73 64
         zip_safe=False,
74 65
         classifiers=[
75 66
             'Development Status :: 5 - Production/Stable',

0 notes on commit 5f6f3df

Please sign in to comment.
Something went wrong with that request. Please try again.