fastled 1.2.27__tar.gz → 1.2.28__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.27 → fastled-1.2.28}/PKG-INFO +1 -1
  2. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/__init__.py +1 -1
  3. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/compile_server_impl.py +23 -1
  4. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/PKG-INFO +1 -1
  5. {fastled-1.2.27 → fastled-1.2.28}/tests/test_http_server.py +7 -0
  6. {fastled-1.2.27 → fastled-1.2.28}/.aiderignore +0 -0
  7. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/build_multi_docker_image.yml +0 -0
  8. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/build_webpage.yml +0 -0
  9. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/lint.yml +0 -0
  10. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/publish_release.yml +0 -0
  11. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/test_build_exe.yml +0 -0
  12. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/test_macos.yml +0 -0
  13. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/test_ubuntu.yml +0 -0
  14. {fastled-1.2.27 → fastled-1.2.28}/.github/workflows/test_win.yml +0 -0
  15. {fastled-1.2.27 → fastled-1.2.28}/.gitignore +0 -0
  16. {fastled-1.2.27 → fastled-1.2.28}/.pylintrc +0 -0
  17. {fastled-1.2.27 → fastled-1.2.28}/.vscode/launch.json +0 -0
  18. {fastled-1.2.27 → fastled-1.2.28}/.vscode/settings.json +0 -0
  19. {fastled-1.2.27 → fastled-1.2.28}/.vscode/tasks.json +0 -0
  20. {fastled-1.2.27 → fastled-1.2.28}/LICENSE +0 -0
  21. {fastled-1.2.27 → fastled-1.2.28}/MANIFEST.in +0 -0
  22. {fastled-1.2.27 → fastled-1.2.28}/README.md +0 -0
  23. {fastled-1.2.27 → fastled-1.2.28}/RELEASE.md +0 -0
  24. {fastled-1.2.27 → fastled-1.2.28}/TODO.md +0 -0
  25. {fastled-1.2.27 → fastled-1.2.28}/build_exe.py +0 -0
  26. {fastled-1.2.27 → fastled-1.2.28}/build_site.py +0 -0
  27. {fastled-1.2.27 → fastled-1.2.28}/clean +0 -0
  28. {fastled-1.2.27 → fastled-1.2.28}/install +0 -0
  29. {fastled-1.2.27 → fastled-1.2.28}/install_linux.sh +0 -0
  30. {fastled-1.2.27 → fastled-1.2.28}/lint +0 -0
  31. {fastled-1.2.27 → fastled-1.2.28}/pyproject.toml +0 -0
  32. {fastled-1.2.27 → fastled-1.2.28}/requirements.testing.txt +0 -0
  33. {fastled-1.2.27 → fastled-1.2.28}/setup.cfg +0 -0
  34. {fastled-1.2.27 → fastled-1.2.28}/setup.py +0 -0
  35. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/app.py +0 -0
  36. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/assets/example.txt +0 -0
  37. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/cli.py +0 -0
  38. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/client_server.py +0 -0
  39. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/compile_server.py +0 -0
  40. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/docker_manager.py +0 -0
  41. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/filewatcher.py +0 -0
  42. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/keyboard.py +0 -0
  43. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/live_client.py +0 -0
  44. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/open_browser.py +0 -0
  45. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/open_browser2.py +0 -0
  46. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/parse_args.py +0 -0
  47. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/paths.py +0 -0
  48. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/project_init.py +0 -0
  49. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/select_sketch_directory.py +0 -0
  50. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/settings.py +0 -0
  51. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/site/build.py +0 -0
  52. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/sketch.py +0 -0
  53. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/spinner.py +0 -0
  54. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/string_diff.py +0 -0
  55. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  56. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/test/examples.py +0 -0
  57. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/types.py +0 -0
  58. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/util.py +0 -0
  59. {fastled-1.2.27 → fastled-1.2.28}/src/fastled/web_compile.py +0 -0
  60. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/SOURCES.txt +0 -0
  61. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/dependency_links.txt +0 -0
  62. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/entry_points.txt +0 -0
  63. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/requires.txt +0 -0
  64. {fastled-1.2.27 → fastled-1.2.28}/src/fastled.egg-info/top_level.txt +0 -0
  65. {fastled-1.2.27 → fastled-1.2.28}/test +0 -0
  66. {fastled-1.2.27 → fastled-1.2.28}/tests/html/index.html +0 -0
  67. {fastled-1.2.27 → fastled-1.2.28}/tests/test_api.py +0 -0
  68. {fastled-1.2.27 → fastled-1.2.28}/tests/test_bad_ino.py +0 -0
  69. {fastled-1.2.27 → fastled-1.2.28}/tests/test_build.py +0 -0
  70. {fastled-1.2.27 → fastled-1.2.28}/tests/test_build_examples.py +0 -0
  71. {fastled-1.2.27 → fastled-1.2.28}/tests/test_cli.py +0 -0
  72. {fastled-1.2.27 → fastled-1.2.28}/tests/test_compile_server.py +0 -0
  73. {fastled-1.2.27 → fastled-1.2.28}/tests/test_docker_linux_on_windows.py +0 -0
  74. {fastled-1.2.27 → fastled-1.2.28}/tests/test_embedded_data.py +0 -0
  75. {fastled-1.2.27 → fastled-1.2.28}/tests/test_examples.py +0 -0
  76. {fastled-1.2.27 → fastled-1.2.28}/tests/test_filechanger.py +0 -0
  77. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/bad/bad.ino +0 -0
  78. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/bad_platformio/bad_platformio.ino +0 -0
  79. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/bad_platformio/platformio.ini +0 -0
  80. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  81. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/embedded/wasm.ino +0 -0
  82. {fastled-1.2.27 → fastled-1.2.28}/tests/test_ino/wasm/wasm.ino +0 -0
  83. {fastled-1.2.27 → fastled-1.2.28}/tests/test_project_init.py +0 -0
  84. {fastled-1.2.27 → fastled-1.2.28}/tests/test_server_and_client_seperatly.py +0 -0
  85. {fastled-1.2.27 → fastled-1.2.28}/tests/test_webcompile.py +0 -0
  86. {fastled-1.2.27 → fastled-1.2.28}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.27
