import typing
from pathlib import Path

from setuptools import find_packages, setup


# Load version number without importing HABApp
def load_version() -> str:
    version: typing.Dict[str, str] = {}
    with open("src/HABApp/__version__.py") as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() -> typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


__version__ = load_version()

print(f'Version: {__version__}')
print('')

# When we run tox tests we don't have these files available, so we skip them
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
    with readme.open("r", encoding='utf-8') as fh:
        long_description = fh.read()

setup(
    name="HABApp",
    version=__version__,
    author="spaceman_spiff",
    # author_email="",
    description="Easy automation with MQTT and/or openHAB. Create home automation rules in python.",
    keywords=[
        'mqtt',
        'openhab',
        'habapp',
        'home automation'
    ],
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/spacemanspiff2007/HABApp",
    project_urls={
        'Documentation': 'https://habapp.readthedocs.io/',
        'GitHub': 'https://github.com/spacemanspiff2007/HABApp',
    },
    package_dir={'': 'src'},
    packages=find_packages('src', exclude=['tests*']),
    package_data={'HABApp': ['py.typed']},
    install_requires=load_req(),
    python_requires='>=3.8',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Framework :: AsyncIO",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3 :: Only",
        "Topic :: Home Automation"
    ],
    entry_points={
        'console_scripts': [
            'habapp = HABApp.__main__:main'
        ]
    }
)

778dc5b585a969816574c9bed3b8352f75845594
<mask token>


def load_version() ->str:
    version: typing.Dict[str, str] = {}
    with open('src/HABApp/__version__.py') as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() ->typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


<mask token>

<mask token>


def load_version() ->str:
    version: typing.Dict[str, str] = {}
    with open('src/HABApp/__version__.py') as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() ->typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


<mask token>
print(f'Version: {__version__}')
print('')
<mask token>
if readme.is_file():
    with readme.open('r', encoding='utf-8') as fh:
        long_description = fh.read()
setup(name='HABApp', version=__version__, author='spaceman_spiff',
    description=
    'Easy automation with MQTT and/or openHAB. Create home automation rules in python.'
    , keywords=['mqtt', 'openhab', 'habapp', 'home automation'],
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/spacemanspiff2007/HABApp',
    project_urls={'Documentation': 'https://habapp.readthedocs.io/',
    'GitHub': 'https://github.com/spacemanspiff2007/HABApp'}, package_dir={
    '': 'src'}, packages=find_packages('src', exclude=['tests*']),
    package_data={'HABApp': ['py.typed']}, install_requires=load_req(),
    python_requires='>=3.8', classifiers=['Development Status :: 4 - Beta',
    'Framework :: AsyncIO',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python :: 3.8',
    'Programming Language :: Python :: 3.9',
    'Programming Language :: Python :: 3.10',
    'Programming Language :: Python :: 3.11',
    'Programming Language :: Python :: 3 :: Only',
    'Topic :: Home Automation'], entry_points={'console_scripts': [
    'habapp = HABApp.__main__:main']})

<mask token>


def load_version() ->str:
    version: typing.Dict[str, str] = {}
    with open('src/HABApp/__version__.py') as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() ->typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


__version__ = load_version()
print(f'Version: {__version__}')
print('')
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
    with readme.open('r', encoding='utf-8') as fh:
        long_description = fh.read()
setup(name='HABApp', version=__version__, author='spaceman_spiff',
    description=
    'Easy automation with MQTT and/or openHAB. Create home automation rules in python.'
    , keywords=['mqtt', 'openhab', 'habapp', 'home automation'],
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/spacemanspiff2007/HABApp',
    project_urls={'Documentation': 'https://habapp.readthedocs.io/',
    'GitHub': 'https://github.com/spacemanspiff2007/HABApp'}, package_dir={
    '': 'src'}, packages=find_packages('src', exclude=['tests*']),
    package_data={'HABApp': ['py.typed']}, install_requires=load_req(),
    python_requires='>=3.8', classifiers=['Development Status :: 4 - Beta',
    'Framework :: AsyncIO',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python :: 3.8',
    'Programming Language :: Python :: 3.9',
    'Programming Language :: Python :: 3.10',
    'Programming Language :: Python :: 3.11',
    'Programming Language :: Python :: 3 :: Only',
    'Topic :: Home Automation'], entry_points={'console_scripts': [
    'habapp = HABApp.__main__:main']})

import typing
from pathlib import Path
from setuptools import find_packages, setup


def load_version() ->str:
    version: typing.Dict[str, str] = {}
    with open('src/HABApp/__version__.py') as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() ->typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


__version__ = load_version()
print(f'Version: {__version__}')
print('')
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
    with readme.open('r', encoding='utf-8') as fh:
        long_description = fh.read()
setup(name='HABApp', version=__version__, author='spaceman_spiff',
    description=
    'Easy automation with MQTT and/or openHAB. Create home automation rules in python.'
    , keywords=['mqtt', 'openhab', 'habapp', 'home automation'],
    long_description=long_description, long_description_content_type=
    'text/markdown', url='https://github.com/spacemanspiff2007/HABApp',
    project_urls={'Documentation': 'https://habapp.readthedocs.io/',
    'GitHub': 'https://github.com/spacemanspiff2007/HABApp'}, package_dir={
    '': 'src'}, packages=find_packages('src', exclude=['tests*']),
    package_data={'HABApp': ['py.typed']}, install_requires=load_req(),
    python_requires='>=3.8', classifiers=['Development Status :: 4 - Beta',
    'Framework :: AsyncIO',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python :: 3.8',
    'Programming Language :: Python :: 3.9',
    'Programming Language :: Python :: 3.10',
    'Programming Language :: Python :: 3.11',
    'Programming Language :: Python :: 3 :: Only',
    'Topic :: Home Automation'], entry_points={'console_scripts': [
    'habapp = HABApp.__main__:main']})

import typing
from pathlib import Path

from setuptools import find_packages, setup


# Load version number without importing HABApp
def load_version() -> str:
    version: typing.Dict[str, str] = {}
    with open("src/HABApp/__version__.py") as fp:
        exec(fp.read(), version)
    assert version['__version__'], version
    return version['__version__']


def load_req() -> typing.List[str]:
    with open('requirements_setup.txt') as f:
        return f.readlines()


__version__ = load_version()

print(f'Version: {__version__}')
print('')

# When we run tox tests we don't have these files available, so we skip them
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
    with readme.open("r", encoding='utf-8') as fh:
        long_description = fh.read()

setup(
    name="HABApp",
    version=__version__,
    author="spaceman_spiff",
    # author_email="",
    description="Easy automation with MQTT and/or openHAB. Create home automation rules in python.",
    keywords=[
        'mqtt',
        'openhab',
        'habapp',
        'home automation'
    ],
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/spacemanspiff2007/HABApp",
    project_urls={
        'Documentation': 'https://habapp.readthedocs.io/',
        'GitHub': 'https://github.com/spacemanspiff2007/HABApp',
    },
    package_dir={'': 'src'},
    packages=find_packages('src', exclude=['tests*']),
    package_data={'HABApp': ['py.typed']},
    install_requires=load_req(),
    python_requires='>=3.8',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Framework :: AsyncIO",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3 :: Only",
        "Topic :: Home Automation"
    ],
    entry_points={
        'console_scripts': [
            'habapp = HABApp.__main__:main'
        ]
    }
)
