# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""See LONG_DESC.txt"""

# Set up the version
from pkg_resources import get_distribution, DistributionNotFound

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

try:
    # As long as we're using setuptools/distribute, we need to do this the
    # setuptools way or else pkg_resources will throw up unnecessary and
    # annoying warnings (even though the namespace mechanism will still
    # otherwise work without it).
    __import__('pkg_resources').declare_namespace(__name__)
except ImportError:
    pass

__path__ = __import__('pkgutil').extend_path(__path__, __name__)  # noqa

# END

@@ -88,238 +88,295 @@
 %0A%0A# 
-Set up the version%0Afrom pkg_resources import get_distribution, DistributionNotFound%0A%0Atry:%0A    __version__ = get_distribution(__name__).version%0Aexcept DistributionNotFound:%0A    # package is not installed%0A    __version__ = 'unknown'
+Packages may add whatever they like to this file, but%0A# should keep this content at the top.%0A# ----------------------------------------------------------------------------%0Afrom ._astropy_init import *  # noqa%0A# ----------------------------------------------------------------------------
 %0A%0Atr

Fix version import and test runner