text: # -*- coding: utf-8 -*-
  #
  # Copyright (C) 2018 CERN.
  #
  # My site is free software; you can redistribute it and/or modify it
  # under the terms of the MIT License; see LICENSE file for more details.
  
  """Invenio digital library framework."""
  
  import os
  
  from setuptools import find_packages, setup
  
  readme = open('README.rst').read()
  
  DATABASE = "postgresql"
  ELASTICSEARCH = "elasticsearch6"
  INVENIO_VERSION = "3.0.0rc1"
  
  tests_require = [
      'check-manifest>=0.35',
      'coverage>=4.4.1',
      'isort>=4.3',
      'mock>=2.0.0',
      'pydocstyle>=2.0.0',
      'pytest-cache>=1.0',
      'pytest-cov>=2.5.1',
      'pytest-invenio>=1.0.0,<1.1.0',
      'pytest-mock>=1.6.0',
      'pytest-pep8>=1.0.6',
      'pytest-random-order>=0.5.4',
      'pytest>=3.3.1',
  ]
  
  extras_require = {
      'docs': [
          'Sphinx>=1.5.1',
      ],
      'tests': tests_require,
  }
  
  extras_require['all'] = []
  for reqs in extras_require.values():
      extras_require['all'].extend(reqs)
  
  setup_requires = [
      'Babel>=2.4.0',
      'pytest-runner>=3.0.0,<5',
  ]
  
  install_requires = [
      'Flask-BabelEx>=0.9.3',
      'Flask-Debugtoolbar>=0.10.1',
      'invenio[{db},{es},base,auth,metadata]~={version}'.format(
          db=DATABASE, es=ELASTICSEARCH, version=INVENIO_VERSION),
  ]
  
  packages = find_packages()
  
  
  # Get the version string. Cannot be done with import!
  g = {}
  with open(os.path.join('my_site', 'version.py'), 'rt') as fp:
      exec(fp.read(), g)
      version = g['__version__']
  
  setup(
      name='my-site',
      version=version,
      description=__doc__,
      long_description=readme,
      keywords='my-site Invenio TODO',
      license='MIT',
      author='CERN',
      author_email='info@inveniosoftware.org',
      url='https://github.com/my-site/my-site',
      packages=packages,
      zip_safe=False,
      include_package_data=True,
      platforms='any',
      entry_points={
          'console_scripts': [
              'my-site = invenio_app.cli:cli',
          ],
          'invenio_base.blueprints': [
              'my_site = my_site.views:blueprint',
          ],
          'invenio_config.module': [
              'my_site = my_site.config',
          ],
          'invenio_i18n.translations': [
              'messages = my_site',
          ]
      },
      extras_require=extras_require,
      install_requires=install_requires,
      setup_requires=setup_requires,
      tests_require=tests_require,
      classifiers=[
          'Environment :: Web Environment',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
          'Development Status :: 3 - Alpha',
      ],
  )
  