Skip to content

Commit

Permalink
Update package version and minor fix for printing release note only w…
Browse files Browse the repository at this point in the history
…hen pring_msg is true
  • Loading branch information
jinjingforever committed Sep 23, 2024
1 parent aa81ad7 commit db530a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit db530a5

Please sign in to comment.