<gh_stars>0
"""setup.py."""

from os import getenv

from setuptools import find_packages
from setuptools import setup


try:
    BUILD_WORD_TOKENIZER = int(getenv("BUILD_WORD_TOKENIZER", '1'))
except ValueError:
    raise ValueError("BUILD_WORD_TOKENIZER should be integer")


install_requires = []
if BUILD_WORD_TOKENIZER == 1:
    install_requires.extend(["natto-py", "kytea", "sentencepiece", "SudachiPy"])  # NOQA

else:
    print("Install sentence tokenizer only")


setup(
    name="tiny_tokenizer",
    version="2.1.0",
    description="Tiny Word/Sentence Tokenizer",
    author="himkt",
    author_email="<EMAIL>",
    install_requires=install_requires,
    url="https://github.com/himkt/tiny_tokenizer",
    packages=find_packages(),
)

"""setup.py."""

from os import getenv

from setuptools import find_packages
from setuptools import setup


try:
    BUILD_WORD_TOKENIZER = int(getenv("BUILD_WORD_TOKENIZER", '1'))
except ValueError:
    raise ValueError("BUILD_WORD_TOKENIZER should be integer")


install_requires = []
if BUILD_WORD_TOKENIZER == 1:
    install_requires.extend(["natto-py", "kytea", "sentencepiece", "SudachiPy"])  # NOQA

else:
    print("Install sentence tokenizer only")


setup(
    name="tiny_tokenizer",
    version="2.1.0",
    description="Tiny Word/Sentence Tokenizer",
    author="himkt",
    author_email="<EMAIL>",
    install_requires=install_requires,
    url="https://github.com/himkt/tiny_tokenizer",
    packages=find_packages(),
)
setup.py. # NOQA