cleepcli 1.50.0__tar.gz → 1.50.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.
Files changed (43) hide show
  1. {cleepcli-1.50.0/cleepcli.egg-info → cleepcli-1.50.1}/PKG-INFO +1 -1
  2. {cleepcli-1.50.0 → cleepcli-1.50.1}/bin/ccli +28 -14
  3. {cleepcli-1.50.0 → cleepcli-1.50.1}/bin/cleep-cli +28 -14
  4. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/config.py +20 -7
  5. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/file.py +3 -2
  6. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/version.py +1 -1
  7. {cleepcli-1.50.0 → cleepcli-1.50.1/cleepcli.egg-info}/PKG-INFO +1 -1
  8. {cleepcli-1.50.0 → cleepcli-1.50.1}/LICENSE +0 -0
  9. {cleepcli-1.50.0 → cleepcli-1.50.1}/MANIFEST.in +0 -0
  10. {cleepcli-1.50.0 → cleepcli-1.50.1}/README.md +0 -0
  11. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/__init__.py +0 -0
  12. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/check.py +0 -0
  13. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/ci.py +0 -0
  14. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/cleepapi.py +0 -0
  15. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/console.py +0 -0
  16. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/docs.py +0 -0
  17. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/git.py +0 -0
  18. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/module.py +0 -0
  19. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/package.py +0 -0
  20. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/pico.py +0 -0
  21. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/systemd/cleep-watch.service +0 -0
  22. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/test.py +0 -0
  23. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/tools.py +0 -0
  24. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/watch.py +0 -0
  25. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli/watchsvc.py +0 -0
  26. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/SOURCES.txt +0 -0
  27. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/dependency_links.txt +0 -0
  28. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/requires.txt +0 -0
  29. {cleepcli-1.50.0 → cleepcli-1.50.1}/cleepcli.egg-info/top_level.txt +0 -0
  30. {cleepcli-1.50.0 → cleepcli-1.50.1}/pyproject.toml +0 -0
  31. {cleepcli-1.50.0 → cleepcli-1.50.1}/requirements.txt +0 -0
  32. {cleepcli-1.50.0 → cleepcli-1.50.1}/setup.cfg +0 -0
  33. {cleepcli-1.50.0 → cleepcli-1.50.1}/setup.py +0 -0
  34. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_check.py +0 -0
  35. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_config.py +0 -0
  36. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_console.py +0 -0
  37. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_coverage.py +0 -0
  38. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_docs_breaking.py +0 -0
  39. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_file_sync_all.py +0 -0
  40. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_module_scaffold.py +0 -0
  41. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_pico.py +0 -0
  42. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_watch.py +0 -0
  43. {cleepcli-1.50.0 → cleepcli-1.50.1}/tests/test_watchsvc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cleepcli
3
- Version: 1.50.0
3
+ Version: 1.50.1
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
@@ -323,21 +323,35 @@ def modssync(run_scripts):
323
323
  logging.info('Synchronizing mandatory modules...')
324
324
  f = File()
325
325
 
326
- for module in config.MODULES_REPO_URL.keys():
326
+ # Order: config.MANDATORY_MODULES_ORDER (update first — InstallManifest provider)
327
+ for module in config.MANDATORY_MODULES_ORDER:
327
328
  if run_scripts:
328
- # Same order as package install: scripts + preinst, then files, then postinst
329
- res = f.module_sync(module, backend=False, frontend=False, scripts=True)
330
- if not res:
331
- sys.exit(1)
332
- res = f.module_run_phase_manifest(module, "preinst")
333
- if not res:
334
- sys.exit(1)
335
- res = f.module_sync(module, backend=True, frontend=True, scripts=True)
336
- if not res:
337
- sys.exit(1)
338
- res = f.module_run_phase_manifest(module, "postinst")
339
- if not res:
340
- sys.exit(1)
329
+ if module == "update":
330
+ # Full sync before manifests so InstallManifest is importable
331
+ # (also for update's own JSON if added later).
332
+ res = f.module_sync(module)
333
+ if not res:
334
+ sys.exit(1)
335
+ res = f.module_run_phase_manifest(module, "preinst")
336
+ if not res:
337
+ sys.exit(1)
338
+ res = f.module_run_phase_manifest(module, "postinst")
339
+ if not res:
340
+ sys.exit(1)
341
+ else:
342
+ # Same order as package install: scripts + preinst, then files, then postinst
343
+ res = f.module_sync(module, backend=False, frontend=False, scripts=True)
344
+ if not res:
345
+ sys.exit(1)
346
+ res = f.module_run_phase_manifest(module, "preinst")
347
+ if not res:
348
+ sys.exit(1)
349
+ res = f.module_sync(module, backend=True, frontend=True, scripts=True)
350
+ if not res:
351
+ sys.exit(1)
352
+ res = f.module_run_phase_manifest(module, "postinst")
353
+ if not res:
354
+ sys.exit(1)
341
355
  else:
342
356
  res = f.module_sync(module)
343
357
  if not res:
