This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 2c62f14 ATLAS-4086: python client fixes - cyclic import for Python 3.6
2c62f14 is described below
commit 2c62f14e1b032f7e60551d405893012db8746601
Author: Verdan Mahmood <[email protected]>
AuthorDate: Fri Mar 12 07:40:27 2021 -0800
ATLAS-4086: python client fixes - cyclic import for Python 3.6
Signed-off-by: Madhan Neethiraj <[email protected]>
---
intg/src/main/python/apache_atlas/model/glossary.py | 5 ++---
intg/src/main/python/setup.py | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
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 @@ class AtlasGlossaryBaseObject(AtlasBaseModelObject):
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 @@ with open("README.md", "r") as fh:
setup(
name='apache-atlas',
- version='0.0.4',
+ version='0.0.5',
author="Apache Atlas",
author_email='[email protected]',
description="Apache Atlas Python Client",