__init__.py 416 B

123456789101112131415161718
  1. '''
  2. Pepper is a CLI front-end to salt-api
  3. '''
  4. import pkg_resources
  5. from pepper.libpepper import Pepper, PepperException
  6. __all__ = ('__version__', 'Pepper', 'PepperException')
  7. try:
  8. __version__ = pkg_resources.get_distribution('salt_pepper').version
  9. except pkg_resources.DistributionNotFound:
  10. # package is not installed
  11. __version__ = None
  12. # For backwards compatibility
  13. version = __version__
  14. sha = None