# The Okta software accompanied by this notice is provided pursuant to the following terms:
# Copyright © 2025-Present, Okta, Inc.
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
# License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
# coding: utf-8

"""
Okta Admin Management

Allows customers to easily access the Okta Management APIs

The version of the OpenAPI document: 5.1.0
Contact: devex-public@okta.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
"""  # noqa: E501

import os

from setuptools import setup, find_packages  # noqa: H301

# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "okta"
PYTHON_REQUIRES = ">=3.9"
REQUIRES = [
    "aenum >= 3.1.11",
    "aiohttp >= 3.12.14",
    "blinker >= 1.9.0",
    "flatdict >= 4.0.1",
    'jwcrypto >= 1.5.6',
    "pycryptodomex >= 3.23.0",
    "pydantic >= 2.11.3",
    "pydash >= 8.0.5",
    "PyJWT >= 2.10.1",
    "python-dateutil >= 2.9.0.post0",
    "PyYAML >= 6.0.2",
    "requests >= 2.32.3",
    "xmltodict >= 0.14.2",
]


def get_version():
    # Get version number from VERSION file
    import pdb;
    pdb.set_trace()
    with open(os.path.join(os.path.dirname(__file__), "okta", "__init__.py")) \
            as version_file:
        # File has format: __version__ = '{version_number}'
        line = version_file.read().split("=")
        version_number = line[1].strip().replace("'", "")
        return version_number


setup(
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: Python :: 3.13",
        "License :: OSI Approved :: Apache Software License",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    name=NAME,
    version="3.0.0",
    description="Python SDK for the Okta Management API",
    author="Okta, Inc.",
    author_email="developer-community-products@okta.com",
    url="https://github.com/okta/okta-sdk-python",
    keywords=["OpenAPI", "OpenAPI-Generator", "Okta Admin Management"],
    install_requires=REQUIRES,
    packages=find_packages(exclude=["test", "tests"]),
    include_package_data=True,
    license="Apache-2.0",
    long_description_content_type="text/markdown",
    long_description=open("LONG_DESCRIPTION.md").read(),
    test_suite="tests",
    package_data={"okta": ["py.typed"]},
    python_requires=PYTHON_REQUIRES,
)
