fastled 1.2.65__tar.gz → 1.2.68__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 (128) hide show
  1. {fastled-1.2.65 → fastled-1.2.68}/PKG-INFO +1 -2
  2. {fastled-1.2.65 → fastled-1.2.68}/README.md +0 -1
  3. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/__init__.py +4 -2
  4. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/compile_server.py +2 -1
  5. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/compile_server_impl.py +17 -6
  6. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/docker_manager.py +6 -6
  7. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/PKG-INFO +1 -2
  8. {fastled-1.2.65 → fastled-1.2.68}/.aiderignore +0 -0
  9. {fastled-1.2.65 → fastled-1.2.68}/.dockerignore +0 -0
  10. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/build_multi_docker_image.yml +0 -0
  11. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/build_webpage.yml +0 -0
  12. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/lint.yml +0 -0
  13. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/publish_release.yml +0 -0
  14. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/template_build_docker_image.yml +0 -0
  15. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/test_build_exe.yml +0 -0
  16. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/test_macos.yml +0 -0
  17. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/test_ubuntu.yml +0 -0
  18. {fastled-1.2.65 → fastled-1.2.68}/.github/workflows/test_win.yml +0 -0
  19. {fastled-1.2.65 → fastled-1.2.68}/.gitignore +0 -0
  20. {fastled-1.2.65 → fastled-1.2.68}/.pylintrc +0 -0
  21. {fastled-1.2.65 → fastled-1.2.68}/.vscode/launch.json +0 -0
  22. {fastled-1.2.65 → fastled-1.2.68}/.vscode/settings.json +0 -0
  23. {fastled-1.2.65 → fastled-1.2.68}/.vscode/tasks.json +0 -0
  24. {fastled-1.2.65 → fastled-1.2.68}/Dockerfile +0 -0
  25. {fastled-1.2.65 → fastled-1.2.68}/LICENSE +0 -0
  26. {fastled-1.2.65 → fastled-1.2.68}/MANIFEST.in +0 -0
  27. {fastled-1.2.65 → fastled-1.2.68}/RELEASE.md +0 -0
  28. {fastled-1.2.65 → fastled-1.2.68}/TODO.md +0 -0
  29. {fastled-1.2.65 → fastled-1.2.68}/build_exe.py +0 -0
  30. {fastled-1.2.65 → fastled-1.2.68}/build_site.py +0 -0
  31. {fastled-1.2.65 → fastled-1.2.68}/clean +0 -0
  32. {fastled-1.2.65 → fastled-1.2.68}/compiler/CMakeLists.txt +0 -0
  33. {fastled-1.2.65 → fastled-1.2.68}/compiler/__init__.py +0 -0
  34. {fastled-1.2.65 → fastled-1.2.68}/compiler/arduino-pre-process.sh +0 -0
  35. {fastled-1.2.65 → fastled-1.2.68}/compiler/build.sh +0 -0
  36. {fastled-1.2.65 → fastled-1.2.68}/compiler/build_archive.sh +0 -0
  37. {fastled-1.2.65 → fastled-1.2.68}/compiler/build_fast.sh +0 -0
  38. {fastled-1.2.65 → fastled-1.2.68}/compiler/code_sync.py +0 -0
  39. {fastled-1.2.65 → fastled-1.2.68}/compiler/compile.py +0 -0
  40. {fastled-1.2.65 → fastled-1.2.68}/compiler/compile_lock.py +0 -0
  41. {fastled-1.2.65 → fastled-1.2.68}/compiler/entrypoint.sh +0 -0
  42. {fastled-1.2.65 → fastled-1.2.68}/compiler/extra/100dots.html +0 -0
  43. {fastled-1.2.65 → fastled-1.2.68}/compiler/extra/demo_threejs.html +0 -0
  44. {fastled-1.2.65 → fastled-1.2.68}/compiler/extra/micdemo.html +0 -0
  45. {fastled-1.2.65 → fastled-1.2.68}/compiler/extra/mp3upload.html +0 -0
  46. {fastled-1.2.65 → fastled-1.2.68}/compiler/extra/webgl_postprocessing_unreal_bloom.html +0 -0
  47. {fastled-1.2.65 → fastled-1.2.68}/compiler/final_prewarm.sh +0 -0
  48. {fastled-1.2.65 → fastled-1.2.68}/compiler/init_runtime.py +0 -0
  49. {fastled-1.2.65 → fastled-1.2.68}/compiler/install-arduino-cli.sh +0 -0
  50. {fastled-1.2.65 → fastled-1.2.68}/compiler/libcompile/CMakeLists.txt +0 -0
  51. {fastled-1.2.65 → fastled-1.2.68}/compiler/paths.py +0 -0
  52. {fastled-1.2.65 → fastled-1.2.68}/compiler/pre-process.sh +0 -0
  53. {fastled-1.2.65 → fastled-1.2.68}/compiler/prewarm.sh +0 -0
  54. {fastled-1.2.65 → fastled-1.2.68}/compiler/process-ino.py +0 -0
  55. {fastled-1.2.65 → fastled-1.2.68}/compiler/process_extended.py +0 -0
  56. {fastled-1.2.65 → fastled-1.2.68}/compiler/pyproject.toml +0 -0
  57. {fastled-1.2.65 → fastled-1.2.68}/compiler/run.py +0 -0
  58. {fastled-1.2.65 → fastled-1.2.68}/compiler/server.py +0 -0
  59. {fastled-1.2.65 → fastled-1.2.68}/compiler/sketch_hasher.py +0 -0
  60. {fastled-1.2.65 → fastled-1.2.68}/compiler/wasm_compiler_flags.py +0 -0
  61. {fastled-1.2.65 → fastled-1.2.68}/docker-compose.yml +0 -0
  62. {fastled-1.2.65 → fastled-1.2.68}/install +0 -0
  63. {fastled-1.2.65 → fastled-1.2.68}/install_linux.sh +0 -0
  64. {fastled-1.2.65 → fastled-1.2.68}/lint +0 -0
  65. {fastled-1.2.65 → fastled-1.2.68}/pyproject.toml +0 -0
  66. {fastled-1.2.65 → fastled-1.2.68}/requirements.testing.txt +0 -0
  67. {fastled-1.2.65 → fastled-1.2.68}/setup.cfg +0 -0
  68. {fastled-1.2.65 → fastled-1.2.68}/setup.py +0 -0
  69. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/app.py +0 -0
  70. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/assets/example.txt +0 -0
  71. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/assets/localhost-key.pem +0 -0
  72. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/assets/localhost.pem +0 -0
  73. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/cli.py +0 -0
  74. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/cli_test.py +0 -0
  75. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/client_server.py +0 -0
  76. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/filewatcher.py +0 -0
  77. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/interactive_srcs.py +0 -0
  78. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/keyboard.py +0 -0
  79. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/keyz.py +0 -0
  80. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/live_client.py +0 -0
  81. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/open_browser.py +0 -0
  82. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/parse_args.py +0 -0
  83. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/paths.py +0 -0
  84. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/project_init.py +0 -0
  85. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/select_sketch_directory.py +0 -0
  86. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/server_fastapi.py +0 -0
  87. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/server_fastapi_cli.py +0 -0
  88. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/server_flask.py +0 -0
  89. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/server_start.py +0 -0
  90. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/settings.py +0 -0
  91. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/site/build.py +0 -0
  92. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/site/examples.py +0 -0
  93. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/sketch.py +0 -0
  94. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/spinner.py +0 -0
  95. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/string_diff.py +0 -0
  96. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  97. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/test/examples.py +0 -0
  98. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/types.py +0 -0
  99. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/util.py +0 -0
  100. {fastled-1.2.65 → fastled-1.2.68}/src/fastled/web_compile.py +0 -0
  101. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/SOURCES.txt +0 -0
  102. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/dependency_links.txt +0 -0
  103. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/entry_points.txt +0 -0
  104. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/requires.txt +0 -0
  105. {fastled-1.2.65 → fastled-1.2.68}/src/fastled.egg-info/top_level.txt +0 -0
  106. {fastled-1.2.65 → fastled-1.2.68}/test +0 -0
  107. {fastled-1.2.65 → fastled-1.2.68}/tests/integration/test_build_examples.py +0 -0
  108. {fastled-1.2.65 → fastled-1.2.68}/tests/integration/test_examples.py +0 -0
  109. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/html/index.html +0 -0
  110. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_api.py +0 -0
  111. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_bad_ino.py +0 -0
  112. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_cli.py +0 -0
  113. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_compile_server.py +0 -0
  114. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_docker_linux_on_windows.py +0 -0
  115. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_embedded_data.py +0 -0
  116. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_filechanger.py +0 -0
  117. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_http_server.py +0 -0
  118. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/bad/bad.ino +0 -0
  119. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/bad_platformio/bad_platformio.ino +0 -0
  120. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/bad_platformio/platformio.ini +0 -0
  121. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/embedded/data/bigdata.dat +0 -0
  122. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/embedded/wasm.ino +0 -0
  123. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_ino/wasm/wasm.ino +0 -0
  124. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_project_init.py +0 -0
  125. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_server_and_client_seperatly.py +0 -0
  126. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_string_diff.py +0 -0
  127. {fastled-1.2.65 → fastled-1.2.68}/tests/unit/test_webcompile.py +0 -0
  128. {fastled-1.2.65 → fastled-1.2.68}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.2.65
