Source

django-easymarkdown / setup.py

Full commit
from distutils.core import setup
import os,re,sys

def _stripsourcecode(s):
    # replace sourcecode blocks with literal blocks
    return re.sub(r'\.\. sourcecode:: \w+', '::', s.strip())

VERSION='0.2'

setup(
    name='django-easymarkdown',
    description="A MarkdownField for Django",
    author='Ollie Rutherfurd',
    author_email='oliver@rutherfurd.net',
    version=VERSION,
    license='BSD',
    packages=['easymarkdown'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
    ],
    long_description=_stripsourcecode(open('README.rst').read()),
    platforms=['any'],
)