File: version.py

package info (click to toggle)
python-asdf 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,248 kB
  • sloc: python: 13,104; makefile: 125
file content (9 lines) | stat: -rw-r--r-- 225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from pkg_resources import get_distribution, DistributionNotFound

try:
    version = get_distribution('asdf').version
except DistributionNotFound:
    # package is not installed
    version = "unknown"

__all__ = ['version']