#!/usr/bin/env python3
"""
Install *appsemble-schemas*.

"""
import json
import re

from setuptools import find_packages
from setuptools import setup


with open('README.md') as f:
    readme = f.read()


with open('package.json') as f:
    pkg = json.load(f)
author, author_email = re.match(r'^(\S+)\s+<(\S+)>', pkg['author']).groups()


setup(
    name='appsemble-schemas',
    version=pkg['version'],
    author=author,
    author_email=author_email,
    license=pkg['license'],
    description=pkg['description'],
    long_description=readme,
    packages=find_packages(),
    package_data={
        'appsemble.schemas': [
            '*.yaml'
        ]
    },
    install_requires=[
        'pyyaml ~= 3.12'
    ]
)