@@ -323,21 +323,35 @@ def modssync(run_scripts):
323
323
  logging.info('Synchronizing mandatory modules...')
324
324
  f = File()
325
325
 
326
- for module in config.MODULES_REPO_URL.keys():
326
+ # Order: config.MANDATORY_MODULES_ORDER (update first — InstallManifest provider)
327
+ for module in config.MANDATORY_MODULES_ORDER:
327
328
  if run_scripts:
328
- # Same order as package install: scripts + preinst, then files, then postinst
329
- res = f.module_sync(module, backend=False, frontend=False, scripts=True)
330
- if not res:
331
- sys.exit(1)
332
- res = f.module_run_phase_manifest(module, "preinst")
333
- if not res:
334
- sys.exit(1)
335
- res = f.module_sync(module, backend=True, frontend=True, scripts=True)
336
- if not res:
337
- sys.exit(1)
338
- res = f.module_run_phase_manifest(module, "postinst")
339
- if not res:
340
- sys.exit(1)
329
+ if module == "update":
330
+ # Full sync before manifests so InstallManifest is importable
331
+ # (also for update's own JSON if added later).
332
+ res = f.module_sync(module)
333
+ if not res:
334
+ sys.exit(1)
335
+ res = f.module_run_phase_manifest(module, "preinst")
336
+ if not res:
337
+ sys.exit(1)
338
+ res = f.module_run_phase_manifest(module, "postinst")
339
+ if not res:
340
+ sys.exit(1)
341
+ else:
342
+ # Same order as package install: scripts + preinst, then files, then postinst
343
+ res = f.module_sync(module, backend=False, frontend=False, scripts=True)
344
+ if not res:
345
+ sys.exit(1)
346
+ res = f.module_run_phase_manifest(module, "preinst")
347
+ if not res:
348
+ sys.exit(1)
349
+ res = f.module_sync(module, backend=True, frontend=True, scripts=True)
350
+ if not res:
351
+ sys.exit(1)
352
+ res = f.module_run_phase_manifest(module, "postinst")
353
+ if not res:
354
+ sys.exit(1)
341
355
  else:
342
356
  res = f.module_sync(module)
343
357
  if not res:
@@ -19,15 +19,28 @@ def get_core_version_from_sources(repo_dir):
19
19
  except:
20
20
  return None
21
21
 
22
+ # Mandatory apps sync/install order. `update` MUST stay first: every app's
23
+ # preinst/postinst JSON is executed by InstallManifest (lives in update).
24
+ # On a device update is already installed; in CI from an empty modules tree
25
+ # this order is what makes declarative installs importable.
26
+ MANDATORY_MODULES_ORDER = (
27
+ "update",
28
+ "system",
29
+ "parameters",
30
+ "cleepbus",
31
+ "audio",
32
+ "network",
33
+ )
34
+
22
35
  MODULES_REPO_URL = {
23
- 'system': 'https://github.com/CleepDevice/cleepapp-system.git',
24
- 'parameters': 'https://github.com/CleepDevice/cleepapp-parameters.git',
25
- 'cleepbus': 'https://github.com/CleepDevice/cleepapp-cleepbus.git',
26
- 'audio': 'https://github.com/CleepDevice/cleepapp-audio.git',
27
- 'network': 'https://github.com/CleepDevice/cleepapp-network.git',
28
- 'update': 'https://github.com/CleepDevice/cleepapp-update.git',
36
+ "update": "https://github.com/CleepDevice/cleepapp-update.git",
37
+ "system": "https://github.com/CleepDevice/cleepapp-system.git",
38
+ "parameters": "https://github.com/CleepDevice/cleepapp-parameters.git",
39
+ "cleepbus": "https://github.com/CleepDevice/cleepapp-cleepbus.git",
40
+ "audio": "https://github.com/CleepDevice/cleepapp-audio.git",
41
+ "network": "https://github.com/CleepDevice/cleepapp-network.git",
29
42
  }
30
- DEFAULT_MODULES = list(MODULES_REPO_URL.keys())
43
+ DEFAULT_MODULES = list(MANDATORY_MODULES_ORDER)
31
44
 
32
45
  # Per-module git refs for cigetmods / core builds (in the Cleep core repo).
33
46
  MANDATORY_MODULES_BRANCHES_FILENAME = "mandatory-modules-branches.json"
@@ -193,9 +193,10 @@ fi
193
193
  MODE_INSTALL,
194
194
  )
195
195
  from cleep.libs.internals.cleepfilesystem import CleepFilesystem
196
- except ImportError:
196
+ except ImportError as exc:
197
197
  self.logger.error(
198
- "Unable to import InstallManifest; is Cleep update module installed?"
198
+ "Unable to import InstallManifest; is Cleep update module installed? (%s)",
199
+ exc,
199
200
  )
200
201
  return False
201
202
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
- VERSION = "1.50.0"
4
+ VERSION = "1.50.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cleepcli
3
- Version: 1.50.0
3
+ Version: 1.50.1
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes