"""Setup script for matrix-webcam"""

import platform
import pathlib
from setuptools import setup

# The directory containing this file
HERE = pathlib.Path(__file__).resolve().parent

# The text of the README file is used as a description
README = (HERE / "README.md").read_text()

LICENSE = (HERE / "LICENSE").read_text()

# This call to setup() does all the work
setup(
    name="matrix-webcam",
    version="0.4.2",
    description="Displays your webcam video feed in the console.",
    long_description=README,
    long_description_content_type="text/markdown",
    url="https://github.com/joschuck/matrix-webcam",
    author="Johannes Schuck",
    author_email="jojoschuck@gmail.com",
    license=LICENSE,
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
    ],
    packages=["matrix_webcam"],
    include_package_data=True,
    install_requires=[
        "numpy~=1.20",
        "opencv-contrib-python~=4.5.4",  # pylint goes bananas with 4.6.xxx
        "windows-curses~=2.3; platform_system == 'Windows'",
    ]
    + (
        ["mediapipe-silicon~=0.8"]
        if platform.system() == "Darwin" and platform.machine() == "arm64"
        else ["mediapipe~=0.8"]
    ),
    extras_require={
        "dev": ["pre-commit", "pylint", "black~=22.3.0", "mypy"],
        "deploy": ["wheel", "twine", "build", "setuptools"],
        # python -m build
    },
    keywords="matrix webcam opencv skype",
    entry_points={"console_scripts": ["matrix-webcam=matrix_webcam.__main__:main"]},
)
