<reponame>toastdriven/alligator<filename>alligator/__init__.py
from .constants import WAITING, SUCCESS, FAILED, ALL
from .gator import Gator
from .tasks import Task
from .workers import Worker

__author__ = "<NAME>"
__version__ = (1, 0, 0)
__license__ = "BSD"


def version():
    """
    Returns a human-readable version string.

    For official releases, it will follow a semver style (e.g. ``1.2.7``).
    For dev versions, it will have the semver style first, followed by
    hyphenated qualifiers (e.g. ``1.2.7-dev``).

    Returns a string.
    """
    short = ".".join([str(bit) for bit in __version__[:3]])
    return "-".join([short] + [str(bit) for bit in __version__[3:]])

from .constants import WAITING, SUCCESS, FAILED, ALL
from .gator import Gator
from .tasks import Task
from .workers import Worker

__author__ = "<NAME>"
__version__ = (1, 0, 0)
__license__ = "BSD"


def version():
    """
    Returns a human-readable version string.

    For official releases, it will follow a semver style (e.g. ``1.2.7``).
    For dev versions, it will have the semver style first, followed by
    hyphenated qualifiers (e.g. ``1.2.7-dev``).

    Returns a string.
    """
    short = ".".join([str(bit) for bit in __version__[:3]])
    return "-".join([short] + [str(bit) for bit in __version__[3:]])
Returns a human-readable version string.      For official releases, it will follow a semver style (e.g. ``1.2.7``).     For dev versions, it will have the semver style first, followed by     hyphenated qualifiers (e.g. ``1.2.7-dev``).      Returns a string.