fastled 1.1.34__tar.gz → 1.1.35__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 (104) hide show
  1. {fastled-1.1.34 → fastled-1.1.35}/PKG-INFO +2 -1
  2. {fastled-1.1.34 → fastled-1.1.35}/README.md +1 -0
  3. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/__init__.py +1 -1
  4. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/parse_args.py +1 -0
  5. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/sketch.py +21 -0
  6. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/PKG-INFO +2 -1
  7. {fastled-1.1.34 → fastled-1.1.35}/.aiderignore +0 -0
  8. {fastled-1.1.34 → fastled-1.1.35}/.github/workflows/build_multi_docker_image.yml +0 -0
  9. {fastled-1.1.34 → fastled-1.1.35}/.github/workflows/lint.yml +0 -0
  10. {fastled-1.1.34 → fastled-1.1.35}/.github/workflows/test_macos.yml +0 -0
  11. {fastled-1.1.34 → fastled-1.1.35}/.github/workflows/test_ubuntu.yml +0 -0
  12. {fastled-1.1.34 → fastled-1.1.35}/.github/workflows/test_win.yml +0 -0
  13. {fastled-1.1.34 → fastled-1.1.35}/.gitignore +0 -0
  14. {fastled-1.1.34 → fastled-1.1.35}/.pylintrc +0 -0
  15. {fastled-1.1.34 → fastled-1.1.35}/.vscode/launch.json +0 -0
  16. {fastled-1.1.34 → fastled-1.1.35}/.vscode/settings.json +0 -0
  17. {fastled-1.1.34 → fastled-1.1.35}/.vscode/tasks.json +0 -0
  18. {fastled-1.1.34 → fastled-1.1.35}/LICENSE +0 -0
  19. {fastled-1.1.34 → fastled-1.1.35}/MANIFEST.in +0 -0
  20. {fastled-1.1.34 → fastled-1.1.35}/clean +0 -0
  21. {fastled-1.1.34 → fastled-1.1.35}/docs/fastled.js +0 -0
  22. {fastled-1.1.34 → fastled-1.1.35}/docs/fastled.wasm +0 -0
  23. {fastled-1.1.34 → fastled-1.1.35}/docs/index.css +0 -0
  24. {fastled-1.1.34 → fastled-1.1.35}/docs/index.html +0 -0
  25. {fastled-1.1.34 → fastled-1.1.35}/docs/index.js +0 -0
  26. {fastled-1.1.34 → fastled-1.1.35}/examples/Blink/Blink.ino +0 -0
  27. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/Chromancer.ino +0 -0
  28. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/detail.h +0 -0
  29. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/gary_woos_wled_port/gary_woos_wled_ledmap.h +0 -0
  30. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/gary_woos_wled_port/presets.json +0 -0
  31. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/gary_woos_wled_port/presets.min.json +0 -0
  32. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/gen.py +0 -0
  33. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/mapping.h +0 -0
  34. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/net.h +0 -0
  35. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/output.json +0 -0
  36. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/ripple.h +0 -0
  37. {fastled-1.1.34 → fastled-1.1.35}/examples/Chromancer/screenmap.json.h +0 -0
  38. {fastled-1.1.34 → fastled-1.1.35}/examples/ColorPalette/ColorPalette.ino +0 -0
  39. {fastled-1.1.34 → fastled-1.1.35}/examples/ColorTemperature/ColorTemperature.ino +0 -0
  40. {fastled-1.1.34 → fastled-1.1.35}/examples/Cylon/Cylon.ino +0 -0
  41. {fastled-1.1.34 → fastled-1.1.35}/examples/DemoReel100/DemoReel100.ino +0 -0
  42. {fastled-1.1.34 → fastled-1.1.35}/examples/Esp32Rmt51/Esp32Rmt51.ino +0 -0
  43. {fastled-1.1.34 → fastled-1.1.35}/examples/EspI2SDemo/EspI2SDemo.ino +0 -0
  44. {fastled-1.1.34 → fastled-1.1.35}/examples/Fire2012/Fire2012.ino +0 -0
  45. {fastled-1.1.34 → fastled-1.1.35}/examples/Fire2012WithPalette/Fire2012WithPalette.ino +0 -0
  46. {fastled-1.1.34 → fastled-1.1.35}/examples/FirstLight/FirstLight.ino +0 -0
  47. {fastled-1.1.34 → fastled-1.1.35}/examples/FxEngine/FxEngine.ino +0 -0
  48. {fastled-1.1.34 → fastled-1.1.35}/examples/Noise/Noise.ino +0 -0
  49. {fastled-1.1.34 → fastled-1.1.35}/examples/NoisePlayground/NoisePlayground.ino +0 -0
  50. {fastled-1.1.34 → fastled-1.1.35}/examples/NoisePlusPalette/NoisePlusPalette.ino +0 -0
  51. {fastled-1.1.34 → fastled-1.1.35}/examples/OctoWS2811/OctoWS2811.ino +0 -0
  52. {fastled-1.1.34 → fastled-1.1.35}/examples/Pacifica/Pacifica.ino +0 -0
  53. {fastled-1.1.34 → fastled-1.1.35}/examples/Pride2015/Pride2015.ino +0 -0
  54. {fastled-1.1.34 → fastled-1.1.35}/examples/TwinkleFox/TwinkleFox.ino +0 -0
  55. {fastled-1.1.34 → fastled-1.1.35}/examples/Video/Gfx2Video/Gfx2Video.ino +0 -0
  56. {fastled-1.1.34 → fastled-1.1.35}/examples/WasmScreenCoords/WasmScreenCoords.ino +0 -0
  57. {fastled-1.1.34 → fastled-1.1.35}/examples/Water/Water.ino +0 -0
  58. {fastled-1.1.34 → fastled-1.1.35}/examples/XYMatrix/XYMatrix.ino +0 -0
  59. {fastled-1.1.34 → fastled-1.1.35}/examples/wasm/wasm.ino +0 -0
  60. {fastled-1.1.34 → fastled-1.1.35}/install +0 -0
  61. {fastled-1.1.34 → fastled-1.1.35}/lint +0 -0
  62. {fastled-1.1.34 → fastled-1.1.35}/pyproject.toml +0 -0
  63. {fastled-1.1.34 → fastled-1.1.35}/requirements.testing.txt +0 -0
  64. {fastled-1.1.34 → fastled-1.1.35}/setup.cfg +0 -0
  65. {fastled-1.1.34 → fastled-1.1.35}/setup.py +0 -0
  66. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/app.py +0 -0
  67. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/assets/example.txt +0 -0
  68. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/build_mode.py +0 -0
  69. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/cli.py +0 -0
  70. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/client_server.py +0 -0
  71. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/compile_server.py +0 -0
  72. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/docker_manager.py +0 -0
  73. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/env.py +0 -0
  74. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/filewatcher.py +0 -0
  75. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/keyboard.py +0 -0
  76. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/open_browser.py +0 -0
  77. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/paths.py +0 -0
  78. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/project_init.py +0 -0
  79. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/select_sketch_directory.py +0 -0
  80. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/spinner.py +0 -0
  81. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/string_diff.py +0 -0
  82. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/types.py +0 -0
  83. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/util.py +0 -0
  84. {fastled-1.1.34 → fastled-1.1.35}/src/fastled/web_compile.py +0 -0
  85. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/SOURCES.txt +0 -0
  86. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/dependency_links.txt +0 -0
  87. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/entry_points.txt +0 -0
  88. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/requires.txt +0 -0
  89. {fastled-1.1.34 → fastled-1.1.35}/src/fastled.egg-info/top_level.txt +0 -0
  90. {fastled-1.1.34 → fastled-1.1.35}/test +0 -0
  91. {fastled-1.1.34 → fastled-1.1.35}/tests/test_bad_ino.py +0 -0
  92. {fastled-1.1.34 → fastled-1.1.35}/tests/test_cli.py +0 -0
  93. {fastled-1.1.34 → fastled-1.1.35}/tests/test_compile_server.py +0 -0
  94. {fastled-1.1.34 → fastled-1.1.35}/tests/test_docker_linux_on_windows.py +0 -0
  95. {fastled-1.1.34 → fastled-1.1.35}/tests/test_embedded_data.py +0 -0
  96. {fastled-1.1.34 → fastled-1.1.35}/tests/test_filechanger.py +0 -0
  97. {fastled-1.1.34 → fastled-1.1.35}/tests/test_ino/bad/bad.ino +0 -0
  98. {fastled-1.1.34 → fastled-1.1.35}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  99. {fastled-1.1.34 → fastled-1.1.35}/tests/test_ino/embedded/wasm.ino +0 -0
  100. {fastled-1.1.34 → fastled-1.1.35}/tests/test_ino/wasm/wasm.ino +0 -0
  101. {fastled-1.1.34 → fastled-1.1.35}/tests/test_project_init.py +0 -0
  102. {fastled-1.1.34 → fastled-1.1.35}/tests/test_server_and_client_seperatly.py +0 -0
  103. {fastled-1.1.34 → fastled-1.1.35}/tests/test_webcompile.py +0 -0
  104. {fastled-1.1.34 → fastled-1.1.35}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.1.34