3
+ Version: 1.2.68
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -300,7 +300,6 @@ Q: How can I get the compiled size of my FastLED sketch smaller?
300
300
  A: A big chunk of space is being used by unnecessary javascript `emscripten` bundling. The wasm_compiler_settings.py file in the FastLED repo can tweak this.
301
301
 
302
302
 
303
-
304
303
  # Revisions
305
304
  * 1.2.31 - Bunch of fixes and ease of use while compiling code in the repo.
306
305
  * 1.2.22 - Prefer to use `live-server` from npm. If npm exists on the system then do a background install of `live-server` for next run.
@@ -269,7 +269,6 @@ Q: How can I get the compiled size of my FastLED sketch smaller?
269
269
  A: A big chunk of space is being used by unnecessary javascript `emscripten` bundling. The wasm_compiler_settings.py file in the FastLED repo can tweak this.
270
270
 
271
271
 
272
-
273
272
  # Revisions
274
273
  * 1.2.31 - Bunch of fixes and ease of use while compiling code in the repo.
275
274
  * 1.2.22 - Prefer to use `live-server` from npm. If npm exists on the system then do a background install of `live-server` for next run.
@@ -13,7 +13,7 @@ from .types import BuildMode, CompileResult, CompileServerError
13
13
  # IMPORTANT! There's a bug in github which will REJECT any version update
