ATLAS-4086: python client fixes - cyclic import for Python 3.6
Signed-off-by: Madhan Neethiraj <madhan@apache.org>
diff --git a/intg/src/main/python/apache_atlas/model/glossary.py b/intg/src/main/python/apache_atlas/model/glossary.py
index 2afc168..d0ea30d 100644
--- a/intg/src/main/python/apache_atlas/model/glossary.py
+++ b/intg/src/main/python/apache_atlas/model/glossary.py
@@ -15,8 +15,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-# This is to avoid the circular dependencies that instance.py and glossary.py has.
-import apache_atlas.model.instance as instance
from apache_atlas.model.misc import AtlasBase, AtlasBaseModelObject
from apache_atlas.utils import type_coerce, type_coerce_dict, type_coerce_list
@@ -33,8 +31,9 @@
self.classifications = attrs.get('classifications')
def type_coerce_attrs(self):
+ # This is to avoid the circular dependencies that instance.py and glossary.py has.
+ import apache_atlas.model.instance as instance
super(AtlasGlossaryBaseObject, self).type_coerce_attrs()
-
self.classifications = type_coerce_list(self.classifications, instance.AtlasClassification)
diff --git a/intg/src/main/python/setup.py b/intg/src/main/python/setup.py
index 59c7327..363b47f 100644
--- a/intg/src/main/python/setup.py
+++ b/intg/src/main/python/setup.py
@@ -28,7 +28,7 @@
setup(
name='apache-atlas',
- version='0.0.4',
+ version='0.0.5',
author="Apache Atlas",
author_email='dev@atlas.apache.org',
description="Apache Atlas Python Client",