summaryrefslogtreecommitdiffhomepage
path: root/libs/tqdm/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/tqdm/version.py')
-rw-r--r--libs/tqdm/version.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/tqdm/version.py b/libs/tqdm/version.py
new file mode 100644
index 000000000..11cbaea79
--- /dev/null
+++ b/libs/tqdm/version.py
@@ -0,0 +1,9 @@
+"""`tqdm` version detector. Precedence: installed dist, git, 'UNKNOWN'."""
+try:
+ from ._dist_ver import __version__
+except ImportError:
+ try:
+ from setuptools_scm import get_version
+ __version__ = get_version(root='..', relative_to=__file__)
+ except (ImportError, LookupError):
+ __version__ = "UNKNOWN"