# ----------------------------------------------------------------------------
# Copyright (c) 2016--, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------
import pkg_resources

__version__ = pkg_resources.get_distribution('q2-types').version

# TODO remove all imports and from __all__ because they are available as public
# imports in their respective subpackages. These imports are here so the
# existing tests will pass; they can be removed when the tests are rewritten.

from .feature_table import (FeatureTable, Frequency, RelativeFrequency,
                            PresenceAbsence)
from .distance_matrix import DistanceMatrix
from .sample_data import SampleData, AlphaDiversity
from .tree import Phylogeny, Rooted, Unrooted
from .ordination import PCoAResults
from .feature_data import (FeatureData, Taxonomy, Sequence, PairedEndSequence,
                           AlignedSequence, DNAIterator, PairedDNAIterator)
from .reference_features import ReferenceFeatures, SSU
from .per_sample_sequences import (SequencesWithQuality,
                                   PairedEndSequencesWithQuality)

__all__ = ['DistanceMatrix', 'Phylogeny', 'PCoAResults', 'FeatureTable',
           'Frequency', 'RelativeFrequency', 'PresenceAbsence',
           'SampleData', 'AlphaDiversity', 'FeatureData', 'Taxonomy',
           'Sequence', 'PairedEndSequence', 'AlignedSequence',
           'ReferenceFeatures', 'SSU', 'Rooted', 'Unrooted', 'DNAIterator',
           'PairedDNAIterator', 'SequencesWithQuality',
           'PairedEndSequencesWithQuality']

@@ -338,16 +338,34 @@
 --------
+%0A%0Aimport importlib
 %0Aimport 
@@ -449,245 +449,42 @@
 on%0A%0A
-# TODO remove all imports and from __all__ because they are available as public%0A# imports in their respective subpackages. These imports are here so the%0A# existing tests will pass; they can be removed when the tests are rewritten.%0A%0Afrom 
+%0Aimportlib.import_module('q2_types
 .fea
@@ -497,111 +497,44 @@
 able
- 
+')%0A
 import
- (FeatureTable, Frequency, RelativeFrequency,%0A                            PresenceAbsence)%0Afrom 
+lib.import_module('q2_types
 .dis
@@ -549,134 +549,85 @@
 trix
- 
+')%0A
 import
- DistanceMatrix%0Afrom .sample_data import SampleData, AlphaDiversity%0Afrom 
+lib.import_module('q2_types
 .tree
- 
+')%0A
 import
- Phylogeny, Rooted, Unrooted%0Afrom 
+lib.import_module('q2_types
 .ord
@@ -637,653 +637,151 @@
 tion
- 
+')%0A
 import
- PCoAResults%0Afrom .feature_data import (FeatureData, Taxonomy, Sequence, PairedEndSequence,%0A                           AlignedSequence, DNAIterator, PairedDNAIterator)%0Afrom .reference_features import ReferenceFeatures, SSU%0Afrom .per_sample_sequences import (SequencesWithQuality,%0A                                   PairedEndSequencesWithQuality)%0A%0A__all__ = %5B'DistanceMatrix', 'Phylogeny', 'PCoAResults', 'FeatureTable',%0A           'Frequency', 'RelativeFrequency', 'PresenceAbsence',%0A           'SampleData', 'AlphaDiversity', 'FeatureData', 'Taxonomy',%0A           'Sequence', 'PairedEndSequence', 'AlignedSequence',%0A           'R
+lib.import_module('q2_types.sample_data')%0Aimportlib.import_module('q2_types.feature_data')%0Aimportlib.import_module('q2_types.r
 eference
 Feat
@@ -780,17 +780,18 @@
 ence
-F
+_f
 eatures'
 , 'S
@@ -790,150 +790,63 @@
 res'
-, 'SSU', 'Rooted', 'Unrooted', 'DNAIterator',%0A           'PairedDNAIterator', 'SequencesWithQuality',%0A           'PairedEndSequencesWithQuality'%5D
+)%0Aimportlib.import_module('q2_types.per_sample_sequences')
 %0A

Drop top-level exports