from setuptools import setup
from setuptools import find_packages

# Load the README file.
with open(file="README.md", mode="r") as readme_handle:
    long_description = readme_handle.read()

with open(file="VERSION", mode="r") as version_file:
    version = version_file.read().strip()

setup(
    # Define the library name, this is what is used along with `pip install`.
    name="mpl_bsic",
    # package_dir={"": "mpl_bsic"},
    # Define the author of the repository.
    author="A. Franceschini",
    # Define the Author's email, so people know who to reach out to.
    author_email="me@franceschiniandrea.com",
    # Define the version of this library.
    # Read this as
    #   - MAJOR VERSION 0
    #   - MINOR VERSION 1
    #   - MAINTENANCE VERSION 0
    version=version,
    # Here is a small description of the library. This appears
    # when someone searches for the library on https://pypi.org/search.
    description="BSIC Plotting Library.",
    # I have a long description but that will just be my README
    # file, note the variable up above where I read the file.
    long_description=long_description,
    # This will specify that the long description is MARKDOWN.
    long_description_content_type="text/markdown",
    # Here is the URL where you can find the code, in this case on GitHub.
    url="https://github.com/NotFrancee/mpl_bsic",
    # These are the dependencies the library needs in order to run.
    install_requires=["matplotlib", "numpy", "cycler", "pandas"],
    # Here are the keywords of my library.
    keywords="BSIC, matplotlib, Bocconi",
    # here are the packages I want "build."
    packages=find_packages(),
    # ORIGINAL
    # packages=find_namespace_packages(where=["mpl_bsic", "mpl_bsic.*"]),
    # # here we specify any package data.
    # package_data={
    #     # And include any files found subdirectory of the "td" package.
    #     "td": ["app/*", "templates/*"],
    # },
    # I also have some package data, like photos and JSON files, so
    # I want to include those as well.
    include_package_data=True,
    # Here I can specify the python version necessary to run this library.
    python_requires=">=3.9",
    # Additional classifiers that give some characteristics about the package.
    # For a complete list go to https://pypi.org/classifiers/.
    classifiers=[
        # I can say what phase of development my library is in.
        "Development Status :: 3 - Alpha",
        # Here I'll add the audience this library is intended for.
        "Intended Audience :: Developers",
        # "Intended Audience :: Science/Research",
        # "Intended Audience :: BSIC Members",
        # Here I'll define the license that guides my library.
        "License :: OSI Approved :: MIT License",
        # Here I'll note that package was written in English.
        "Natural Language :: English",
        # Here I'll note that any operating system can use it.
        "Operating System :: OS Independent",
        # Here I'll specify the version of Python it uses.
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.9",
        # "Programming Language :: Python :: 3.8",
        # Here are the topics that my library covers.
        # "Topic :: Database",
        # "Topic :: Education",
        # "Topic :: Office/Business",
    ],
)
