<filename>xy/__init__.py
#!/usr/bin/env python

"""Package for XY."""

from pkg_resources import get_distribution, DistributionNotFound

__project__ = 'XY'
__version__ = None  # required for initial installation

CLI = 'xy'

try:
    __version__ = get_distribution(__project__).version  # pylint: disable=E1103
except DistributionNotFound:  # pragma: no cover, manual test
    VERSION = __project__ + '-' + '(local)'
else:  # pragma: no cover, manual test
    VERSION = __project__ + '-' + __version__
