# File from polymorph project
# Copyright (C) 2018 Santiago Hernandez Ramos <shramos@protonmail.com>
# For more information about the project: https://github.com/shramos/polymorph

from setuptools import setup, find_packages
import platform

REQUIRES = [
    'scapy',
    'pyshark',
    'dill',
    'hexdump',
    'termcolor',
    'construct',
    'netaddr',
    'prompt-toolkit',
    'texttable',
    'dateutils'
]

if platform.system() == "Linux":
    SCRIPTS = ['bin/polymorph']
    REQUIRES += ['NetfilterQueue']
elif platform.system() == "Windows":
    SCRIPTS = ['bin/polymorph.bat', 'bin/polymorph']
    REQUIRES += ['pydivert']

setup(
    name="polymorph",
    version="2.0.1",
    packages=find_packages('.'),
    scripts=SCRIPTS,
    license="MIT",
    description="A real time network packet manipulation framework",
    platforms=["Linux", "Windows"],
    url="https://github.com/shramos/polymorph",
    author="Santiago Hernandez Ramos",
    author_email="shramos@protonmail.com",
    install_requires=REQUIRES,
    keywords=[
        'network',
        'packet',
        'modification',
        'real-time',
        'real',
        'time',
        'manipulation',
        'modify',
        'on-the-fly',
        'crafter'
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
)
