summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/version.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:56 +0000
commitd964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2 (patch)
tree794bc3738a00b5e599f06d1f2f6d79048d87ff8e /src/ansiblelint/version.py
parentInitial commit. (diff)
downloadansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.tar.xz
ansible-lint-d964cec5e6aa807b75c7a4e7cdc5f11e54b2eda2.zip
Adding upstream version 6.13.1.upstream/6.13.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/ansiblelint/version.py')
-rw-r--r--src/ansiblelint/version.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ansiblelint/version.py b/src/ansiblelint/version.py
new file mode 100644
index 0000000..4967ced
--- /dev/null
+++ b/src/ansiblelint/version.py
@@ -0,0 +1,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__",)