# Path: src/meta.py
# class defaults:
# def print_env(prefix=''):


from distutils.core import setup
from src.meta import (__version__, __copyright__, __license__, authors,
                      appname, appname_low, description, email, pkg_reqs,
                      pkg_docs_reqs, repo_url)
    with open('COPYRIGHT', 'w', encoding='utf8') as f:
        f.write(__copyright__)
        f.write('\n')

except IOError:
    long_description = ''


setup(
    name              = name_clean,
    author            = authors,
    author_email      = email,
    description       = description,
    download_url      = '',
    license           = __license__,
    long_description  = long_description,
    packages          = (appname_low,),
    package_dir       = {appname_low: 'src'},  # so sdist/install can find pkg
    # include templates and static files
    package_data      = { appname_low:
                          ['templates/*', 'templates/*/*', 'static/*'] },
    url               = repo_url,
    version           = __version__,

    #~ scripts           = (join(appname_low, appname_low),),  # cli

    # requirements
    #~ requires          = pkg_reqs,  # distutils, pypi page
    install_requires  = pkg_reqs,
    extras_require    = {

# Path: src/meta.py
# class defaults:
# def print_env(prefix=''):


# Path: setup.py
from distutils.core import setup
from src.meta import (__version__, __copyright__, __license__, authors,
                      appname, appname_low, description, email, pkg_reqs,
                      pkg_docs_reqs, repo_url)

    with open('COPYRIGHT', 'w', encoding='utf8') as f:
        f.write(__copyright__)
        f.write('\n')

except IOError:
    long_description = ''


setup(
    name              = name_clean,
    author            = authors,
    author_email      = email,
    description       = description,
    download_url      = '',
    license           = __license__,
    long_description  = long_description,
    packages          = (appname_low,),
    package_dir       = {appname_low: 'src'},  # so sdist/install can find pkg
    # include templates and static files
    package_data      = { appname_low:
                          ['templates/*', 'templates/*/*', 'static/*'] },
    url               = repo_url,
    version           = __version__,

    #~ scripts           = (join(appname_low, appname_low),),  # cli

    # requirements
    #~ requires          = pkg_reqs,  # distutils, pypi page
    install_requires  = pkg_reqs,
    extras_require    = {

        'docs': pkg_docs_reqs,