# -*- coding: utf-8 -*-
"""
Combine and manage DNS blacklists.
"""

import re
from setuptools import find_packages, setup

dependencies = ['click', 'requests', 'logdecorator']

version = re.search(
    '^__version__\s*=\s*"(.*)"',
    open('dnsgate/dnsgate.py').read(),
    re.M
    ).group(1)


#with open("README.rst", "rb") as f:
#    long_descr = f.read().decode("utf-8")


setup(
    name = "dnsgate",
    version = version,
    url = "https://github.com/jakeogh/dnsgate",
    license='PUBLIC DOMAIN',
    author = "jakeogh",
    author_email = "github.com@v6y.net",
    description='Combine and manage DNS blacklists.',
    long_description=__doc__,
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    zip_safe=False,
    platforms='any',
    install_requires=dependencies,
    entry_points={
        'console_scripts': [
            'dnsgate = dnsgate.dnsgate:dnsgate',
        ],
    },
#   long_description = long_descr,
    classifiers=[
        # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
        # 'Development Status :: 1 - Planning',
        # 'Development Status :: 2 - Pre-Alpha',
        # 'Development Status :: 3 - Alpha',
        'Development Status :: 4 - Beta',
        # 'Development Status :: 5 - Production/Stable',
        # 'Development Status :: 6 - Mature',
        # 'Development Status :: 7 - Inactive',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX',
        'Operating System :: MacOS',
        'Operating System :: Unix',
        'Operating System :: Windows',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ]
)

# -*- coding: utf-8 -*-
"""
Combine and manage DNS blacklists.
"""
import sys
if not sys.version_info[0] == 3:
    sys.exit("Sorry, Python 3 is required. Use: \'python3 setup.py install\'")

import re
from setuptools import find_packages, setup

dependencies = ['click', 'requests', 'logdecorator']

version = re.search(
    '^__version__\s*=\s*"(.*)"',
    open('dnsgate/dnsgate.py').read(),
    re.M
    ).group(1)


#with open("README.rst", "rb") as f:
#    long_descr = f.read().decode("utf-8")


setup(
    name = "dnsgate",
    version = version,
    url = "https://github.com/jakeogh/dnsgate",
    license='PUBLIC DOMAIN',
    author = "jakeogh",
    author_email = "github.com@v6y.net",
    description='Combine and manage DNS blacklists.',
    long_description=__doc__,
    packages=find_packages(exclude=['tests']),
    include_package_data=True,
    zip_safe=False,
    platforms='any',
    install_requires=dependencies,
    entry_points={
        'console_scripts': [
            'dnsgate = dnsgate.dnsgate:dnsgate',
        ],
    },
#   long_description = long_descr,
    classifiers=[
        # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
        # 'Development Status :: 1 - Planning',
        # 'Development Status :: 2 - Pre-Alpha',
        # 'Development Status :: 3 - Alpha',
        'Development Status :: 4 - Beta',
        # 'Development Status :: 5 - Production/Stable',
        # 'Development Status :: 6 - Mature',
        # 'Development Status :: 7 - Inactive',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX',
        'Operating System :: MacOS',
        'Operating System :: Unix',
        'Operating System :: Windows',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ]
)

add py3 check