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

Update package version and minor fix for printing release note only when print_msg is true #185

Merged
merged 1 commit into from
Sep 23, 2024
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
2 changes: 1 addition & 1 deletion src/server/package/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ai-edge-model-explorer"
version = "0.1.11"
version = "0.1.12"
authors = [
{ name="Google LLC", email="[email protected]" },
]
Expand Down
5 changes: 3 additions & 2 deletions src/server/package/src/model_explorer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def _check_new_version(print_msg=True):
if parse(installed_version) < parse(repo_version):
check_new_version_resp['version'] = repo_version
if print_msg:

_print_yellow(
f'\n{PACKAGE_NAME} version {repo_version} is available, and you'
f' are using version {installed_version}.'
Expand All @@ -140,10 +139,12 @@ def _check_new_version(print_msg=True):
github_release = _get_release_from_github(repo_version)
releaseUrl = github_release['releaseUrl']
check_new_version_resp['releaseUrl'] = releaseUrl
_print_yellow(f'\nRelease notes: {releaseUrl}')
check_new_version_resp['desktopAppUrl'] = github_release[
'desktopAppUrl'
]

if print_msg:
_print_yellow(f'\nRelease notes: {releaseUrl}')
except:
pass
finally:
Expand Down
Loading