text: import sys
  import os
  
  from setuptools import setup, find_packages
  from setuptools.command.test import test as TestCommand
  
  from markdown_checklist import (__version__ as VERSION, __author__ as AUTHOR,
          __license__ as LICENSE, __doc__ as DESC)
  
  
  META = {
      'name': 'markdown-checklist',
      'url': 'https://github.com/FND/markdown-checklist',
      'version': VERSION,
      'description': 'Python Markdown extension for task lists with checkboxes',
      'long_description': DESC.strip(),
      'long_description_content_type': 'text/markdown',
      'license': LICENSE,
      'author': AUTHOR,
      'author_email': '',
      'maintainer': AUTHOR,
      'packages': find_packages(exclude=['test']),
      'platforms': 'Posix; MacOS X; Windows',
      'include_package_data': True,
      'zip_safe': False,
      'install_requires': ['markdown'],
      'extras_require': {
          'testing': ['pytest'],
          'coverage': ['figleaf', 'coverage']
      }
  }
  
  
  # entry point for tests (required because `coverage` fails to invoke `py.test`
  # in Travis CI's virtualenv)
  
  class PyTest(TestCommand):
  
      def finalize_options(self):
          TestCommand.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import pytest
          errno = pytest.main(self.test_args)
          sys.exit(errno)
  
  META['cmdclass'] = { 'test': PyTest }
  
  
  if __name__ == '__main__':
      setup(**META)
  