"""
Copyright &copy; 2026 NetApp Inc. All rights reserved.

This module defines how the netapp_ontap library gets built/installed. Build the
package by running "python3 setup.py sdist bdist_wheel"
"""

import os
import setuptools
from pathlib import Path

# Read the content of README.md
this_directory = Path(__file__).parent
long_description = (this_directory / "netapp_ontap" / "README.md").read_text(
    encoding="utf-8"
)

setuptools.setup(
    name=os.getenv("PACKAGE_NAME", "netapp-ontap"),
    version="9.18.1.0",
    author="NetApp",
    author_email="ng-ontap-rest-python-lib@netapp.com",
    description="A library for working with ONTAP's REST APIs simply in Python",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://www.netapp.com/developer/",
    project_urls={
        "Documentation": "https://library.netapp.com/ecmdocs/ECMLP3364865/html/index.html",
    },
    keywords="NetApp ONTAP REST API development",
    packages=setuptools.find_packages(),
    package_data={
        "netapp_ontap": ["py.typed", "README.md"],
    },
    classifiers=[
        "Programming Language :: Python :: 3.10",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
    ],
    install_requires=[
        "marshmallow>=3.21.3,<4.0.0",
        "requests>=2.32.4,<3.0.0",
        "requests-toolbelt>=1.0.0,<2.0.0",
        "urllib3>=1.26.7,<3.0.0",
        "certifi>2022.12.7",
        "apipkg>=3.0.2,<4.0.0",
    ],
    python_requires=">=3.10",
    include_package_data=True,
)
