old_contents: from setuptools import setup
  import re
  import os
  import requests
  def get_pip_version(pkginfo_url):
      pkginfo = requests.get(pkginfo_url).text
      for record in pkginfo.split('\n'):
          if  record.startswith('Version'):
              current_version = str(record).split(':',1)
              return (current_version[1]).strip()
  
  
  if os.path.isfile('branch_master'):
     current_version = get_pip_version('https://pypi.python.org/pypi?name=taskcat&:action=display_pkginfo')
  else:
     current_version = get_pip_version('https://testpypi.python.org/pypi?name=taskcat&:action=display_pkginfo')
  
  new_version =re.sub('\d$', lambda x: str(int(x.group(0)) + 1), current_version)
  
  setup(
      name='taskcat',
      packages=['taskcat'],
      description='An OpenSource Cloudformation Deployment Framework',
      author='Tony Vattathil, Santiago Cardenas, Shivansh Singh',
      author_email='tonynv@amazon.com, sancard@amazon.com, sshvans@amazon.com',
      url='https://aws-quickstart.github.io/taskcat/',
      version=new_version,
      license='Apache License 2.0',
      download_url='https://github.com/aws-quickstart/taskcat/tarball/master',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: Apache Software License',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Software Development :: Libraries',
  
      ],
  
      keywords=['aws', 'cloudformation', 'cloud', 'cloudformation testing', 'cloudformation deploy', 'taskcat'],
  
      install_requires=['boto3', 'pyfiglet', 'pyyaml', 'tabulate', 'yattag', 'pkg_resources']
  
  )
  
new_contents: from setuptools import setup
  import re
  import os
  import requests
  def get_pip_version(pkginfo_url):
      pkginfo = requests.get(pkginfo_url).text
      for record in pkginfo.split('\n'):
          if  record.startswith('Version'):
              current_version = str(record).split(':',1)
              return (current_version[1]).strip()
  
  
  if os.path.isfile('branch_master'):
     current_version = get_pip_version('https://pypi.python.org/pypi?name=taskcat&:action=display_pkginfo')
  else:
     current_version = get_pip_version('https://testpypi.python.org/pypi?name=taskcat&:action=display_pkginfo')
  
  new_version =re.sub('\d$', lambda x: str(int(x.group(0)) + 1), current_version)
  
  setup(
      name='taskcat',
      packages=['taskcat'],
      description='An OpenSource Cloudformation Deployment Framework',
      author='Tony Vattathil, Santiago Cardenas, Shivansh Singh',
      author_email='tonynv@amazon.com, sancard@amazon.com, sshvans@amazon.com',
      url='https://aws-quickstart.github.io/taskcat/',
      version=new_version,
      license='Apache License 2.0',
      download_url='https://github.com/aws-quickstart/taskcat/tarball/master',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: Apache Software License',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Software Development :: Libraries',
  
      ],
  
      keywords=['aws', 'cloudformation', 'cloud', 'cloudformation testing', 'cloudformation deploy', 'taskcat'],
  
      install_requires=['boto3', 'pyfiglet', 'pyyaml', 'tabulate', 'yattag']
  
  )
  
subject: Remove invalid package from setup.py