fastled 1.2.24__tar.gz → 1.2.25__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 (86) hide show
  1. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/build_multi_docker_image.yml +54 -4
  2. {fastled-1.2.24 → fastled-1.2.25}/PKG-INFO +1 -2
  3. {fastled-1.2.24 → fastled-1.2.25}/README.md +0 -1
  4. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/__init__.py +1 -1
  5. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/docker_manager.py +5 -1
  6. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/PKG-INFO +1 -2
  7. {fastled-1.2.24 → fastled-1.2.25}/.aiderignore +0 -0
  8. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/build_webpage.yml +0 -0
  9. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/lint.yml +0 -0
  10. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/publish_release.yml +0 -0
  11. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/test_build_exe.yml +0 -0
  12. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/test_macos.yml +0 -0
  13. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/test_ubuntu.yml +0 -0
  14. {fastled-1.2.24 → fastled-1.2.25}/.github/workflows/test_win.yml +0 -0
  15. {fastled-1.2.24 → fastled-1.2.25}/.gitignore +0 -0
  16. {fastled-1.2.24 → fastled-1.2.25}/.pylintrc +0 -0
  17. {fastled-1.2.24 → fastled-1.2.25}/.vscode/launch.json +0 -0
  18. {fastled-1.2.24 → fastled-1.2.25}/.vscode/settings.json +0 -0
  19. {fastled-1.2.24 → fastled-1.2.25}/.vscode/tasks.json +0 -0
  20. {fastled-1.2.24 → fastled-1.2.25}/LICENSE +0 -0
  21. {fastled-1.2.24 → fastled-1.2.25}/MANIFEST.in +0 -0
  22. {fastled-1.2.24 → fastled-1.2.25}/RELEASE.md +0 -0
  23. {fastled-1.2.24 → fastled-1.2.25}/TODO.md +0 -0
  24. {fastled-1.2.24 → fastled-1.2.25}/build_exe.py +0 -0
  25. {fastled-1.2.24 → fastled-1.2.25}/build_site.py +0 -0
  26. {fastled-1.2.24 → fastled-1.2.25}/clean +0 -0
  27. {fastled-1.2.24 → fastled-1.2.25}/install +0 -0
  28. {fastled-1.2.24 → fastled-1.2.25}/install_linux.sh +0 -0
  29. {fastled-1.2.24 → fastled-1.2.25}/lint +0 -0
  30. {fastled-1.2.24 → fastled-1.2.25}/pyproject.toml +0 -0
  31. {fastled-1.2.24 → fastled-1.2.25}/requirements.testing.txt +0 -0
  32. {fastled-1.2.24 → fastled-1.2.25}/setup.cfg +0 -0
  33. {fastled-1.2.24 → fastled-1.2.25}/setup.py +0 -0
  34. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/app.py +0 -0
  35. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/assets/example.txt +0 -0
  36. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/cli.py +0 -0
  37. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/client_server.py +0 -0
  38. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/compile_server.py +0 -0
  39. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/compile_server_impl.py +0 -0
  40. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/filewatcher.py +0 -0
  41. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/keyboard.py +0 -0
  42. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/live_client.py +0 -0
  43. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/open_browser.py +0 -0
  44. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/open_browser2.py +0 -0
  45. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/parse_args.py +0 -0
  46. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/paths.py +0 -0
  47. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/project_init.py +0 -0
  48. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/select_sketch_directory.py +0 -0
  49. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/settings.py +0 -0
  50. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/site/build.py +0 -0
  51. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/sketch.py +0 -0
  52. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/spinner.py +0 -0
  53. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/string_diff.py +0 -0
  54. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  55. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/test/examples.py +0 -0
  56. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/types.py +0 -0
  57. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/util.py +0 -0
  58. {fastled-1.2.24 → fastled-1.2.25}/src/fastled/web_compile.py +0 -0
  59. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/SOURCES.txt +0 -0
  60. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/dependency_links.txt +0 -0
  61. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/entry_points.txt +0 -0
  62. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/requires.txt +0 -0
  63. {fastled-1.2.24 → fastled-1.2.25}/src/fastled.egg-info/top_level.txt +0 -0
  64. {fastled-1.2.24 → fastled-1.2.25}/test +0 -0
  65. {fastled-1.2.24 → fastled-1.2.25}/tests/html/index.html +0 -0
  66. {fastled-1.2.24 → fastled-1.2.25}/tests/test_api.py +0 -0
  67. {fastled-1.2.24 → fastled-1.2.25}/tests/test_bad_ino.py +0 -0
  68. {fastled-1.2.24 → fastled-1.2.25}/tests/test_build.py +0 -0
  69. {fastled-1.2.24 → fastled-1.2.25}/tests/test_build_examples.py +0 -0
  70. {fastled-1.2.24 → fastled-1.2.25}/tests/test_cli.py +0 -0
  71. {fastled-1.2.24 → fastled-1.2.25}/tests/test_compile_server.py +0 -0
  72. {fastled-1.2.24 → fastled-1.2.25}/tests/test_docker_linux_on_windows.py +0 -0
  73. {fastled-1.2.24 → fastled-1.2.25}/tests/test_embedded_data.py +0 -0
  74. {fastled-1.2.24 → fastled-1.2.25}/tests/test_examples.py +0 -0
  75. {fastled-1.2.24 → fastled-1.2.25}/tests/test_filechanger.py +0 -0
  76. {fastled-1.2.24 → fastled-1.2.25}/tests/test_http_server.py +0 -0
  77. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/bad/bad.ino +0 -0
  78. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/bad_platformio/bad_platformio.ino +0 -0
  79. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/bad_platformio/platformio.ini +0 -0
  80. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  81. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/embedded/wasm.ino +0 -0
  82. {fastled-1.2.24 → fastled-1.2.25}/tests/test_ino/wasm/wasm.ino +0 -0
  83. {fastled-1.2.24 → fastled-1.2.25}/tests/test_project_init.py +0 -0
  84. {fastled-1.2.24 → fastled-1.2.25}/tests/test_server_and_client_seperatly.py +0 -0
  85. {fastled-1.2.24 → fastled-1.2.25}/tests/test_webcompile.py +0 -0
  86. {fastled-1.2.24 → fastled-1.2.25}/upload_package.sh +0 -0
