import os
from pathlib import Path
from setuptools import setup

# The directory containing this file
HERE = Path(__file__).parent
README = (HERE / "README.md").read_text()

# Create the cache dir
# The pythonic way is so unnecessarily complicated for two lines of shell...
os.system("mkdir -p ~/.local/share/koneko")
os.system("cp -r ./pics/ ~/.local/share/koneko/")

setup(
    name="koneko",
    version="0.6.1",
    description="Browse pixiv in the terminal",
    long_description=README,
    long_description_content_type="text/markdown",
    url="https://github.com/twenty5151/koneko",
    author="twenty5151",
    license="GPLv3",
    classifiers=[
        "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
        "Programming Language :: Python :: 3",
        "Operating System :: POSIX :: Linux",
        "Operating System :: MacOS",
        "Environment :: Console"
    ],
    packages=["koneko"],
    include_package_data=True,
    install_requires=[
        "funcy~=1.14",
        "docopt~=0.6",
        "pixcat~=0.1",
        "tqdm~=4.4",
        "cytoolz~=0.10",
        "PixivPy~=3.5",
        "blessed~=1.17",
        "colorama~=0.4",
    ],
    extras_requires = ["pytest~=5.4"],
    entry_points={
        "console_scripts": [
            "koneko=koneko.main:main",
        ]
    },
)

