Skip to content

Commit

Permalink
fix: release v0.0.2 to fix logo decoding problem on windows;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Sep 13, 2024
1 parent ec46301 commit 8812255
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions ai4ts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,36 @@
# Created by Wenjie Du <[email protected]>
# License: Apache-2.0

import sys

from .version import __version__

__all__ = [
"__version__",
]

print(
rf"""
if sys.stdout.encoding == "utf-8":
# for Unix-like systems (macOS and Linux) that can decode chars like ═ and ╝
logo = f"""\u001b[34m
████████╗██╗███╗ ███╗███████╗ ███████╗███████╗██████╗ ██╗███████╗███████╗ █████╗ ██╗
╚══██╔══╝██║████╗ ████║██╔════╝ ██╔════╝██╔════╝██╔══██╗██║██╔════╝██╔════╝ ██╔══██╗██║
██║ ██║██╔████╔██║█████╗█████╗███████╗█████╗ ██████╔╝██║█████╗ ███████╗ ███████║██║
██║ ██║██║╚██╔╝██║██╔══╝╚════╝╚════██║██╔══╝ ██╔══██╗██║██╔══╝ ╚════██║ ██╔══██║██║
██║ ██║██║ ╚═╝ ██║███████╗ ███████║███████╗██║ ██║██║███████╗███████║██╗██║ ██║██║
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝╚═╝
v{__version__} - building AI for unified time-series analysis, https://time-series.ai
╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝╚═╝
v{0.1} - building AI for unified time-series analysis, https://time-series.ai
\u001b[0m
"""
)
else:
# for Windows platform
logo = f"""\u001b[34m
████████ ██ ███ ███ ███████ ███████ ███████ ██████ ██ ███████ ███████ █████ ██
██ ██ ████ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ████ ██ █████ █████ ███████ █████ ██████ ██ █████ ███████ ███████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ███████ ███████ ███████ ██ ██ ██ ███████ ███████ ██ ██ ██ ██
v{0.1} - building AI for unified time-series analysis, https://time-series.ai
\u001b[0m
"""

print(logo.encode("utf8").decode(sys.stdout.encoding, errors="ignore"))
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.1"
__version__ = "0.0.2"

0 comments on commit 8812255

Please sign in to comment.