fbuild 1.2.8__py3-none-any.whl → 1.2.15__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.
Files changed (47) hide show
  1. fbuild/__init__.py +5 -1
  2. fbuild/build/configurable_compiler.py +49 -6
  3. fbuild/build/configurable_linker.py +14 -9
  4. fbuild/build/orchestrator_esp32.py +6 -3
  5. fbuild/build/orchestrator_rp2040.py +6 -2
  6. fbuild/cli.py +300 -5
  7. fbuild/config/ini_parser.py +13 -1
  8. fbuild/daemon/__init__.py +11 -0
  9. fbuild/daemon/async_client.py +5 -4
  10. fbuild/daemon/async_client_lib.py +1543 -0
  11. fbuild/daemon/async_protocol.py +825 -0
  12. fbuild/daemon/async_server.py +2100 -0
  13. fbuild/daemon/client.py +425 -13
  14. fbuild/daemon/configuration_lock.py +13 -13
  15. fbuild/daemon/connection.py +508 -0
  16. fbuild/daemon/connection_registry.py +579 -0
  17. fbuild/daemon/daemon.py +517 -164
  18. fbuild/daemon/daemon_context.py +72 -1
  19. fbuild/daemon/device_discovery.py +477 -0
  20. fbuild/daemon/device_manager.py +821 -0
  21. fbuild/daemon/error_collector.py +263 -263
  22. fbuild/daemon/file_cache.py +332 -332
  23. fbuild/daemon/firmware_ledger.py +46 -123
  24. fbuild/daemon/lock_manager.py +508 -508
  25. fbuild/daemon/messages.py +431 -0
  26. fbuild/daemon/operation_registry.py +288 -288
  27. fbuild/daemon/processors/build_processor.py +34 -1
  28. fbuild/daemon/processors/deploy_processor.py +1 -3
  29. fbuild/daemon/processors/locking_processor.py +7 -7
  30. fbuild/daemon/request_processor.py +457 -457
  31. fbuild/daemon/shared_serial.py +7 -7
  32. fbuild/daemon/status_manager.py +238 -238
  33. fbuild/daemon/subprocess_manager.py +316 -316
  34. fbuild/deploy/docker_utils.py +182 -2
  35. fbuild/deploy/monitor.py +1 -1
  36. fbuild/deploy/qemu_runner.py +71 -13
  37. fbuild/ledger/board_ledger.py +46 -122
  38. fbuild/output.py +238 -2
  39. fbuild/packages/library_compiler.py +15 -5
  40. fbuild/packages/library_manager.py +12 -6
  41. fbuild-1.2.15.dist-info/METADATA +569 -0
  42. {fbuild-1.2.8.dist-info → fbuild-1.2.15.dist-info}/RECORD +46 -39
  43. fbuild-1.2.8.dist-info/METADATA +0 -468
  44. {fbuild-1.2.8.dist-info → fbuild-1.2.15.dist-info}/WHEEL +0 -0
  45. {fbuild-1.2.8.dist-info → fbuild-1.2.15.dist-info}/entry_points.txt +0 -0
  46. {fbuild-1.2.8.dist-info → fbuild-1.2.15.dist-info}/licenses/LICENSE +0 -0
  47. {fbuild-1.2.8.dist-info → fbuild-1.2.15.dist-info}/top_level.txt +0 -0
@@ -81,7 +81,7 @@ class LockingRequestProcessor:
81
81
  config_key = (request.project_dir, request.environment, request.port)
82
82
  manager = context.configuration_lock_manager
83
83
 
84
- logging.info(f"Lock acquire request: client={request.client_id}, " f"config={config_key}, type={request.lock_type.value}")
84
+ logging.info(f"Lock acquire request: client={request.client_id}, config={config_key}, type={request.lock_type.value}")
85
85
 
86
86
  try:
87
87
  if request.lock_type == LockType.EXCLUSIVE:
@@ -242,7 +242,7 @@ class FirmwareRequestProcessor:
242
242
  """
243
243
  ledger = context.firmware_ledger
244
244
 
245
- logging.debug(f"Firmware query request: port={request.port}, " f"source_hash={request.source_hash[:16]}...")
245
+ logging.debug(f"Firmware query request: port={request.port}, source_hash={request.source_hash[:16]}...")
246
246
 
247
247
  try:
248
248
  # Get deployment info if available
@@ -302,7 +302,7 @@ class FirmwareRequestProcessor:
302
302
  """
303
303
  ledger = context.firmware_ledger
304
304
 
305
- logging.info(f"Firmware record request: port={request.port}, " f"project={request.project_dir}, env={request.environment}")
305
+ logging.info(f"Firmware record request: port={request.port}, project={request.project_dir}, env={request.environment}")
306
306
 
307
307
  try:
308
308
  ledger.record_deployment(
@@ -360,7 +360,7 @@ class SerialSessionProcessor:
360
360
  """
361
361
  manager = context.shared_serial_manager
362
362
 
363
- logging.info(f"Serial attach request: client={request.client_id}, " f"port={request.port}, as_reader={request.as_reader}")
363
+ logging.info(f"Serial attach request: client={request.client_id}, port={request.port}, as_reader={request.as_reader}")
364
364
 
365
365
  try:
366
366
  # Check if port is already open
@@ -450,7 +450,7 @@ class SerialSessionProcessor:
450
450
  """
451
451
  manager = context.shared_serial_manager
452
452
 
453
- logging.info(f"Serial detach request: client={request.client_id}, " f"port={request.port}, close_port={request.close_port}")
453
+ logging.info(f"Serial detach request: client={request.client_id}, port={request.port}, close_port={request.close_port}")
454
454
 
455
455
  try:
456
456
  # Detach reader
@@ -586,7 +586,7 @@ class SerialSessionProcessor:
586
586
  """
587
587
  manager = context.shared_serial_manager
588
588
 
589
- logging.debug(f"Serial buffer request: client={request.client_id}, " f"port={request.port}, max_lines={request.max_lines}")
589
+ logging.debug(f"Serial buffer request: client={request.client_id}, port={request.port}, max_lines={request.max_lines}")
590
590
 
591
591
  try:
592
592
  session_info = manager.get_session_info(request.port) or {}
@@ -746,7 +746,7 @@ class ClientConnectionProcessor:
746
746
  """
747
747
  manager = context.client_manager
748
748
 
749
- logging.info(f"Client disconnect request: client_id={request.client_id}, " f"reason={request.reason}")
749
+ logging.info(f"Client disconnect request: client_id={request.client_id}, reason={request.reason}")
750
750
 
751
751
  try:
752
752
  success = manager.unregister_client(request.client_id)