14
14
  # that has any other change in the repo. Please bump the version as the
15
15
  # ONLY change in a commit, or else the pypi update and the release will fail.
16
- __version__ = "1.2.65"
16
+ __version__ = "1.2.68"
17
17
 
18
18
  DOCKER_FILE = (
19
19
  "https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/Dockerfile"
@@ -137,7 +137,9 @@ class Docker:
137
137
  def is_running() -> bool:
138
138
  from fastled.docker_manager import DockerManager
139
139
 
140
- return DockerManager.is_running()
140
+ ok: bool
141
+ ok, _ = DockerManager.is_running()
142
+ return ok
141
143
 
142
144
  @staticmethod
143
145
  def is_container_running(container_name: str | None = None) -> bool:
@@ -59,7 +59,8 @@ class CompileServer:
59
59
 
60
60
  @property
61
61
  def running(self) -> bool:
62
- return self.impl.running
62
+ ok, _ = self.impl.running
63
+ return ok
63
64
 
64
65
  @property
65
66
  def fastled_src_dir(self) -> Path | None:
@@ -1,6 +1,7 @@
1
1
  import subprocess
2
2
  import sys
3
3
  import time
4
+ import traceback
4
5
  import warnings
5
6
  from datetime import datetime, timezone
6
7
  from pathlib import Path
@@ -111,14 +112,24 @@ class CompileServerImpl:
111
112
  project_init(example=example, outputdir=outputdir)
112
113
 
113
114
  @property
114
- def running(self) -> bool:
115
+ def running(self) -> tuple[bool, Exception | None]:
115
116
  if not self._port:
116
- return False
117
+ return False, Exception("Docker hasn't been initialzed with a port yet")
117
118
  if not DockerManager.is_docker_installed():
118
- return False
119
- if not DockerManager.is_running():
120
- return False
121
- return self.docker.is_container_running(self.container_name)
119
+ return False, Exception("Docker is not installed")
120
+ docker_running, err = self.docker.is_running()
121
+ if not docker_running:
122
+ IS_MAC = sys.platform == "darwin"
123
+ if IS_MAC:
124
+ if "FileNotFoundError" in str(err):
125
+ traceback.print_exc()
126
+ print("\n\nNone fatal debug print for MacOS\n")
127
+ return False, err
128
+ ok: bool = self.docker.is_container_running(self.container_name)
129
+ if ok:
130
+ return True, None
131
+ else:
132
+ return False, Exception("Docker is not running")
122
133
 
123
134
  def using_fastled_src_dir_volume(self) -> bool:
124
135
  out = self.fastled_src_dir is not None
@@ -201,24 +201,24 @@ class DockerManager:
201
201
  return False
202
202
 
203
203
  @staticmethod
204
- def is_running() -> bool:
204
+ def is_running() -> tuple[bool, Exception | None]:
205
205
  """Check if Docker is running by pinging the Docker daemon."""
206
206
 
207
207
  if not DockerManager.is_docker_installed():
208
208
  print("Docker is not installed.")
209
- return False
209
+ return False, Exception("Docker is not installed.")
210
210
  try:
211
211
  # self.client.ping()
212
212
  client = docker.from_env()
213
213
  client.ping()
214
214
  print("Docker is running.")
215
- return True
215
+ return True, None
216
216
  except DockerException as e:
217
217
  print(f"Docker is not running: {str(e)}")
218
- return False
218
+ return False, e
219
219
  except Exception as e:
220
220
  print(f"Error pinging Docker daemon: {str(e)}")
221
- return False
221
+ return False, e
222
222
 
223
223
  def start(self) -> bool:
224
224
  """Attempt to start Docker Desktop (or the Docker daemon) automatically."""
@@ -232,7 +232,7 @@ class DockerManager:
232
232
  return False
233
233
  subprocess.run(["start", "", docker_path], shell=True)
234
234
  elif sys.platform == "darwin":
235
- subprocess.run(["open", "/Applications/Docker.app"])
235
+ subprocess.run(["open", "-a", "Docker"])
236
236
  elif sys.platform.startswith("linux"):
237
237
  subprocess.run(["sudo", "systemctl", "start", "docker"])
238
238
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.2.65
3
+ Version: 1.2.68
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -300,7 +300,6 @@ Q: How can I get the compiled size of my FastLED sketch smaller?
300
300
  A: A big chunk of space is being used by unnecessary javascript `emscripten` bundling. The wasm_compiler_settings.py file in the FastLED repo can tweak this.
301
301
 
302
302
 
303
-
304
303
  # Revisions
305
304
  * 1.2.31 - Bunch of fixes and ease of use while compiling code in the repo.
306
305
  * 1.2.22 - Prefer to use `live-server` from npm. If npm exists on the system then do a background install of `live-server` for next run.
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
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