from setuptools import setup

def get_version(name):
    import os.path
    path = os.path.join(name, '_version')
    if not os.path.exists(path):
        return "0.0.0"
    with open(path) as f:
        return f.read().strip()

setup(
    name='lambda-packager',
    version=get_version('lambda_packager'),
    description='Package up Lambda code like SAM, with some extras',
    packages=["lambda_packager"],
    package_data={
        "lambda_packager": ["Makefile", "_version"]
    },
    entry_points={
        'console_scripts': [
            'lambda-packager = lambda_packager.__main__:main'
        ],
    },
    install_requires=[
        "pyyaml",
    ],
    author='Ben Kehoe',
    author_email='bkehoe@irobot.com',
    project_urls={
        "Source code": "https://github.com/iRobotCorporation/lambda-packager",
    },
    license='Apache Software License 2.0',
    classifiers=(
        'Development Status :: 2 - Beta',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'License :: OSI Approved :: Apache Software License',
    ),
    keywords='aws lambda cloudformation',
)