3
+ Version: 1.2.28
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -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.27"
18
+ __version__ = "1.2.28"
19
19
 
20
20
 
21
21
  class Api:
@@ -111,7 +111,10 @@ class CompileServerImpl:
111
111
  return self.docker.is_container_running(self.container_name)
112
112
 
113
113
  def using_fastled_src_dir_volume(self) -> bool:
114
- return self.fastled_src_dir is not None
114
+ out = self.fastled_src_dir is not None
115
+ if out:
116
+ print(f"Using FastLED source directory: {self.fastled_src_dir}")
117
+ return out
115
118
 
116
119
  def port(self) -> int:
117
120
  if self._port == 0:
@@ -206,6 +209,24 @@ class CompileServerImpl:
206
209
  "bind": f"/mapped/{dir_name}",
207
210
  "mode": "rw",
208
211
  }
212
+ if self.fastled_src_dir is not None:
213
+ # add volume for src/platforms/wasm/compiler/CMakelists.txt
214
+ # to allow for interactive compilation
215
+ interactive_sources = [
216
+ "src/platforms/wasm/compiler/CMakeLists.txt",
217
+ "src/platforms/wasm/compiler/build_archive.sh",
218
+ ]
219
+ for src in interactive_sources:
220
+ src_path = Path(src).absolute()
221
+ if src_path.exists():
222
+ print(f"Mounting {src} into container")
223
+ src_str = str(src_path)
224
+ volumes[src_str] = {
225
+ "bind": f"/js/fastled/{src}",
226
+ "mode": "rw",
227
+ }
228
+ else:
229
+ print(f"Could not find {src}")
209
230
 
210
231
  cmd_str = subprocess.list2cmdline(server_command)
211
232
  if not self.interactive:
@@ -223,6 +244,7 @@ class CompileServerImpl:
223
244
  print("Compile server starting")
224
245
  return port
225
246
  else:
247
+
226
248
  self.docker.run_container_interactive(
227
249
  image_name=IMAGE_NAME,
228
250
  tag="main",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.27
3
+ Version: 1.2.28
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -26,6 +26,13 @@ class HttpServerTester(unittest.TestCase):
26
26
  self.assertEqual(response.status_code, 200)
27
27
  proc.terminate()
28
28
 
29
+ def test_http_server_404(self) -> None:
30
+ """Test the http server returns 404 for non-existent files."""
31
+ proc = Test.spawn_http_server(INDEX_HTML.parent, port=8022, open_browser=False)
32
+ response = httpx.get("http://localhost:8022/nonexistent.html", timeout=1)
33
+ self.assertEqual(response.status_code, 404)
34
+ proc.terminate()
35
+
29
36
 
30
37
  if __name__ == "__main__":
31
38
  unittest.main()
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