cleepcli 1.49.0__tar.gz → 1.49.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 (44) hide show
  1. {cleepcli-1.49.0/cleepcli.egg-info → cleepcli-1.49.3}/PKG-INFO +3 -1
  2. {cleepcli-1.49.0 → cleepcli-1.49.3}/README.md +2 -0
  3. {cleepcli-1.49.0 → cleepcli-1.49.3}/bin/ccli +32 -5
  4. {cleepcli-1.49.0 → cleepcli-1.49.3}/bin/cleep-cli +32 -5
  5. cleepcli-1.49.3/cleepcli/module.py +950 -0
  6. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/test.py +3 -1
  7. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/version.py +1 -1
  8. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/watchsvc.py +52 -8
  9. {cleepcli-1.49.0 → cleepcli-1.49.3/cleepcli.egg-info}/PKG-INFO +3 -1
  10. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_watchsvc.py +41 -3
  11. cleepcli-1.49.0/cleepcli/module.py +0 -704
  12. {cleepcli-1.49.0 → cleepcli-1.49.3}/LICENSE +0 -0
  13. {cleepcli-1.49.0 → cleepcli-1.49.3}/MANIFEST.in +0 -0
  14. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/__init__.py +0 -0
  15. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/check.py +0 -0
  16. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/ci.py +0 -0
  17. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/cleepapi.py +0 -0
  18. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/config.py +0 -0
  19. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/console.py +0 -0
  20. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/docs.py +0 -0
  21. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/file.py +0 -0
  22. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/git.py +0 -0
  23. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/package.py +0 -0
  24. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/pico.py +0 -0
  25. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/systemd/cleep-watch.service +0 -0
  26. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/tools.py +0 -0
  27. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli/watch.py +0 -0
  28. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli.egg-info/SOURCES.txt +0 -0
  29. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli.egg-info/dependency_links.txt +0 -0
  30. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli.egg-info/requires.txt +0 -0
  31. {cleepcli-1.49.0 → cleepcli-1.49.3}/cleepcli.egg-info/top_level.txt +0 -0
  32. {cleepcli-1.49.0 → cleepcli-1.49.3}/pyproject.toml +0 -0
  33. {cleepcli-1.49.0 → cleepcli-1.49.3}/requirements.txt +0 -0
  34. {cleepcli-1.49.0 → cleepcli-1.49.3}/setup.cfg +0 -0
  35. {cleepcli-1.49.0 → cleepcli-1.49.3}/setup.py +0 -0
  36. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_check.py +0 -0
  37. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_config.py +0 -0
  38. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_console.py +0 -0
  39. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_coverage.py +0 -0
  40. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_docs_breaking.py +0 -0
  41. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_file_sync_all.py +0 -0
  42. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_module_scaffold.py +0 -0
  43. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_pico.py +0 -0
  44. {cleepcli-1.49.0 → cleepcli-1.49.3}/tests/test_watch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cleepcli
3
- Version: 1.49.0
3
+ Version: 1.49.3
4
4
  Summary: Cleep-cli helps developers to build great Cleep applications from command line.
5
5
  Home-page: https://github.com/CleepDevice/cleep-cli
6
6
  Author: Tanguy Bonneau
@@ -96,6 +96,8 @@ cleep-cli watchsvc enable
96
96
 
97
97
  The unit runs `cleep-cli watch`, survives `systemctl restart cleep`, and on each start performs a catch-up `syncall` so files written while the watcher was down are applied.
98
98
 
99
+ After `pip install` / upgrade of `cleepcli`, the next `watchsvc install` (idempotent ensure) restarts the unit when the on-disk binary is newer than the running process, so the watcher loads the new CLI without a forced bounce on every Cleep boot.
100
+
99
101
  Manual one-shot resync (when the UI looks stale) — `syncall` also mints a fresh asset bust and reloads the device UI:
100
102
 
101
103
  ```
@@ -60,6 +60,8 @@ cleep-cli watchsvc enable
60
60
 
61
61
  The unit runs `cleep-cli watch`, survives `systemctl restart cleep`, and on each start performs a catch-up `syncall` so files written while the watcher was down are applied.
62
62
 
63
+ After `pip install` / upgrade of `cleepcli`, the next `watchsvc install` (idempotent ensure) restarts the unit when the on-disk binary is newer than the running process, so the watcher loads the new CLI without a forced bounce on every Cleep boot.
64
+
63
65
  Manual one-shot resync (when the UI looks stale) — `syncall` also mints a fresh asset bust and reloads the device UI:
64
66
 
65
67
  ```
@@ -349,12 +349,38 @@ def modsync(module):
349
349
 
350
350
  @mod.command()
351
351
  @click.option('--module', prompt='Module name', help='Module name.')
