from setuptools import setup, find_packages
import codecs
import os

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

def read(rel_path):
    here = os.path.abspath(os.path.dirname(__file__))
    with codecs.open(os.path.join(here, rel_path), 'r') as fp:
        return fp.read()

def get_version(rel_path):
    for line in read(rel_path).splitlines():
        if line.startswith('__version__'):
            delim = '"' if '"' in line else "'"
            return line.split(delim)[1]
    raise RuntimeError("Unable to find version string.")

setup(
    name='clipShare',
    version=get_version("clipShare/__init__.py"),
    description='Sync clipboard between devices',
    author='Avinash Karhana',
    author_email='avinashkarhana1@gmail.com',
    url='https://github.com/avinashkarhana/clipShare',
    license='LGPLv2.1',
    long_description=long_description,
    long_description_content_type='text/markdown',


    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'flask',
        'Flask-SocketIO',
        'python-socketio',
        'pyclip',
        'pyperclip',
        'pycryptodome',
        'requests',
        'pyngrok',
        'netifaces2',
        'zeroconf'
    ],

    entry_points={
        'console_scripts': [
            'clipShare=clipShare.clipShare:main'
        ]
    },

    classifiers=[
        'Environment :: Console',
        'Environment :: Web Environment',
        'Framework :: Flask',
        'Intended Audience :: End Users/Desktop',
        'License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)',
        'Natural Language :: English',
        'Operating System :: Microsoft :: Windows :: Windows 10',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 3.8',
        'Topic :: Communications',
        'Topic :: Internet',
        'Topic :: Utilities'
    ],

    keywords='clipboardSync clipboard sync share encrypted secure clipShare',
    python_requires='>=3.6'
)
