fastled 1.1.34__py2.py3-none-any.whl → 1.1.35__py2.py3-none-any.whl

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.
fastled/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """FastLED Wasm Compiler package."""
2
2
 
3
- __version__ = "1.1.34"
3
+ __version__ = "1.1.35"
fastled/parse_args.py CHANGED
@@ -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
fastled/sketch.py CHANGED
@@ -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.
@@ -1,4 +1,4 @@
1
- fastled/__init__.py,sha256=TRIZQh3TjPKDDHL3ZVGeuIOaPljhjQmkhKhLO6W6U4k,61
1
+ fastled/__init__.py,sha256=Hv3bFWGTfJSV3upT49myC67gS1RIXEsL7bcCk1mvS3E,61
2
2
  fastled/app.py,sha256=Zw1RS72yyIZSDt1_08MDSzfY4YwLWzarwXM4nvy8GE4,1787
3
3
  fastled/build_mode.py,sha256=joMwsV4K1y_LijT4gEAcjx69RZBoe_KmFmHZdPYbL_4,631
4
4
  fastled/cli.py,sha256=CNR_pQR0sNVPNuv8e_nmm-0PI8sU-eUBUgnWgWkzW9c,237
@@ -9,20 +9,20 @@ fastled/env.py,sha256=8wctQwl5qE4CI8NBugHtgMmUfEfHZ869JX5lGdSOJxc,304
9
9
  fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
10
10
  fastled/keyboard.py,sha256=Zz_ggxOUTX2XQEy6K6kAoorVlUev4wEk9Awpvv9aStA,3241
11
11
  fastled/open_browser.py,sha256=vzMBcpDNY0f-Bx9KmEILKDANZ6gvsywCVwn1FRhPXh4,1770
12
- fastled/parse_args.py,sha256=OZkVjRNlparNYR0F9Ic4ud2B0pMSn4fnmVwUY1Va89o,6084
12
+ fastled/parse_args.py,sha256=xYgIxgI6bxCB2IYVydNhtkrlXFj5DQSGYqCr6z3ipws,6145
13
13
  fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
14
14
  fastled/project_init.py,sha256=ndQICZ9rBtfEPOnucZ3cgRE67PUKc66CJYO4Tkwmt_M,1932
15
15
  fastled/select_sketch_directory.py,sha256=TZdCjl1D7YMKjodMTvDRurPcpAmN3x0TcJxffER2NfM,1314
16
- fastled/sketch.py,sha256=5nRjg281lMH8Bo9wKjbcpTQCfEP574ZCG-lukvFmyQ8,2656
16
+ fastled/sketch.py,sha256=483TrrIdZJfo1MIu5FkD-V5OGmOfHmsZ2f6VvNsJBJM,3299
17
17
  fastled/spinner.py,sha256=VHxmvB92P0Z_zYxRajb5HiNmkHHvZ5dG7hKtZltzpcs,867
18
18
  fastled/string_diff.py,sha256=UR1oRhg9lsPzAG4bn_MwJMCn0evP5AigkBiwLiI9fgA,1354
19
19
  fastled/types.py,sha256=dDIsGHJkHNJ7B61wNp6X0JSLs_nrHiq7RlNqNWbwFec,194
20
20
  fastled/util.py,sha256=t4M3NFMhnCzfYbLvIyJi0RdFssZqbTN_vVIaej1WV-U,265
21
21
  fastled/web_compile.py,sha256=KuvKGdX6SSUUqC7YgX4T9SMSP5wdcPUhpg9-K9zPoTI,10378
22
22
  fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
23
- fastled-1.1.34.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
24
- fastled-1.1.34.dist-info/METADATA,sha256=G3dvar486uKa16kYTZvDdD75n6MtqybcAh3g_H_d4E0,15063
25
- fastled-1.1.34.dist-info/WHEEL,sha256=0VNUDWQJzfRahYI3neAhz2UVbRCtztpN5dPHAGvmGXc,109
26
- fastled-1.1.34.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
27
- fastled-1.1.34.dist-info/top_level.txt,sha256=xfG6Z_ol9V5YmBROkZq2QTRwjbS2ouCUxaTJsOwfkOo,14
28
- fastled-1.1.34.dist-info/RECORD,,
23
+ fastled-1.1.35.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
24
+ fastled-1.1.35.dist-info/METADATA,sha256=agUdG0NUZBMxPrqrLSeeAu7sUK2ERr1HAtRuwgfEFqc,15150
25
+ fastled-1.1.35.dist-info/WHEEL,sha256=0VNUDWQJzfRahYI3neAhz2UVbRCtztpN5dPHAGvmGXc,109
26
+ fastled-1.1.35.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
27
+ fastled-1.1.35.dist-info/top_level.txt,sha256=xfG6Z_ol9V5YmBROkZq2QTRwjbS2ouCUxaTJsOwfkOo,14
28
+ fastled-1.1.35.dist-info/RECORD,,