old_contents: '''
      Gmvault: a tool to backup and restore your gmail account.
      Copyright (C) <2011-2012>  <guillaume Aubert (guillaume dot aubert at gmail do com)>
  
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation, either version 3 of the License, or
      (at your option) any later version.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
  '''
  
  import os
  from setuptools import setup, find_packages
  
  #function to find the version in gmv_cmd
  
  def find_version(path):
  
      fd = open(path,"r")
  
      for line in fd:
          index = line.find("GMVAULT_VERSION=\"")
          if index > -1:
              print(line[index+17:-2])
              fd.close()
              return line[index+17:-2]
  
      raise Exception("Cannot find GMVAULT_VERSION in %s\n" % (path))
  
  
  path=os.path.join(os.path.dirname(__file__),'./src/gmv/gmvault_utils.py')
  print("PATH = %s\n" % (path))
  
  version = find_version(os.path.join(os.path.dirname(__file__),'./src/gmv/gmvault_utils.py'))
  
  print("Gmvault version = %s\n" % (version))
  README = os.path.join(os.path.dirname(__file__), './README.md')
  if os.path.exists(README):
  	long_description = open(README).read() + 'nn'
  else:
     long_description = "Gmvault"
  
  setup(name='gmvault',
        version=version,
        description=("Tool to backup and restore your Gmail emails at will. http://www.gmvault.org for more info"),
        long_description=long_description,
        classifiers=[
          "Programming Language :: Python",
          "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
          "Topic :: Communications :: Email",
          "Topic :: Communications :: Email :: Post-Office :: IMAP",
          ],
        keywords='gmail, email, backup, gmail backup, imap',
        author='Guillaume Aubert',
        author_email='guillaume.aubert@gmail.com',
        url='http://www.gmvault.org',
        license='GPLv3',
        packages=['gmv','gmv.conf','gmv.conf.utils'],
        package_dir = {'gmv':'./src/gmv'},
        scripts=['./etc/scripts/gmvault'],
        package_data={'': ['release-note.txt']},
        include_package_data=True,
        #install_requires=['argparse','Logbook==0.3', 'IMAPClient==0.8.1','gdata==2.0.17']
        install_requires=['Logbook==0.3', 'IMAPClient==0.9','gdata==2.0.17']
        )
  
new_contents: '''
      Gmvault: a tool to backup and restore your gmail account.
      Copyright (C) <2011-2012>  <guillaume Aubert (guillaume dot aubert at gmail do com)>
  
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation, either version 3 of the License, or
      (at your option) any later version.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
  '''
  
  import os
  from setuptools import setup, find_packages
  
  #function to find the version in gmv_cmd
  
  def find_version(path):
  
      fd = open(path,"r")
  
      for line in fd:
          index = line.find("GMVAULT_VERSION=\"")
          if index > -1:
              print(line[index+17:-2])
              fd.close()
              return line[index+17:-2]
  
      raise Exception("Cannot find GMVAULT_VERSION in %s\n" % (path))
  
  
  path=os.path.join(os.path.dirname(__file__),'./src/gmv/gmvault_utils.py')
  print("PATH = %s\n" % (path))
  
  version = find_version(os.path.join(os.path.dirname(__file__),'./src/gmv/gmvault_utils.py'))
  
  print("Gmvault version = %s\n" % (version))
  README = os.path.join(os.path.dirname(__file__), './README.md')
  if os.path.exists(README):
  	long_description = open(README).read() + 'nn'
  else:
     long_description = "Gmvault"
  
  setup(name='gmvault',
        version=version,
        description=("Tool to backup and restore your Gmail emails at will. http://www.gmvault.org for more info"),
        long_description=long_description,
        classifiers=[
          "Programming Language :: Python",
          "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
          "Topic :: Communications :: Email",
          "Topic :: Communications :: Email :: Post-Office :: IMAP",
          ],
        keywords='gmail, email, backup, gmail backup, imap',
        author='Guillaume Aubert',
        author_email='guillaume.aubert@gmail.com',
        url='http://www.gmvault.org',
        license='GPLv3',
        packages=['gmv','gmv.conf','gmv.conf.utils'],
        package_dir = {'gmv':'./src/gmv'},
        scripts=['./etc/scripts/gmvault'],
        package_data={'': ['release-note.txt']},
        include_package_data=True,
        install_requires=['argparse', 'Logbook==0.3', 'IMAPClient==0.9','gdata==2.0.17']
        )
  
subject: add argparse in setup.py requirements