summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/version.py
blob: 4967ced0e5507f52f600527fba8a08db3bca44df (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
        # this is the fallback SemVer version picked by setuptools_scm when tag
        # information is not available.
        __version__ = "0.1.dev1"

__all__ = ("__version__",)