fastled 1.2.44__tar.gz → 1.2.45__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 (121) hide show
  1. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/build_multi_docker_image.yml +4 -2
  2. fastled-1.2.44/.github/workflows/build_docker_image_template.yml → fastled-1.2.45/.github/workflows/template_build_docker_image.yml +4 -1
  3. {fastled-1.2.44 → fastled-1.2.45}/PKG-INFO +1 -1
  4. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/__init__.py +1 -1
  5. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/compile_server_impl.py +2 -3
  6. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/docker_manager.py +5 -2
  7. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/PKG-INFO +1 -1
  8. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/SOURCES.txt +1 -1
  9. {fastled-1.2.44 → fastled-1.2.45}/.aiderignore +0 -0
  10. {fastled-1.2.44 → fastled-1.2.45}/.dockerignore +0 -0
  11. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/build_webpage.yml +0 -0
  12. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/lint.yml +0 -0
  13. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/publish_release.yml +0 -0
  14. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/test_build_exe.yml +0 -0
  15. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/test_macos.yml +0 -0
  16. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/test_ubuntu.yml +0 -0
  17. {fastled-1.2.44 → fastled-1.2.45}/.github/workflows/test_win.yml +0 -0
  18. {fastled-1.2.44 → fastled-1.2.45}/.gitignore +0 -0
  19. {fastled-1.2.44 → fastled-1.2.45}/.pylintrc +0 -0
  20. {fastled-1.2.44 → fastled-1.2.45}/.vscode/launch.json +0 -0
  21. {fastled-1.2.44 → fastled-1.2.45}/.vscode/settings.json +0 -0
  22. {fastled-1.2.44 → fastled-1.2.45}/.vscode/tasks.json +0 -0
  23. {fastled-1.2.44 → fastled-1.2.45}/Dockerfile +0 -0
  24. {fastled-1.2.44 → fastled-1.2.45}/LICENSE +0 -0
  25. {fastled-1.2.44 → fastled-1.2.45}/MANIFEST.in +0 -0
  26. {fastled-1.2.44 → fastled-1.2.45}/README.md +0 -0
  27. {fastled-1.2.44 → fastled-1.2.45}/RELEASE.md +0 -0
  28. {fastled-1.2.44 → fastled-1.2.45}/TODO.md +0 -0
  29. {fastled-1.2.44 → fastled-1.2.45}/build_exe.py +0 -0
  30. {fastled-1.2.44 → fastled-1.2.45}/build_site.py +0 -0
  31. {fastled-1.2.44 → fastled-1.2.45}/clean +0 -0
  32. {fastled-1.2.44 → fastled-1.2.45}/compiler/CMakeLists.txt +0 -0
  33. {fastled-1.2.44 → fastled-1.2.45}/compiler/__init__.py +0 -0
  34. {fastled-1.2.44 → fastled-1.2.45}/compiler/arduino-pre-process.sh +0 -0
  35. {fastled-1.2.44 → fastled-1.2.45}/compiler/build.sh +0 -0
  36. {fastled-1.2.44 → fastled-1.2.45}/compiler/build_archive.sh +0 -0
  37. {fastled-1.2.44 → fastled-1.2.45}/compiler/build_fast.sh +0 -0
  38. {fastled-1.2.44 → fastled-1.2.45}/compiler/code_sync.py +0 -0
  39. {fastled-1.2.44 → fastled-1.2.45}/compiler/compile.py +0 -0
  40. {fastled-1.2.44 → fastled-1.2.45}/compiler/compile_lock.py +0 -0
  41. {fastled-1.2.44 → fastled-1.2.45}/compiler/entrypoint.sh +0 -0
  42. {fastled-1.2.44 → fastled-1.2.45}/compiler/extra/100dots.html +0 -0
  43. {fastled-1.2.44 → fastled-1.2.45}/compiler/extra/demo_threejs.html +0 -0
  44. {fastled-1.2.44 → fastled-1.2.45}/compiler/extra/webgl_postprocessing_unreal_bloom.html +0 -0
  45. {fastled-1.2.44 → fastled-1.2.45}/compiler/final_prewarm.sh +0 -0
  46. {fastled-1.2.44 → fastled-1.2.45}/compiler/index.css +0 -0
  47. {fastled-1.2.44 → fastled-1.2.45}/compiler/index.html +0 -0
  48. {fastled-1.2.44 → fastled-1.2.45}/compiler/index.js +0 -0
  49. {fastled-1.2.44 → fastled-1.2.45}/compiler/init_runtime.py +0 -0
  50. {fastled-1.2.44 → fastled-1.2.45}/compiler/install-arduino-cli.sh +0 -0
  51. {fastled-1.2.44 → fastled-1.2.45}/compiler/modules/graphics_manager.js +0 -0
  52. {fastled-1.2.44 → fastled-1.2.45}/compiler/modules/graphics_manager_threejs.js +0 -0
  53. {fastled-1.2.44 → fastled-1.2.45}/compiler/modules/ui_manager.js +0 -0
  54. {fastled-1.2.44 → fastled-1.2.45}/compiler/platformio.ini +0 -0
  55. {fastled-1.2.44 → fastled-1.2.45}/compiler/pre-process.sh +0 -0
  56. {fastled-1.2.44 → fastled-1.2.45}/compiler/prewarm.sh +0 -0
  57. {fastled-1.2.44 → fastled-1.2.45}/compiler/process-ino.py +0 -0
  58. {fastled-1.2.44 → fastled-1.2.45}/compiler/requirements.txt +0 -0
  59. {fastled-1.2.44 → fastled-1.2.45}/compiler/run.py +0 -0
  60. {fastled-1.2.44 → fastled-1.2.45}/compiler/server.py +0 -0
  61. {fastled-1.2.44 → fastled-1.2.45}/compiler/sketch_hasher.py +0 -0
  62. {fastled-1.2.44 → fastled-1.2.45}/compiler/wasm_compiler_flags.py +0 -0
  63. {fastled-1.2.44 → fastled-1.2.45}/docker-compose.yml +0 -0
  64. {fastled-1.2.44 → fastled-1.2.45}/install +0 -0
  65. {fastled-1.2.44 → fastled-1.2.45}/install_linux.sh +0 -0
  66. {fastled-1.2.44 → fastled-1.2.45}/lint +0 -0
  67. {fastled-1.2.44 → fastled-1.2.45}/pyproject.toml +0 -0
  68. {fastled-1.2.44 → fastled-1.2.45}/requirements.testing.txt +0 -0
  69. {fastled-1.2.44 → fastled-1.2.45}/setup.cfg +0 -0
  70. {fastled-1.2.44 → fastled-1.2.45}/setup.py +0 -0
  71. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/app.py +0 -0
  72. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/assets/example.txt +0 -0
  73. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/cli.py +0 -0
  74. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/client_server.py +0 -0
  75. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/compile_server.py +0 -0
  76. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/filewatcher.py +0 -0
  77. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/interactive_srcs.py +0 -0
  78. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/keyboard.py +0 -0
  79. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/live_client.py +0 -0
  80. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/open_browser.py +0 -0
  81. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/open_browser2.py +0 -0
  82. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/parse_args.py +0 -0
  83. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/paths.py +0 -0
  84. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/project_init.py +0 -0
  85. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/select_sketch_directory.py +0 -0
  86. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/settings.py +0 -0
  87. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/site/build.py +0 -0
  88. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/sketch.py +0 -0
  89. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/spinner.py +0 -0
  90. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/string_diff.py +0 -0
  91. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  92. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/test/examples.py +0 -0
  93. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/types.py +0 -0
  94. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/util.py +0 -0
  95. {fastled-1.2.44 → fastled-1.2.45}/src/fastled/web_compile.py +0 -0
  96. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/dependency_links.txt +0 -0
  97. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/entry_points.txt +0 -0
  98. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/requires.txt +0 -0
  99. {fastled-1.2.44 → fastled-1.2.45}/src/fastled.egg-info/top_level.txt +0 -0
  100. {fastled-1.2.44 → fastled-1.2.45}/test +0 -0
  101. {fastled-1.2.44 → fastled-1.2.45}/tests/html/index.html +0 -0
  102. {fastled-1.2.44 → fastled-1.2.45}/tests/test_api.py +0 -0
  103. {fastled-1.2.44 → fastled-1.2.45}/tests/test_bad_ino.py +0 -0
  104. {fastled-1.2.44 → fastled-1.2.45}/tests/test_build_examples.py +0 -0
  105. {fastled-1.2.44 → fastled-1.2.45}/tests/test_cli.py +0 -0
  106. {fastled-1.2.44 → fastled-1.2.45}/tests/test_compile_server.py +0 -0
  107. {fastled-1.2.44 → fastled-1.2.45}/tests/test_docker_linux_on_windows.py +0 -0
  108. {fastled-1.2.44 → fastled-1.2.45}/tests/test_embedded_data.py +0 -0
  109. {fastled-1.2.44 → fastled-1.2.45}/tests/test_examples.py +0 -0
  110. {fastled-1.2.44 → fastled-1.2.45}/tests/test_filechanger.py +0 -0
  111. {fastled-1.2.44 → fastled-1.2.45}/tests/test_http_server.py +0 -0
  112. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/bad/bad.ino +0 -0
  113. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/bad_platformio/bad_platformio.ino +0 -0
  114. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/bad_platformio/platformio.ini +0 -0
  115. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  116. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/embedded/wasm.ino +0 -0
  117. {fastled-1.2.44 → fastled-1.2.45}/tests/test_ino/wasm/wasm.ino +0 -0
  118. {fastled-1.2.44 → fastled-1.2.45}/tests/test_project_init.py +0 -0
  119. {fastled-1.2.44 → fastled-1.2.45}/tests/test_server_and_client_seperatly.py +0 -0
  120. {fastled-1.2.44 → fastled-1.2.45}/tests/test_webcompile.py +0 -0
  121. {fastled-1.2.44 → fastled-1.2.45}/upload_package.sh +0 -0
