summaryrefslogtreecommitdiffstats
path: root/lib/ansiblelint/version.py
blob: 7bbf973edda8bafdbf844977025c280896ebe903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"""Ansible-lint version information."""

try:
    import pkg_resources
except ImportError:
    pass


try:
    __version__ = pkg_resources.get_distribution('ansible-lint').version
except Exception:
    __version__ = 'unknown'