# -*- coding: utf-8 -*-
"""
======
stopit
======

Public resources from ``stopit``
"""

from importlib.metadata import version

from .utils import LOG, TimeoutException
from .threadstop import ThreadingTimeout, async_raise, threading_timeoutable
from .signalstop import SignalTimeout, signal_timeoutable

# PEP 396 style version marker
try:
    __version__ = version(__name__)
except:
    LOG.warning("Could not get the package version from importlib.metadata")
    __version__ = 'unknown'

__all__ = (
    'ThreadingTimeout', 'async_raise', 'threading_timeoutable',
    'SignalTimeout', 'signal_timeoutable'
)
