supercomputer-console 1.3.0__tar.gz → 1.3.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supercomputer-console
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A retro mainframe operator console for your terminal: blinkenlights driven by real system load.
5
5
  Author: Roger Dubar
6
6
  License-Expression: MIT
@@ -27,7 +27,7 @@ import urllib.error
27
27
  import urllib.request
28
28
  import uuid
29
29
 
30
- __version__ = "1.3.0"
30
+ __version__ = "1.3.1"
31
31
  REPO_URL = "github.com/rdubar/supercomputer"
32
32
  PYPI_NAME = "supercomputer-console"
33
33
  PYPI_URL = f"https://pypi.org/pypi/{PYPI_NAME}/json"
@@ -1076,6 +1076,8 @@ def install_method():
1076
1076
  if os.path.isdir(os.path.join(here, ".git")):
1077
1077
  return "git checkout", ["git", "-C", here, "pull", "--ff-only"]
1078
1078
  prefix = sys.prefix.replace("\\", "/")
1079
+ if "/Cellar/supercomputer/" in os.path.realpath(__file__) and shutil.which("brew"):
1080
+ return "Homebrew", ["brew", "upgrade", "rdubar/tap/supercomputer"]
1079
1081
  if "/uv/tools/" in prefix and shutil.which("uv"):
1080
1082
  return "uv tool", ["uv", "tool", "upgrade", PYPI_NAME]
1081
1083
  if "/pipx/venvs/" in prefix and shutil.which("pipx"):
@@ -1131,7 +1133,7 @@ def main():
1131
1133
  ap.add_argument("--version", action="store_true",
1132
1134
  help="show the version and check quickly for a newer release")
1133
1135
  ap.add_argument("--update", action="store_true",
1134
- help="upgrade to the latest release (uv, pipx, venv or git checkout)")
1136
+ help="upgrade to the latest release (uv, pipx, Homebrew, venv or git checkout)")
1135
1137
  args = ap.parse_args()
1136
1138
  if args.version:
1137
1139
  show_version()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: supercomputer-console
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: A retro mainframe operator console for your terminal: blinkenlights driven by real system load.
5
5
  Author: Roger Dubar
6
6
  License-Expression: MIT