@@ -42,7 +42,7 @@ jobs:
42
42
  echo "should_run=false" >> $GITHUB_OUTPUT
43
43
  fi
44
44
 
45
- build:
45
+ build-amd64:
46
46
  needs: check-if-changed
47
47
  if: needs.check-if-changed.outputs.should_run == 'true'
48
48
  runs-on: ubuntu-24.04
@@ -51,6 +51,57 @@ jobs:
51
51
  matrix:
52
52
  platform:
53
53
  - linux/amd64
54
+ steps:
55
+ - name: Prepare
56
+ run: |
57
+ platform=${{ matrix.platform }}
58
+ echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
59
+ - name: Docker meta
60
+ id: meta
61
+ uses: docker/metadata-action@v5
62
+ with:
63
+ images: ${{ env.REGISTRY_IMAGE }}
64
+ - name: Set up Docker Buildx
65
+ uses: docker/setup-buildx-action@v3
66
+ - name: Login to Docker Hub
67
+ uses: docker/login-action@v3
68
+ with:
69
+ username: ${{ secrets.DOCKER_USERNAME }}
70
+ password: ${{ secrets.DOCKER_PASSWORD }}
71
+ - name: Build and push by digest
72
+ id: build
73
+ uses: docker/build-push-action@v6
74
+ with:
75
+ platforms: ${{ matrix.platform }}
76
+ context: https://github.com/fastled/fastled.git
77
+ file: src/platforms/wasm/compiler/Dockerfile
78
+ labels: ${{ steps.meta.outputs.labels }}
79
+ outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
80
+ build-args: |
81
+ PLATFORM_TAG=${{ matrix.platform == 'linux/arm64' && '-arm64' || '' }}
82
+ cache-from: type=gha
83
+ cache-to: type=gha,mode=max,compression=zstd
84
+ - name: Export digest
85
+ run: |
86
+ mkdir -p /tmp/digests
87
+ digest="${{ steps.build.outputs.digest }}"
88
+ touch "/tmp/digests/${digest#sha256:}"
89
+ - name: Upload digest
90
+ uses: actions/upload-artifact@v4
91
+ with:
92
+ name: digests-${{ env.PLATFORM_PAIR }}
93
+ path: /tmp/digests/*
94
+ if-no-files-found: error
95
+ retention-days: 1
96
+
97
+ build-arm:
98
+ needs: check-if-changed
99
+ if: needs.check-if-changed.outputs.should_run == 'true'
100
+ runs-on: ubuntu-24.04-arm
101
+ strategy:
102
+ fail-fast: false
103
+ matrix:
104
+ platform:
54
105
  - linux/arm64
55
106
  steps:
56
107
  - name: Prepare
@@ -62,8 +113,6 @@ jobs:
62
113
  uses: docker/metadata-action@v5
63
114
  with:
64
115
  images: ${{ env.REGISTRY_IMAGE }}
65
- - name: Set up QEMU
66
- uses: docker/setup-qemu-action@v3
67
116
  - name: Set up Docker Buildx
68
117
  uses: docker/setup-buildx-action@v3
69
118
  - name: Login to Docker Hub
@@ -101,7 +150,8 @@ jobs:
101
150
  runs-on: ubuntu-24.04
102
151
  needs:
103
152
  - check-if-changed
104
- - build
153
+ - build-amd64
154
+ - build-arm
105
155
  if: needs.check-if-changed.outputs.should_run == 'true'
106
156
  steps:
107
157
  - name: Download digests
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.24
3
+ Version: 1.2.25
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -293,7 +293,6 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
293
293
  Q: How can I get the compiled size of my FastLED sketch smaller?
294
294
  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.
295
295
 
296
-
297
296
  # Revisions
298
297
 
299
298
  * 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.
@@ -267,7 +267,6 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
267
267
  Q: How can I get the compiled size of my FastLED sketch smaller?
268
268
  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.
269
269
 
270
-
271
270
  # Revisions
272
271
 
273
272
  * 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.
@@ -15,7 +15,7 @@ from .types import BuildMode, CompileResult, CompileServerError
15
15
  # IMPORTANT! There's a bug in github which will REJECT any version update
16
16
  # that has any other change in the repo. Please bump the version as the
17
17
  # ONLY change in a commit, or else the pypi update and the release will fail.
18
- __version__ = "1.2.24"
18
+ __version__ = "1.2.25"
19
19
 
20
20
 
21
21
  class Api:
@@ -523,6 +523,7 @@ class DockerManager:
523
523
  container.remove(force=True)
524
524
  except docker.errors.NotFound:
525
525
  pass
526
+ start_time = time.time()
526
527
  try:
527
528
  docker_command: list[str] = [
528
529
  "docker",
@@ -546,7 +547,10 @@ class DockerManager:
546
547
  subprocess.run(docker_command, check=True)
547
548
  except subprocess.CalledProcessError as e:
548
549
  print(f"Error running Docker command: {e}")
549
- raise
550
+ diff = time.time() - start_time
551
+ if diff < 5:
552
+ raise
553
+ sys.exit(1) # Probably a user exit.
550
554
 
551
555
  def attach_and_run(self, container: Container | str) -> RunningContainer:
552
556
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.24
3
+ Version: 1.2.25
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -293,7 +293,6 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
293
293
  Q: How can I get the compiled size of my FastLED sketch smaller?
294
294
  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.
295
295
 
296
-
297
296
  # Revisions
298
297
 
299
298
  * 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