pyhw 0.11.1__py3-none-any.whl → 0.11.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyhw/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '0.11.1'
1
+ __version__ = '0.11.2'
pyhw/__main__.py CHANGED
@@ -14,6 +14,7 @@ from .backend.npu import NPUDetect
14
14
  from .pyhwUtil import createDataString
15
15
  from .pyhwUtil import getOS, selectOSLogo
16
16
  from .pyhwUtil import ReleaseChecker
17
+ from .frontend.color import colorPrefix, colorSuffix, ColorSet
17
18
  import multiprocessing
18
19
 
19
20
 
@@ -22,6 +23,7 @@ def check_release(release_dict):
22
23
  release_dict["is_new_release"] = releaseChecker.check_for_updates()
23
24
  release_dict["release"] = releaseChecker.LatestVersion
24
25
  release_dict["current"] = releaseChecker.CurrentVersion
26
+ release_dict["is_in_pipx"] = releaseChecker.isInPIPX
25
27
 
26
28
 
27
29
  def detect_title(os, result_dict):
@@ -116,11 +118,11 @@ def main():
116
118
  processes[0].join()
117
119
  if release_dict["is_new_release"]:
118
120
  print(f"🔔 Found a newer version: v{release_dict['release']} (current: v{release_dict['current']})")
119
- print("👉 You can use the following command to upgrade:")
120
- if ReleaseChecker().isInPIPX:
121
- print(f" pipx upgrade pyhw")
121
+ print("🚀 You can use the following command to upgrade:")
122
+ if release_dict["is_in_pipx"]:
123
+ print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pipx upgrade pyhw{colorSuffix()}")
122
124
  else:
123
- print(f" pip install -U pyhw")
125
+ print(f"👉 {colorPrefix(ColorSet.COLOR_MODE_BOLD)}{colorPrefix(ColorSet.COLOR_FG_YELLOW)}pip install -U pyhw{colorSuffix()}")
124
126
  # else:
125
127
  # # debug
126
128
  # print("🎉 You are using the latest version of pyhw!")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pyhw
3
- Version: 0.11.1
3
+ Version: 0.11.2
4
4
  Summary: PyHw, a neofetch-like command line tool for fetching system information but written mostly in python.
5
5
  Author-email: Xiao Ran <xiaoran.007@icloud.com>
6
6
  License: BSD-3-Clause
@@ -1,5 +1,5 @@
1
- pyhw/__init__.py,sha256=3TWkE7T0Jt_0JSXR8Em3yqaM443tlkkxCPdXvSdnzBM,23
2
- pyhw/__main__.py,sha256=Z8PQRp_hZrui2wZuHKW9hRorbYvy6Qc8szYbjj3t2io,4479
1
+ pyhw/__init__.py,sha256=GVW5OUsne42Hc51Qp5bYDLyYK2DyGUCaZC1c77xCNO4,23
2
+ pyhw/__main__.py,sha256=8HSnrBI8lNTo8K4iQTqBkiMGdwvtuXR3S05qdHKR42I,4790
3
3
  pyhw/backend/__init__.py,sha256=knn_3Yroow1h0dqdrozk3zyy3vz-kQyNBRjR6OLmVoY,50
4
4
  pyhw/backend/backendBase.py,sha256=mloo8mPEbgbIdmyQ3I4vdEXMSSjxWi_wnwACmzvHbEo,506
5
5
  pyhw/backend/cpu/__init__.py,sha256=5YfANJVRwNwTRodG0ENOgusrdN592aaSnfq5ok4dKTo,56
@@ -106,9 +106,9 @@ pyhw/pyhwUtil/__init__.py,sha256=34ygvVBBqfJ_9OMzHToCcV_BVahixNsa_Z5yh6VsaPQ,304
106
106
  pyhw/pyhwUtil/cliUtil.py,sha256=SuXAs-ousXw6h5i8psazJEP5Q9X5VaxZlxhPSFYdM-4,1933
107
107
  pyhw/pyhwUtil/pyhwUtil.py,sha256=TxAgsDlrz-AJFyeXnOjL1MVnh1uR9dEqli5dmYPZcog,6915
108
108
  pyhw/pyhwUtil/sysctlUtil.py,sha256=S-rUvqi7ZrMyMouIhxlyHEQ4agM7sCT1Y7uzs3Hu5-o,841
109
- pyhw-0.11.1.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
110
- pyhw-0.11.1.dist-info/METADATA,sha256=9ioJk1jICjlBRXiqGga7j1PHyioTisnFddbE7lIAJzU,6732
111
- pyhw-0.11.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
112
- pyhw-0.11.1.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
113
- pyhw-0.11.1.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
114
- pyhw-0.11.1.dist-info/RECORD,,
109
+ pyhw-0.11.2.dist-info/LICENSE,sha256=hJs6RBqSVCexbTsalkMLNFI5t06kekQEsSVaOt_-yLs,1497
110
+ pyhw-0.11.2.dist-info/METADATA,sha256=T-an2HtTGEA2otXJ-7-TYiY9Vu9TTdKnKhkQfHYWycQ,6732
111
+ pyhw-0.11.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
112
+ pyhw-0.11.2.dist-info/entry_points.txt,sha256=q-AB8im_QahpmNrmy4aPTJRGi0LlbNlnI3kF7s6pKss,44
113
+ pyhw-0.11.2.dist-info/top_level.txt,sha256=7Inxvxt1TngEricKZEex9_WJZS3DbKYFUXDz4v5WHYU,5
114
+ pyhw-0.11.2.dist-info/RECORD,,
File without changes
File without changes