Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added new badge model #55

Merged
merged 4 commits into from
Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions amundsen_common/models/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down