old_contents: #!/usr/bin/env python
  # encoding: utf-8
  
  import os
  
  from setuptools import setup
  
  
  def read_file(name):
      filepath = os.path.join(
          os.path.dirname(os.path.realpath(__file__)),
          name
      )
      data = open(filepath)
      try:
          return data.read()
      except IOError:
          print "could not read %r" % name
          data.close()
  
  
  PROJECT = 'moodlefuse'
  VERSION = '0.3.1'
  URL = 'http://github.com/brogand1993/MoodleFUSE'
  AUTHOR = 'Darren Brogan'
  AUTHOR_EMAIL = 'darren.brogan2@mail.dcu.ie'
  DESC = "FUSE filesystem based on moodle implementation"
  LONG_DESC = read_file('README.rst')
  REQUIRES = [
      'requests',
      'fusepy',
      'mechanize',
      'selenium==2.45.0',
      'beautifulsoup4',
      'alembic',
      'sqlalchemy',
      'xvfbwrapper'
  ]
  
  setup(
      name=PROJECT,
      version=VERSION,
      description=DESC,
      long_description=LONG_DESC,
      author=AUTHOR,
      author_email=AUTHOR_EMAIL,
      url=URL,
      license='MIT License',
      package_data={
          'alembic': ['*.mako', 'versions/*']
      },
      packages=[
          'tests',
          'alembic',
          'moodlefuse',
          'tests.data',
          'tests.courses',
          'tests.resources',
          'tests.courses.data',
          'tests.resources.data',
          'moodlefuse.moodle',
          'moodlefuse.models',
          'moodlefuse.filesystem',
          'moodlefuse.models.users',
          'moodlefuse.moodle.forums',
          'moodlefuse.moodle.courses',
          'moodlefuse.moodle.emulator',
          'moodlefuse.moodle.resources',
          'moodlefuse.filesystem.files',
          'moodlefuse.moodle.assignments',
      ],
      include_package_data=True,
      zip_safe=False,
      install_requires=REQUIRES,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Environment :: Console',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Utilities',
          'Programming Language :: Python :: 2.7',
      ],
      entry_points="""
          [console_scripts]
          moodlefuse = moodlefuse.__main__:main
          moodlefuse-configure = moodlefuse.configure:main
      """
  )
  
new_contents: #!/usr/bin/env python
  # encoding: utf-8
  
  import os
  
  from setuptools import setup
  
  
  def read_file(name):
      filepath = os.path.join(
          os.path.dirname(os.path.realpath(__file__)),
          name
      )
      data = open(filepath)
      try:
          return data.read()
      except IOError:
          print "could not read %r" % name
          data.close()
  
  
  PROJECT = 'moodlefuse'
  VERSION = '0.3.1'
  URL = 'http://github.com/brogand1993/MoodleFUSE'
  AUTHOR = 'Darren Brogan'
  AUTHOR_EMAIL = 'darren.brogan2@mail.dcu.ie'
  DESC = "FUSE filesystem based on moodle implementation"
  LONG_DESC = read_file('README.rst')
  REQUIRES = [
      'requests',
      'fusepy',
      'mechanize',
      'selenium==2.45.0',
      'beautifulsoup4',
      'alembic',
      'sqlalchemy',
      'xvfbwrapper'
  ]
  
  setup(
      name=PROJECT,
      version=VERSION,
      description=DESC,
      long_description=LONG_DESC,
      author=AUTHOR,
      author_email=AUTHOR_EMAIL,
      url=URL,
      license='MIT License',
      package_data={
          'alembic': ['versions/*', '*.mako', '*.ini']
      },
      packages=[
          'tests',
          'alembic',
          'moodlefuse',
          'tests.data',
          'tests.courses',
          'tests.resources',
          'tests.courses.data',
          'tests.resources.data',
          'moodlefuse.moodle',
          'moodlefuse.models',
          'moodlefuse.filesystem',
          'moodlefuse.models.users',
          'moodlefuse.moodle.forums',
          'moodlefuse.moodle.courses',
          'moodlefuse.moodle.emulator',
          'moodlefuse.moodle.resources',
          'moodlefuse.filesystem.files',
          'moodlefuse.moodle.assignments',
      ],
      include_package_data=True,
      zip_safe=False,
      install_requires=REQUIRES,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Environment :: Console',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Utilities',
          'Programming Language :: Python :: 2.7',
      ],
      entry_points="""
          [console_scripts]
          moodlefuse = moodlefuse.__main__:main
          moodlefuse-configure = moodlefuse.configure:main
      """
  )
  
subject: Fix first time install when not devloping issue with DB