cli-arcade 2026.1.1__tar.gz → 2026.1.3__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.
Files changed (38) hide show
  1. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/CHANGELOG.md +6 -0
  2. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/PKG-INFO +1 -7
  3. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/PYPI_README.md +0 -6
  4. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/README.md +0 -1
  5. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/cli.py +0 -78
  6. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/setup.cfg +1 -1
  7. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/LICENSE +0 -0
  8. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/MANIFEST.in +0 -0
  9. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/cli_arcade.egg-info/SOURCES.txt +0 -0
  10. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__init__.py +0 -0
  11. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__pycache__/__init__.cpython-313.pyc +0 -0
  12. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__pycache__/game_base.cpython-313.pyc +0 -0
  13. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__pycache__/highscores.cpython-313.pyc +0 -0
  14. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__pycache__/menu.cpython-313.pyc +0 -0
  15. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/__pycache__/tools.cpython-313.pyc +0 -0
  16. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/game_base.py +0 -0
  17. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/highscores.py +0 -0
  18. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/menu.py +0 -0
  19. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/game_classes/tools.py +0 -0
  20. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/__init__.py +0 -0
  21. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/byte_bouncer/__init__.py +0 -0
  22. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/byte_bouncer/__pycache__/byte_bouncer.cpython-313.pyc +0 -0
  23. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/byte_bouncer/__pycache__/game.cpython-313.pyc +0 -0
  24. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/byte_bouncer/__pycache__/highscores.cpython-313.pyc +0 -0
  25. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/byte_bouncer/game.py +0 -0
  26. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__init__.py +0 -0
  27. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__pycache__/game.cpython-313.pyc +0 -0
  28. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__pycache__/highscores.cpython-313.pyc +0 -0
  29. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__pycache__/nibbles.cpython-313.pyc +0 -0
  30. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__pycache__/snek.cpython-313.pyc +0 -0
  31. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/__pycache__/star_ship.cpython-313.pyc +0 -0
  32. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/star_ship/game.py +0 -0
  33. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/terminal_tumble/__init__.py +0 -0
  34. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/terminal_tumble/__pycache__/game.cpython-313.pyc +0 -0
  35. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/terminal_tumble/__pycache__/highscores.cpython-313.pyc +0 -0
  36. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/terminal_tumble/__pycache__/terminal_tumble.cpython-313.pyc +0 -0
  37. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/games/terminal_tumble/game.py +0 -0
  38. {cli_arcade-2026.1.1 → cli_arcade-2026.1.3}/pyproject.toml +0 -0
@@ -14,3 +14,9 @@ All notable changes to this project will be documented in this file.
14
14
  - Updated TITLE ASCII art.
15
15
  - Added `clia update` command to check for and install updates from PyPI.
16
16
 
17
+ ### 2026.1.2
18
+ - Version bump for testing the update mechanism.
19
+
20
+ ### 2026.1.3
21
+ - Removed `clia update` command.
22
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cli-arcade
3
- Version: 2026.1.1
3
+ Version: 2026.1.3
4
4
  Summary: Collection of terminal CLI games
5
5
  Home-page: https://github.com/Bro-Code-Technologies/cli-arcade/tree/main/windows
6
6
  Author: Bro Code Technologies LLC
@@ -54,11 +54,6 @@ clia run "Byte Bouncer"
54
54
  clia reset 0
55
55
  clia reset "Byte Bouncer"
56
56
  clia reset -y # skip confirmation
57
-
58
- # check for updates and optionally update
59
- clia update
60
- clia update --check # only check for updates
61
- clia update -y # skip confirmation
62
57
  ```
63
58
 
64
59
  Commands
@@ -66,7 +61,6 @@ Commands
66
61
  - `clia list` — print available games and zero-based indices
67
62
  - `clia run <index|name>` — run a game directly (index is zero-based)
68
63
  - `clia reset [<index|name>] [-y]` — delete highscores for a game or all games
69
- - `clia update [--check] [-y]` — check for updates and optionally update
70
64
  - Aliases available: `cli-arcade`
71
65
 
72
66
  License
@@ -21,11 +21,6 @@ clia run "Byte Bouncer"
21
21
  clia reset 0
22
22
  clia reset "Byte Bouncer"
23
23
  clia reset -y # skip confirmation
24
-
25
- # check for updates and optionally update
26
- clia update
27
- clia update --check # only check for updates
28
- clia update -y # skip confirmation
29
24
  ```
30
25
 
31
26
  Commands
@@ -33,7 +28,6 @@ Commands
33
28
  - `clia list` — print available games and zero-based indices
34
29
  - `clia run <index|name>` — run a game directly (index is zero-based)
35
30
  - `clia reset [<index|name>] [-y]` — delete highscores for a game or all games
36
- - `clia update [--check] [-y]` — check for updates and optionally update
37
31
  - Aliases available: `cli-arcade`
38
32
 
39
33
  License
@@ -50,7 +50,6 @@ Commands
50
50
  - `clia list` — print available games and zero-based indices
51
51
  - `clia run <index|name>` — run a game directly (index is zero-based)
