Skip to content

Commit

Permalink
fix: release v0.0.3 and fix version print issue;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Sep 14, 2024
1 parent 8812255 commit 9673d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions ai4ts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"__version__",
]

if sys.stdout.encoding == "utf-8":
if sys.stdout.encoding.lower() == "utf-8":
# for Unix-like systems (macOS and Linux) that can decode chars like ═ and ╝
logo = f"""\u001b[34m
████████╗██╗███╗ ███╗███████╗ ███████╗███████╗██████╗ ██╗███████╗███████╗ █████╗ ██╗
Expand All @@ -22,8 +22,7 @@
██║ ██║██║╚██╔╝██║██╔══╝╚════╝╚════██║██╔══╝ ██╔══██╗██║██╔══╝ ╚════██║ ██╔══██║██║
██║ ██║██║ ╚═╝ ██║███████╗ ███████║███████╗██║ ██║██║███████╗███████║██╗██║ ██║██║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝╚═╝
v{0.1} - building AI for unified time-series analysis, https://time-series.ai
\u001b[0m
ai4ts v{__version__} - building AI for unified time-series analysis, https://time-series.ai \u001b[0m
"""
else:
# for Windows platform
Expand All @@ -33,8 +32,8 @@
██ ██ ██ ████ ██ █████ █████ ███████ █████ ██████ ██ █████ ███████ ███████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ███████ ███████ ███████ ██ ██ ██ ███████ ███████ ██ ██ ██ ██
v{0.1} - building AI for unified time-series analysis, https://time-series.ai
\u001b[0m
ai4ts v{__version__} - building AI for unified time-series analysis, https://time-series.ai \u001b[0m
"""
logo = logo.encode("utf-8").decode(sys.stdout.encoding, errors="ignore")

print(logo.encode("utf8").decode(sys.stdout.encoding, errors="ignore"))
print(logo)
2 changes: 1 addition & 1 deletion ai4ts/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
#
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
__version__ = "0.0.2"
__version__ = "0.0.3"

0 comments on commit 9673d8a

Please sign in to comment.