352
- def modcreate(module):
352
+ @click.option(
353
+ '--base-class',
354
+ default='CleepModule',
355
+ type=click.Choice(
356
+ ['CleepModule', 'CleepResources', 'CleepRenderer', 'CleepExternalBus', 'CleepRemoteAccessModule'],
357
+ case_sensitive=True,
358
+ ),
359
+ help='Core base class for the application.',
360
+ )
361
+ @click.option(
362
+ '--category',
363
+ default='APPLICATION',
364
+ type=click.Choice(
365
+ ['APPLICATION', 'MOBILE', 'DRIVER', 'HOMEAUTOMATION', 'MEDIA', 'SERVICE', 'HOBBY'],
366
+ case_sensitive=True,
367
+ ),
368
+ help='Market category (cleep.common.CATEGORIES).',
369
+ )
370
+ @click.option('--tag', multiple=True, help='MODULE_TAGS entry (repeatable).')
371
+ @click.option('--firmware', is_flag=True, help='Also scaffold firmwares/<module>/ UF2 sources.')
372
+ def modcreate(module, base_class, category, tag, firmware):
353
373
  """
354
374
  Create new module skeleton
355
375
  """
356
376
  m = Module()
357
- res = m.create(module)
377
+ res = m.create(
378
+ module,
379
+ base_class=base_class,
380
+ category=category,
381
+ tags=list(tag),
382
+ with_firmware=firmware,
383
+ )
358
384
 
359
385
  if not res:
360
386
  sys.exit(1)
@@ -412,7 +438,7 @@ def watch(quiet, loglevel, rpc_url, skip_catchup):
412
438
  @click.option(
413
439
  '--restart-if-active',
414
440
  is_flag=True,
415
- help='With install: restart the unit if it is already running (pick up a new cleep-cli).',
441
+ help='With install: force-restart if already running. Default install also restarts when the unit changed or cleep-cli binary is newer than the running watch.',
416
442
  )
417
443
  def watchsvc_cmd(action, restart_if_active):
418
444
  """
@@ -425,9 +451,10 @@ def watchsvc_cmd(action, restart_if_active):
425
451
  cleep-cli watchsvc install
426
452
  cleep-cli watchsvc enable
427
453
 
428
- After upgrading cleep-cli (pip), restart the watcher so it loads the new code::
454
+ After ``pip install cleepcli``, a later ``watchsvc install`` (or enable) restarts
455
+ the watcher when the on-disk binary is newer than the running process. Force with::
429
456
 
430
- cleep-cli watchsvc restart
457
+ cleep-cli watchsvc install --restart-if-active
431
458
  """
432
459
  svc = WatchService()
433
460
  if action == 'status':
@@ -349,12 +349,38 @@ def modsync(module):
349
349
 
350
350
  @mod.command()
351
351
  @click.option('--module', prompt='Module name', help='Module name.')
352
- def modcreate(module):
352
+ @click.option(
353
+ '--base-class',
354
+ default='CleepModule',
355
+ type=click.Choice(
356
+ ['CleepModule', 'CleepResources', 'CleepRenderer', 'CleepExternalBus', 'CleepRemoteAccessModule'],
357
+ case_sensitive=True,
358
+ ),
359
+ help='Core base class for the application.',
360
+ )
361
+ @click.option(
362
+ '--category',
363
+ default='APPLICATION',
364
+ type=click.Choice(
365
+ ['APPLICATION', 'MOBILE', 'DRIVER', 'HOMEAUTOMATION', 'MEDIA', 'SERVICE', 'HOBBY'],
366
+ case_sensitive=True,
367
+ ),
368
+ help='Market category (cleep.common.CATEGORIES).',
369
+ )
370
+ @click.option('--tag', multiple=True, help='MODULE_TAGS entry (repeatable).')
371
+ @click.option('--firmware', is_flag=True, help='Also scaffold firmwares/<module>/ UF2 sources.')
372
+ def modcreate(module, base_class, category, tag, firmware):
353
373
  """
354
374
  Create new module skeleton
355
375
  """
356
376
  m = Module()
357
- res = m.create(module)
377
+ res = m.create(
378
+ module,
379
+ base_class=base_class,
380
+ category=category,
381
+ tags=list(tag),
382
+ with_firmware=firmware,
383
+ )
358
384
 
359
385
  if not res:
360
386
  sys.exit(1)
@@ -412,7 +438,7 @@ def watch(quiet, loglevel, rpc_url, skip_catchup):
412
438
  @click.option(
413
439
  '--restart-if-active',
414
440
  is_flag=True,
415
- help='With install: restart the unit if it is already running (pick up a new cleep-cli).',
441
+ help='With install: force-restart if already running. Default install also restarts when the unit changed or cleep-cli binary is newer than the running watch.',
416
442
  )
417
443
  def watchsvc_cmd(action, restart_if_active):
418
444
  """
@@ -425,9 +451,10 @@ def watchsvc_cmd(action, restart_if_active):
425
451
  cleep-cli watchsvc install
426
452
  cleep-cli watchsvc enable
427
453
 
428
- After upgrading cleep-cli (pip), restart the watcher so it loads the new code::
454
+ After ``pip install cleepcli``, a later ``watchsvc install`` (or enable) restarts
455
+ the watcher when the on-disk binary is newer than the running process. Force with::
429
456
 
430
- cleep-cli watchsvc restart
457
+ cleep-cli watchsvc install --restart-if-active
431
458
  """
432
459
  svc = WatchService()
433
460
  if action == 'status':