
# 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'

# UI
from .plugin_info import *  # noqa


# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import *  # noqa
# ----------------------------------------------------------------------------

# UI
from .plugin_info import *  # noqa

Remove duplicate version and restore test runner
BUG: Remove duplicate version and restore test runner
  
+ # Packages may add whatever they like to this file, but
+ # should keep this content at the top.
+ # ----------------------------------------------------------------------------
+ from ._astropy_init import *  # noqa
+ # ----------------------------------------------------------------------------
- # 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'
  
  # UI
  from .plugin_info import *  # noqa
  
Remove duplicate version and restore test runner
## Code Before:

# 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'

# UI
from .plugin_info import *  # noqa

## Instruction:
Remove duplicate version and restore test runner
## Code After:

# Packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import *  # noqa
# ----------------------------------------------------------------------------

# UI
from .plugin_info import *  # noqa
