summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/version.py
blob: a65c3cfca811fbf268f3f041f3978d86222fed77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Ansible-lint version information."""
try:
    from ._version import version as __version__
except ImportError:  # pragma: no cover
    try:
        import pkg_resources

        __version__ = pkg_resources.get_distribution("ansible-lint").version
    except Exception:  # pylint: disable=broad-except # noqa: BLE001
        # this is the fallback SemVer version picked by setuptools_scm when tag
        # information is not available.
        __version__ = "0.1.dev1"

__all__ = ("__version__",)