@@ -52,10 +52,11 @@ jobs:
52
52
 
53
53
  build-amd64:
54
54
  needs: credentials
55
- uses: ./.github/workflows/build_docker_image_template.yml
55
+ uses: ./.github/workflows/template_build_docker_image.yml
56
56
  with:
57
57
  runs_on: ubuntu-24.04
58
58
  platform: linux/amd64
59
+ tag: latest
59
60
  secrets:
60
61
  env_vars: |
61
62
  docker_username=${{ needs.credentials.outputs.docker_username }}
@@ -64,10 +65,11 @@ jobs:
64
65
 
65
66
  build-arm:
66
67
  needs: credentials
67
- uses: ./.github/workflows/build_docker_image_template.yml
68
+ uses: ./.github/workflows/template_build_docker_image.yml
68
69
  with:
69
70
  runs_on: ubuntu-24.04-arm
70
71
  platform: linux/arm64
72
+ tag: latest
71
73
  secrets:
72
74
  env_vars: |
73
75
  docker_username=${{ needs.credentials.outputs.docker_username }}
@@ -12,6 +12,9 @@ on:
12
12
  platform:
13
13
  required: true
14
14
  type: string
15
+ tag:
16
+ default: latest
17
+ type: string
15
18
 
16
19
  jobs:
