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: assets store poc #4041

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

feat: assets store poc #4041

wants to merge 2 commits into from

Conversation

larme
Copy link
Member

@larme larme commented Jul 12, 2023

What does this PR address?

Fixes #(issue)

Before submitting:

@larme larme requested a review from a team as a code owner July 12, 2023 15:30
@larme larme requested review from ssheng and removed request for a team July 12, 2023 15:30
@larme larme marked this pull request as draft July 12, 2023 15:30
src/bentoml/assets.py Outdated Show resolved Hide resolved
API_VERSION = "v1"

def convert_tag(tag: t.Union[Tag, str]) -> Tag:
asset_tag = ASSET_PREFIX + str(tag)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also normalise the tag here, strip all space and - to _


tag = Tag.from_taglike(name)
tag = convert_tag(tag)
context = ModelContext(framework_name="asset", framework_versions={"asset": "1.0"})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
context = ModelContext(framework_name="asset", framework_versions={"asset": "1.0"})
context = ModelContext(framework_name="asset", framework_versions={"asset": API_VERSION})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants