# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from codecs import open
from os import path

from setuptools import find_packages, setup

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

# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
    long_description = f.read()

setup(
    name="landoapi",
    version="0.2.0",
    description="Turn Phabricator revisions into Mercurial commits.",
    long_description=long_description,
    url="https://github.com/mozilla-conduit/lando-api",
    author="Mozilla",
    author_email="dev-version-control@lists.mozilla.org",
    license="MPL 2.0",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Build Tools",
        "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
    ],
    keywords="mozilla commits development conduit",
    packages=find_packages(exclude=["docs", "tests"]),
    package_data={"landoapi": ["spec/swagger.yml"]},
    install_requires=[],
    extras_require={},
    entry_points={"console_scripts": ["lando-cli = landoapi.cli:cli"]},
)
