old_contents: """ setup script for 'portal' package
  
  for development:
      python setup.py develop
  
  to install:
      python setup.py install
  
  """
  
  from setuptools import setup
  
  project = "portal"
  version_file = open('VERSION')
  
  # maintain long_description as a single long line.
  # workaround for a bug in pkg_info._get_metadata('PKG-INFO')
  long_description =\
  """Alpha version of the TrueNTH Central Services RESTful API, to be used by TrueNTH intervention applications. This API attempts to conform with the HL7 FHIR specification as much as is reasonable.
  """
  
  setup(
      name=project,
      version=version_file.read().strip(),
      url='https://github.com/uwcirg/true_nth_usa_portal_demo',
      description='TrueNTH Central Services',
      long_description=long_description,
      author='University of Washington',
      packages=["portal"],
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'Authomatic>=0.1.0',
          'celery',
          'Flask>=0.10.1',
          'Flask-Babel',
          'Flask-Celery-Helper',
          'Flask-Migrate',
          'Flask-OAuthlib',
          'Flask-SQLAlchemy',
          'Flask-Script',
          'Flask-Swagger',
          'Flask-Testing',
          'Flask-User',
          'Flask-WebTest',
          'jsonschema',
          'nose',
          'oauthlib',
          'psycopg2',
          'python-dateutil',
          'redis',
          'validators',
      ],
      test_suite='tests',
      classifiers=[
          'Environment :: Web Environment',
          'Intended Audience :: Developers',
          'Intended Audience :: Healthcare Industry',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Medical Science Apps',
      ]
  )
  
new_contents: """ setup script for 'portal' package
  
  for development:
      python setup.py develop
  
  to install:
      python setup.py install
  
  """
  
  from setuptools import setup
  
  project = "portal"
  version_file = open('VERSION')
  
  # maintain long_description as a single long line.
  # workaround for a bug in pkg_info._get_metadata('PKG-INFO')
  long_description =\
  """Alpha version of the TrueNTH Central Services RESTful API, to be used by TrueNTH intervention applications. This API attempts to conform with the HL7 FHIR specification as much as is reasonable.
  """
  
  setup(
      name=project,
      version=version_file.read().strip(),
      url='https://github.com/uwcirg/true_nth_usa_portal_demo',
      description='TrueNTH Central Services',
      long_description=long_description,
      author='University of Washington',
      packages=["portal"],
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'Authomatic>=0.1.0',
          'celery',
          'Flask>=0.10.1',
          'Flask-Babel',
          'Flask-Celery-Helper',
          'Flask-Migrate',
          'Flask-OAuthlib',
          'Flask-SQLAlchemy',
          'Flask-Script',
          'Flask-Swagger',
          'Flask-Testing',
          'Flask-User',
          'Flask-WebTest',
          'jsonschema',
          'nose',
          'oauthlib',
          'psycopg2',
          'python-dateutil',
          'redis',
          'swagger_spec_validator',
          'validators',
      ],
      test_suite='tests',
      classifiers=[
          'Environment :: Web Environment',
          'Intended Audience :: Developers',
          'Intended Audience :: Healthcare Industry',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
          'Topic :: Scientific/Engineering :: Medical Science Apps',
      ]
  )
  
subject: Add Swagger spec validator module to setup.py