import os

from setuptools import find_packages, setup

path_join = os.path.join

_dir = os.path.dirname(os.path.realpath(__file__))

with open(path_join(_dir, "VERSION"), "r") as f:
    VERSION = f.read().strip("\n")

setup(
    name="freddy",
    version=VERSION,
    description="Provides random samples of given json schema",
    long_description_content_type="text/markdown",
    long_description=open(path_join(_dir, "README.md")).read(),
    classifiers=[
        "Programming Language :: Python :: 3.8",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    url="https://github.com/lferran/freddy",
    license="GNU General Public License V3",
    author="Ferran Llamas",
    author_email="llamas.arroniz@gmail.com",
    keywords=[],
    zip_safe=True,
    include_package_data=True,
    packages=find_packages(exclude=["ez_setup"]),
    install_requires=["rstr"],
    extras_require={"test": ["pytest", "jsonschema", "pydantic"]},
)