3
+ Version: 1.1.35
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -163,6 +163,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
163
163
 
164
164
  # Revisions
165
165
 
166
+ * 1.1.35 - When searching for files cap the limit at a high amount to prevent hang.
166
167
  * 1.1.34 - On windows check to make sure we are in linux container mode, if not try to switch and if that fails then use `--web` compiler.
167
168
  * 1.1.33 - Auto updating frequency has been reduced from one hour to one day. To update immediatly use `--update`.
168
169
  * 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
@@ -140,6 +140,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
140
140
 
141
141
  # Revisions
142
142
 
143
+ * 1.1.35 - When searching for files cap the limit at a high amount to prevent hang.
143
144
  * 1.1.34 - On windows check to make sure we are in linux container mode, if not try to switch and if that fails then use `--web` compiler.
144
145
  * 1.1.33 - Auto updating frequency has been reduced from one hour to one day. To update immediatly use `--update`.
145
146
  * 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
@@ -1,3 +1,3 @@
1
1
  """FastLED Wasm Compiler package."""
2
2
 
3
- __version__ = "1.1.34"
3
+ __version__ = "1.1.35"
@@ -150,6 +150,7 @@ def parse_args() -> argparse.Namespace:
150
150
  if looks_like_sketch_directory(maybe_sketch_dir):