52
52
  - `clia reset [<index|name>] [-y]` — delete highscores for a game or all games
53
- - `clia update [--check] [-y]` — check for updates and optionally update
54
53
  - Aliases available: `cli-arcade`
55
54
 
56
55
  Highscores storage and migration
@@ -4,10 +4,6 @@ import importlib.util
4
4
  import argparse
5
5
  import glob
6
6
  import sys
7
- import json
8
- import re
9
- import subprocess
10
- import urllib.request
11
7
 
12
8
  # helper: recognize Enter from multiple terminals/keypads
13
9
  def is_enter_key(ch):
@@ -304,43 +300,6 @@ def _read_version_from_setupcfg():
304
300
  except Exception:
305
301
  return '0.0.0'
306
302
 
307
-
308
- def _version_key(ver):
309
- parts = []
310
- for chunk in re.split(r'(\d+)', ver):
311
- if not chunk:
312
- continue
313
- if chunk.isdigit():
314
- parts.append((0, int(chunk)))
315
- else:
316
- parts.append((1, chunk.lower()))
317
- return parts
318
-
319
-
320
- def _fetch_latest_version(package):
321
- url = f"https://pypi.org/pypi/{package}/json"
322
- try:
323
- with urllib.request.urlopen(url, timeout=5) as resp:
324
- data = json.load(resp)
325
- return data.get('info', {}).get('version')
326
- except Exception as e:
327
- print(f" [ERROR] Failed to check latest version: {e}")
328
- return None
329
-
330
-
331
- def _is_update_available(current, latest):
332
- if not latest:
333
- return False
334
- try:
335
- return _version_key(latest) > _version_key(current)
336
- except Exception:
337
- return latest != current
338
-
339
-
340
- def _run_pip_update(package):
341
- cmd = [sys.executable, '-m', 'pip', 'install', '--upgrade', package]
342
- return subprocess.call(cmd)
343
-
344
303
  def main():
345
304
  # support simple CLI subcommands (e.g. `clia list`)
346
305
  # build epilog with examples and any console script aliases from setup.cfg
@@ -350,7 +309,6 @@ def main():
350
309
  f' %(prog)s list [-h]',
351
310
  f' %(prog)s run [-h] [0, "Byte Bouncer"]',
352
311
  f' %(prog)s reset [-h] [0, "Byte Bouncer"] [-y]',
353
- f' %(prog)s update [--check] [-y]',
354
312
  ]
355
313
  aliases = _read_console_aliases()
356
314
  if aliases:
@@ -390,15 +348,6 @@ def main():
390
348
  )
391
349
  resetp.add_argument('game', nargs='?', help='Optional game name or zero-based index (omit to reset all)')
392
350
  resetp.add_argument('-y', '--yes', action='store_true', help='Do not prompt; proceed with deletion')
393
- updatep = sub.add_parser(
394
- 'update',
395
- help='Update cli-arcade package from PyPI',
396
- description='Check PyPI for a newer version and update if available.',
397
- epilog='Examples:\n %(prog)s\n %(prog)s --check\n %(prog)s -y\n',
398
- formatter_class=argparse.RawDescriptionHelpFormatter,
399
- )
400
- updatep.add_argument('-c', '--check', action='store_true', help='Only check for updates (do not install)')
401
- updatep.add_argument('-y', '--yes', action='store_true', help='Do not prompt; proceed with update')
402
351
  args, _rest = parser.parse_known_args()
403
352
 
404
353
  if args.cmd == 'list':
@@ -472,33 +421,6 @@ def main():
472
421
  _reset_game_by_index(choice, yes=yes)
473
422
  return
474
423
 
475
- if args.cmd == 'update':
476
- package = 'cli-arcade'
477
- current = _read_version_from_setupcfg()
478
- if current == '0.0.0':
479
- print(' [INFO] Installed version not detected (running from source?).')
480
- latest = _fetch_latest_version(package)
481
- if not latest:
482
- print(' [INFO] Unable to determine latest version.')
483
- return
484
- if _is_update_available(current, latest):
485
- print(f" [INFO] Update available: {current} -> {latest}")
486
- if args.check:
487
- return
488
- if not getattr(args, 'yes', False):
489
- ans = input(' [ACTION] Update now? [y/N]: ')
490
- if not ans.lower().startswith('y'):
491
- print(' [CANCELED]')
492
- return
493
- code = _run_pip_update(package)
494
- if code == 0:
495
- print(f" [OK] Updated {package}.")
496
- else:
497
- print(f" [ERROR] Update failed with exit code {code}.")
498
- return
499
- print(f" [OK] You are up to date ({current}).")
500
- return
501
-
502
424
  # run the menu under curses, then launch the chosen game's main()
503
425
  choice = curses.wrapper(_menu)
504
426
  if choice is None:
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = cli-arcade
3
- version = 2026.1.1
3
+ version = 2026.1.3
4
4
  description = Collection of terminal CLI games
5
5
  author = Bro Code Technologies LLC
6
6
  author_email = info@brocodetechnologies.com
File without changes
File without changes