#!/usr/bin/env python


import os

from setuptools import setup, find_packages


long_description = ""
if os.path.isfile("README.rst"):
    long_description = open("README.rst", "r", encoding="utf-8").read()


setup(
    name="imagequant",
    version="1.0.4",
    description="Image Quantization Library",
    url="https://github.com/wanadev/imagequant-python",
    project_urls={
        "Source Code": "https://github.com/wanadev/imagequant-python",
        "Documentation": "https://github.com/wanadev/imagequant-python#usage",
        "Changelog": "https://github.com/wanadev/imagequant-python#changelog",
        "Issues": "https://github.com/wanadev/imagequant-python/issues",
        "Chat": "https://discord.gg/BmUkEdMuFp",
    },
    license="BSD-3-Clause",
    long_description=long_description,
    keywords="image libimagequant pngquant cffi",
    author="Wanadev",
    author_email="contact@wanadev.fr",
    maintainer="Fabien LOISON",
    packages=find_packages(),
    setup_requires=[
        "cffi>=1.0.0",
    ],
    install_requires=[
        "cffi>=1.0.0",
    ],
    extras_require={
        "dev": [
            "nox",
            "flake8",
            "black",
            "pytest",
        ],
        "pil": [
            "pillow",
        ],
    },
    cffi_modules=[
        "imagequant/libimagequant_build.py:ffibuilder",
    ],
)
