text: from setuptools import setup, find_packages
  
  import os
  if os.path.exists("README.txt"):
      readme = open("README.txt")
  else:
      print("Warning: using markdown README")
      readme = open("README.md")
  
  setup(
      name = "mezzanine-pagedown",
      version = "1.0",
      description = "PageDown rich text widget for Mezzanine",
      long_description = readme.read(),
      author = "Ahmad Khayyat",
      author_email = "akhayyat@gmail.com",
      license = "BSD",
      url = "https://bitbucket.org/akhayyat/mezzanine-pagedown",
      setup_requires=("setuptools"),
      install_requires=(
          "setuptools",
          "filebrowser_safe >= 0.2.13",
          "mezzanine >= 1.4.4",
          "markdown",
          "bleach",),
      packages = find_packages(),
      package_data = {
          "mezzanine_pagedown": [
              "templates/mezzanine_pagedown/*.html",
              "static/mezzanine_pagedown/pagedown/Markdown.Converter.js",
              "static/mezzanine_pagedown/pagedown/Markdown.Sanitizer.js",
              "static/mezzanine_pagedown/pagedown/Markdown.Editor.js",
              "static/mezzanine_pagedown/pagedown/wmd-buttons.png",
              "static/mezzanine_pagedown/pagedown/LICENSE.txt",
              "static/mezzanine_pagedown/css/*",
              "static/mezzanine_pagedown/js/*",
          ]
      },
      classifiers=[
          "Development Status :: 4 - Beta",
          "Intended Audience :: Developers",
          "License :: OSI Approved :: BSD License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Programming Language :: JavaScript",
          "Framework :: Django",
      ],
  )
  