old_contents: import ez_setup
  ez_setup.use_setuptools()
  
  from setuptools import setup
  
  # TODO: setup crontab entry on install
  
  setup(
      name='plex-tvst-sync',
      version='0.1.0',
      author='sprt',
      author_email='hellosprt@gmail.com',
      url='https://github.com/sprt/plex-tvst-sync',
      install_requires=[
          'PlexAPI==1.1.0',
          'requests==2.8.1',
      ],
      entry_points={'console_scripts': ['plex-tvst-sync = scrobbler:main']},
  )
  
new_contents: import ez_setup
  ez_setup.use_setuptools()
  
  from distutils.command.install import install
  from setuptools import setup
  from setuptools import Command
  
  
  class CustomInstall(install):
      def _setup_cron(self):
          import crontab
          
          cron = crontab.CronTab(user=True)
          job = cron.new(command='plex-tvst-sync')
          job.setall('@hourly')
          cron.write_to_user(user=True)
      
      def run(self):
          install.run(self)
          self._setup_cron()
  
  
  setup(
      name='plex-tvst-sync',
      version='0.1.0',
      author='sprt',
      author_email='hellosprt@gmail.com',
      url='https://github.com/sprt/plex-tvst-sync',
      cmdclass={'install': CustomInstall},
      setup_requires=[
          'python-crontab==1.9.3',
      ],
      install_requires=[
          'PlexAPI==1.1.0',
          'python-crontab==1.9.3',
          'requests==2.8.1',
      ],
      entry_points={'console_scripts': ['plex-tvst-sync = scrobbler:main']},
  )
  
subject: Add a crontab entry on install