151
151
  args.directory = str(maybe_sketch_dir)
152
152
  else:
153
+ print("Searching for sketch directories...")
153
154
  sketch_directories = find_sketch_directories(maybe_sketch_dir)
154
155
  selected_dir = select_sketch_directory(
155
156
  sketch_directories, cwd_is_fastled
@@ -1,8 +1,11 @@
1
1
  import os
2
2
  from pathlib import Path
3
3
 
4
+ _MAX_FILES_SEARCH_LIMIT = 10000
5
+
4
6
 
5
7
  def find_sketch_directories(directory: Path) -> list[Path]:
8
+ file_count = 0
6
9
  sketch_directories: list[Path] = []
7
10
  # search all the paths one level deep
8
11
  for path in directory.iterdir():
@@ -10,6 +13,12 @@ def find_sketch_directories(directory: Path) -> list[Path]:
10
13
  dir_name = path.name
11
14
  if str(dir_name).startswith("."):
12
15
  continue
16
+ file_count += 1
17
+ if file_count > _MAX_FILES_SEARCH_LIMIT:
18
+ print(
19
+ f"More than {_MAX_FILES_SEARCH_LIMIT} files found. Stopping search."
20
+ )
21
+ break
13
22
 
14
23
  if looks_like_sketch_directory(path, quick=True):
15
24
  sketch_directories.append(path)
@@ -24,6 +33,7 @@ def find_sketch_directories(directory: Path) -> list[Path]:
24
33
 
25
34
 
26
35
  def get_sketch_files(directory: Path) -> list[Path]:
36
+ file_count = 0
27
37
  files: list[Path] = []
28
38
  for root, dirs, filenames in os.walk(directory):
29
39
  # ignore hidden directories
@@ -32,10 +42,21 @@ def get_sketch_files(directory: Path) -> list[Path]:
32
42
  dirs[:] = [d for d in dirs if "fastled_js" not in d]
33
43
  # ignore hidden files
34
44
  filenames = [f for f in filenames if not f.startswith(".")]
45
+ outer_break = False
35
46
  for filename in filenames:
36
47
  if "platformio.ini" in filename:
37
48
  continue
49
+ file_count += 1
50
+ if file_count > _MAX_FILES_SEARCH_LIMIT:
51
+ print(
52
+ f"More than {_MAX_FILES_SEARCH_LIMIT} files found. Stopping search."
53
+ )
54
+ outer_break = True
55
+ break
38
56
  files.append(Path(root) / filename)
57
+ if outer_break:
58
+ break
59
+
39
60
  return files
40
61
 
41
62
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.1.34
3
+ Version: 1.1.35
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -163,6 +163,7 @@ A: A big chunk of space is being used by unnecessary javascript `emscripten` is
163
163
 
164
164
  # Revisions
165
165
 
166
+ * 1.1.35 - When searching for files cap the limit at a high amount to prevent hang.
166
167
  * 1.1.34 - On windows check to make sure we are in linux container mode, if not try to switch and if that fails then use `--web` compiler.
167
168
  * 1.1.33 - Auto updating frequency has been reduced from one hour to one day. To update immediatly use `--update`.
168
169
  * 1.1.32 - `--init` now asks for which example you want, then tells you where the example was downloaded to. No longer auto-compiles.
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