from setuptools import setup, find_packages

setup(
    # packaging information that is likely to be updated between versions
    name='icecake',
    version='0.6.0',
    packages=['icecake'],
    py_modules=['cli', 'templates', 'livejs'],
    entry_points='''
        [console_scripts]
        icecake=icecake.cli:cli
    ''',
    install_requires=[
        'Click',
        'Jinja2',
        'Markdown',
        'Pygments',
        'python-dateutil',
        'watchdog',
        'Werkzeug',
    ],

    # pypy stuff that is not likely to change between versions
    url="https://github.com/cbednarski/icecake",
    author="Chris Bednarski",
    author_email="banzaimonkey@gmail.com",
    description="An easy and cool static site generator",
    license="MIT",
    long_description=open('README.rst').read(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
    ],
    keywords="static site generator builder icecake"
)

from setuptools import setup, find_packages
from codec import open

setup(
    # packaging information that is likely to be updated between versions
    name='icecake',
    version='0.6.0',
    packages=['icecake'],
    py_modules=['cli', 'templates', 'livejs'],
    entry_points='''
        [console_scripts]
        icecake=icecake.cli:cli
    ''',
    install_requires=[
        'Click',
        'Jinja2',
        'Markdown',
        'Pygments',
        'python-dateutil',
        'watchdog',
        'Werkzeug',
    ],

    # pypy stuff that is not likely to change between versions
    url="https://github.com/cbednarski/icecake",
    author="Chris Bednarski",
    author_email="banzaimonkey@gmail.com",
    description="An easy and cool static site generator",
    license="MIT",
    long_description=open('README.rst', encoding="utf-8").read(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
    ],
    keywords="static site generator builder icecake"
)

Fix encoding error preventing install
Fix encoding error preventing install

While running tox the installation of icecake would succeed under Python
2.7.13 but fail under 3.5.2 with an encoding error while trying to read
the long description from README.rst.

py35 inst-nodeps: /icecake/.tox/dist/icecake-0.6.0.zip
ERROR: invocation failed (exit code 1), logfile:
/icecake/.tox/py35/log/py35-16.log
ERROR: actionid: py35
msg: installpkg
cmdargs: ['/icecake/.tox/py35/bin/pip', 'install', '-U', '--no-deps',
'/icecake/.tox/dist/icecake-0.6.0.zip']
env: {'TERM': 'xterm', 'VIRTUAL_ENV': '/icecake/.tox/py35', 'SHLVL':
'1', 'PYENV_HOOK_PATH':
'/.pyenv/pyenv.d:/usr/local/etc/pyenv.d:/etc/pyenv.d:/usr/lib/pyenv/hooks:/.pyenv/plugins/pyenv-virtualenv/etc/pyenv.d',
'HOSTNAME': 'cdbe5b1470a0', 'PYENV_VERSION': '2.7.13:3.5.2',
'PYENV_DIR': '/icecake', 'PWD': '/icecake', 'PYTHONHASHSEED':
'1135274721', 'PATH':
'/icecake/.tox/py35/bin:/.pyenv/versions/2.7.13/bin:/.pyenv/libexec:/.pyenv/plugins/python-build/bin:/.pyenv/plugins/pyenv-virtualenv/bin:/.pyenv/shims:/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'HOME': '/root', 'PYENV_ROOT': '/.pyenv'}

Processing ./.tox/dist/icecake-0.6.0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-x3boup3_-build/setup.py", line 29, in <module>
        long_description=open('README.rst').read(),
      File "/icecake/.tox/py35/lib/python3.5/encodings/ascii.py", line
26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
1462: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-x3boup3_-build/
