#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import find_packages
from setuptools import setup

import gapipy

# build the long description from the *.RST files
contributing = open("CONTRIBUTING.rst").read().replace(".. :contributing:", "")
history = open("HISTORY.rst").read().replace(".. :changelog:", "")
readme = open("README.rst").read()

long_description = readme + "\n\n" + contributing + "\n\n" + history

requirements = []
with open("requirements.txt") as reqs:
    lines = reqs.readlines()
    for line in lines:
        if line:
            requirements.append(line.strip("\n"))

setup(
    name="gapipy",
    version=gapipy.__version__,
    description="Python client for the G Adventures REST API",
    long_description=long_description,
    long_description_content_type="text/x-rst",
    author="G Adventures",
    author_email="software@gadventures.com",
    url="https://github.com/gadventures/gapipy",
    packages=find_packages(exclude=("tests",)),
    package_dir={"gapipy": "gapipy"},
    include_package_data=True,
    install_requires=requirements,
    license="MIT",
    zip_safe=False,
    keywords="gapipy",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
    ],
)
