#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

version = "0.2.1"

if sys.argv[-1] == 'publish':
    try:
        import wheel
    except ImportError:
        raise ImportError("Fix: pip install wheel")
    os.system('python setup.py sdist bdist_wheel upload')
    print("You probably want to also tag the version now:")
    print("  git tag -a %s -m 'version %s'" % (version, version))
    print("  git push --tags")
    sys.exit()


readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')


def get_requirements(filename):
    f = open(filename).read()
    reqs = [
        # loop through list of requirements
        x.strip() for x in f.splitlines()
        # filter out comments and empty lines
        if not x.strip().startswith('#')
    ]
    return reqs


setup(
    name='url2markdown-cli',
    version=version,
    description="""Fetch a url and translate it to markdown in one command.""",
    long_description=readme + '\n\n' + history,
    author='Jeff Triplett',
    author_email='jeff.triplett@gmail.com',
    url='https://github.com/jefftriplett/url2markdown-cli',
    include_package_data=True,
    py_modules=['url2markdown_cli'],
    install_requires=get_requirements('requirements.txt'),
    license="BSD",
    zip_safe=False,
    keywords='url2markdown, url2markdown-cli',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],

    entry_points={
        'console_scripts': [
            'url2markdown = url2markdown_cli:main',
        ]
    },

)

@@ -1867,17 +1867,66 @@
 on :: 3.
-3
+4',%0A        'Programming Language :: Python :: 3.5
 ',%0A     
@@ -1961,25 +1961,25 @@
 Python :: 3.
-4
+6
 ',%0A    %5D,%0A%0A 

Support Python 3.5 and 3.6 and drop 3.3