From 5f6f3dfe2a19cb21a74f6f22c57b5345df175aa3 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 22 Jun 2010 19:35:26 +0200 Subject: Moved description into README --- MANIFEST.in | 2 +- README | 11 +++++++++++ setup.py | 19 +++++-------------- 3 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 README diff --git a/MANIFEST.in b/MANIFEST.in index 8145cc3..34d60c3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,2 @@ -include LICENSE +include LICENSE README recursive-include markupsafe *.c diff --git a/README b/README new file mode 100644 index 0000000..e6c9de0 --- /dev/null +++ b/README @@ -0,0 +1,11 @@ +MarkupSafe +========== + +Implements a unicode subclass that supports HTML strings: + +>>> from markupsafe import Markup, escape +>>> escape("") +Markup(u'<script>alert(document.cookie);</script>') +>>> tmpl = Markup("%s") +>>> tmpl % "Peter > Lustig" +Markup(u'Peter > Lustig') diff --git a/setup.py b/setup.py index fc662fe..29aa203 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,4 @@ -""" -MarkupSafe -========== - -Implements a unicode subclass that supports HTML strings: - ->>> from markupsafe import Markup, escape ->>> escape("") -Markup(u'<script>alert(document.cookie);</script>') ->>> tmpl = Markup("%s") ->>> tmpl % "Peter > Lustig" -Markup(u'Peter > Lustig') -""" +import os import sys from setuptools import setup, Extension, Feature from distutils.command.build_ext import build_ext @@ -57,6 +45,9 @@ class ve_build_ext(build_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', -- cgit v1.2.1