# -*- coding: utf-8 -*-
from setuptools import setup


with open('user_agents_next/__init__.py') as f:
    lines = [x for x in f if x.startswith('__version__ = ')]
    assert len(lines) == 1
    version = lines[0][len('__version__ = '):].replace("'", '').replace('"', '').strip()

setup(
    name='user-agents-next',
    version=version,
    author='Selwin Ong',
    author_email='selwin.ong@gmail.com',
    packages=['user_agents_next'],
    url='https://github.com/soon/python-user-agents-next',
    license='MIT',
    description='A library to identify devices (phones, tablets) and their capabilities by parsing (browser/HTTP) user agent strings',
    long_description=open('README.rst').read(),
    zip_safe=False,
    include_package_data=True,
    package_data={'': ['README.rst']},
    install_requires=['ua-parser-next>=0.9.3'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ]
)
