import os
from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))

with open(os.path.join(here, 'README.rst')) as f:
    README = f.read()

requires = [
    'setuptools',
    'openprocurement.archivarius.core',
]
api_requires = [
    'openprocurement.api',
]
test_requires = requires + api_requires + [
    'webtest',
    'python-coveralls',
    'nose',
    'mock',
    'openprocurement.tender.belowthreshold',
]

entry_points = {
    'openprocurement.api.plugins': [
        'archivarius.tenders = openprocurement.archivarius.tenders:includeme'
    ],
    'openprocurement.archivarius.resources': [
        'tenders = openprocurement.archivarius.tenders.resource:tender_filter'
    ],
}

setup(name='openprocurement.archivarius.tenders',
      version='1.0',
      description='openprocurement.archivarius.tenders',
      long_description=README,
      classifiers=[
          "Framework :: Pylons",
          "License :: OSI Approved :: Apache Software License",
          "Programming Language :: Python",
          "Topic :: Internet :: WWW/HTTP",
          "Topic :: Internet :: WWW/HTTP :: WSGI :: Application"
      ],
      keywords="web services",
      author='Quintagroup, Ltd.',
      author_email='info@quintagroup.com',
      license='Apache License 2.0',
      url='https://github.com/openprocurement/openprocurement.archivarius.tenders',
      packages=find_packages(exclude=['ez_setup']),
      namespace_packages=['openprocurement', 'openprocurement.archivarius'],
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      tests_require=test_requires,
      extras_require={'api': api_requires, 'test': test_requires},
      test_suite="openprocurement.archivarius.tenders.tests.main.suite",
      entry_points=entry_points)
