From 09897d9828e87ff2eb372b06a35684e197613165 Mon Sep 17 00:00:00 2001 From: Allison Suarez Miranda <22477579+allisonsuarez@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:25:32 -0700 Subject: [PATCH] feat: added new badge model (#55) * added new badge model Signed-off-by: Allison Suarez Miranda * changed type to category Signed-off-by: Allison Suarez Miranda * bumped version and updated fields Signed-off-by: Allison Suarez Miranda * forgot the patch Signed-off-by: Allison Suarez Miranda --- amundsen_common/models/table.py | 13 +++++++++++++ setup.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/amundsen_common/models/table.py b/amundsen_common/models/table.py index 5c6b36f..592c728 100644 --- a/amundsen_common/models/table.py +++ b/amundsen_common/models/table.py @@ -33,6 +33,19 @@ class Meta: register_as_scheme = True +@attr.s(auto_attribs=True, kw_only=True) +class Badge: + badge_name: str = attr.ib() + category: str = attr.ib() + badge_type: str = attr.ib() + + +class BadgeSchema(AttrsSchema): + class Meta: + target = Badge + register_as_scheme = True + + @attr.s(auto_attribs=True, kw_only=True) class Watermark: watermark_type: Optional[str] = None diff --git a/setup.py b/setup.py index 0b95675..acb1d39 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='amundsen-common', - version='0.3.6', + version='0.4.0', description='Common code library for Amundsen', long_description=open('README.md').read(), long_description_content_type='text/markdown',