version.py 333 B

123456789
  1. """`tqdm` version detector. Precedence: installed dist, git, 'UNKNOWN'."""
  2. try:
  3. from ._dist_ver import __version__
  4. except ImportError:
  5. try:
  6. from setuptools_scm import get_version
  7. __version__ = get_version(root='..', relative_to=__file__)
  8. except (ImportError, LookupError):
  9. __version__ = "UNKNOWN"