__init__.py 363 B

1234567891011
  1. # -*- coding: utf-8 -*-
  2. from pkg_resources import get_distribution, DistributionNotFound
  3. try:
  4. # Change here if project is renamed and does not equal the package name
  5. dist_name = __name__
  6. __version__ = get_distribution(dist_name).version
  7. except DistributionNotFound:
  8. __version__ = 'unknown'
  9. finally:
  10. del get_distribution, DistributionNotFound