# -*- coding: utf-8 -*-

import io
import sys
from setuptools import setup, Extension
from Cython.Build import cythonize

if sys.platform.startswith("win"):
    compile_args = []
    link_args = []
else:
    compile_args = ["-std=c++11"]
    link_args = ["-std=c++11"]

extensions = [
    Extension(
        "mojimoji",
        ["mojimoji.pyx"],
        extra_compile_args=compile_args,
        extra_link_args=link_args,
    )
]

setup(
    name="mojimoji",
    version="0.0.10",
    description="A fast converter between Japanese hankaku and zenkaku characters",
    long_description=io.open("README.rst", encoding="utf-8").read(),
    author="Studio Ousia",
    author_email="ikuya@ousia.jp",
    url="http://github.com/studio-ousia/mojimoji",
    ext_modules=cythonize(extensions),
    keywords=["japanese"],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Natural Language :: Japanese",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
    ],
)
