# © 2025 The Radiativity Company
# Licensed under the Apache License, Version 2.0
# See the LICENSE file for details.

from os import environ as envvars
from pathlib import Path
from setuptools import find_packages, setup


setup(
    name='ucon',
    description='a tool for dimensional analysis: a "Unit CONverter"',
    long_description=Path(__file__).absolute().parent.joinpath('README.md').read_text(),
    long_description_content_type='text/markdown',
    use_scm_version={'local_scheme': 'no-local-version'} if envvars.get('LOCAL_VERSION_SCHEME') else True,
    license='Apache-2.0',
    setup_requires=[
        'setuptools_scm==6.3.2'
    ],
    packages=find_packages(exclude=['tests']),
    extras_require={
        'pydantic': ['pydantic>=2.0'],
        'mcp': ['mcp>=1.0'],
    },
    entry_points={
        'console_scripts': [
            'ucon-mcp=ucon.mcp.server:main',
        ],
    },
    author='Emmanuel I. Obi',
    maintainer='Emmanuel I. Obi',
    maintainer_email='withtwoemms@gmail.com',
    url='https://github.com/withtwoemms/ucon',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'Topic :: Software Development :: Build Tools',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        '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',
        'Programming Language :: Python :: 3.14',
    ]
)