17
20
  build:
@@ -43,7 +46,7 @@ jobs:
43
46
  with:
44
47
  images: ${{ env.docker_registry_image }}
45
48
  tags: |
46
- type=raw,value=latest,enable={{is_default_branch}}
49
+ type=raw,value=${{inputs.tag}},enable={{is_default_branch}}
47
50
 
48
51
  - name: Set up Docker Buildx
49
52
  uses: docker/setup-buildx-action@v3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.44
3
+ Version: 1.2.45
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -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.44"
16
+ __version__ = "1.2.45"
17
17
 
18
18
  DOCKER_FILE = (
19
19
  "https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/Dockerfile"
@@ -186,7 +186,7 @@ class CompileServerImpl:
186
186
  upgrade = True
187
187
  else:
188
188
  upgrade = self.auto_updates
189
- self.docker.validate_or_download_image(
189
+ updated = self.docker.validate_or_download_image(
190
190
  image_name=IMAGE_NAME, tag="latest", upgrade=upgrade
191
191
  )
192
192
  DISK_CACHE.put("last-update", now_str)
@@ -243,14 +243,13 @@ class CompileServerImpl:
243
243
  command=cmd_str,
244
244
  ports=ports,
245
245
  volumes=volumes,
246
- remove_previous=self.interactive or self.remove_previous,
246
+ remove_previous=self.interactive or self.remove_previous or updated,
247
247
  )
248
248
  self.running_container = self.docker.attach_and_run(container)
249
249
  assert self.running_container is not None, "Container should be running"
250
250
  print("Compile server starting")
251
251
  return port
252
252
  else:
253
-
254
253
  self.docker.run_container_interactive(
255
254
  image_name=IMAGE_NAME,
256
255
  tag="latest",
@@ -263,7 +263,7 @@ class DockerManager:
263
263
 
264
264
  def validate_or_download_image(
265
265
  self, image_name: str, tag: str = "latest", upgrade: bool = False
266
- ) -> None:
266
+ ) -> bool:
267
267
  """
268
268
  Validate if the image exists, and if not, download it.
269
269
  If upgrade is True, will pull the latest version even if image exists locally.
@@ -302,7 +302,7 @@ class DockerManager:
302
302
  )
303
303
  if remote_image_hash_from_local_image == remote_image_hash:
304
304
  print(f"Local image {image_name}:{tag} is up to date.")
305
- return
305
+ return False
306
306
 
307
307
  # Quick check for latest version
308
308
  with Spinner(f"Pulling newer version of {image_name}:{tag}..."):
@@ -316,10 +316,12 @@ class DockerManager:
316
316
  local_image_hash = self.client.images.get(f"{image_name}:{tag}").id
317
317
  if remote_image_hash is not None:
318
318
  DISK_CACHE.put(local_image_hash, remote_image_hash)
319
+ return True
319
320
 
320
321
  except docker.errors.ImageNotFound:
321
322
  print(f"Image {image_name}:{tag} not found.")
322
323
  with Spinner("Loading "):
324
+ # We use docker cli here because it shows the download.
323
325
  cmd_list = ["docker", "pull", f"{image_name}:{tag}"]
324
326
  cmd_str = subprocess.list2cmdline(cmd_list)
325
327
  print(f"Running command: {cmd_str}")
@@ -330,6 +332,7 @@ class DockerManager:
330
332
  print(f"Image {image_name}:{tag} downloaded successfully.")
331
333
  except docker.errors.ImageNotFound:
332
334
  warnings.warn(f"Image {image_name}:{tag} not found after download.")
335
+ return True
333
336
 
334
337
  def tag_image(self, image_name: str, old_tag: str, new_tag: str) -> None:
335
338
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.44
3
+ Version: 1.2.45
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -20,11 +20,11 @@ requirements.testing.txt
20
20
  setup.py
21
21
  test
22
22
  upload_package.sh
23
- .github/workflows/build_docker_image_template.yml
24
23
  .github/workflows/build_multi_docker_image.yml
25
24
  .github/workflows/build_webpage.yml
26
25
  .github/workflows/lint.yml
27
26
  .github/workflows/publish_release.yml
27
+ .github/workflows/template_build_docker_image.yml
28
28
  .github/workflows/test_build_exe.yml
29
29
  .github/workflows/test_macos.yml
30
30
  .github/workflows/test_ubuntu.yml
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes