text: # new version to pypi => python setup.py sdist upload
  import os
  from setuptools import setup
  
  try:
      from pypandoc import convert
      read_md = lambda f: convert(f, 'rst')
  except ImportError:
      print("warning: pypandoc module not found, could not convert Markdown to RST")
      read_md = lambda f: open(f, 'r').read()
  
  readme = os.path.join(os.path.dirname(__file__), 'README.md')
  setup(
      name='mintapi',
      description='a screen-scraping API for Mint.com',
      long_description=read_md(readme) if os.path.exists(readme) else '',
      version='1.28',
      packages=['mintapi'],
      license='The MIT License',
      author='Michael Rooney',
      author_email='mrooney.mintapi@rowk.com',
      url='https://github.com/mrooney/mintapi',
      install_requires=['mock', 'requests', 'selenium-requests',
      'xmltodict', 'twilio'],
      entry_points=dict(
          console_scripts=[
              'mintapi = mintapi.api:main',
          ],
      ),
  )
  