fastled 1.1.66__py3-none-any.whl → 1.1.67__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
@@ -9,7 +9,7 @@ from .compile_server import CompileServer
9
9
  from .live_client import LiveClient
10
10
  from .types import BuildMode, CompileResult, CompileServerError
11
11
 
12
- __version__ = "1.1.66"
12
+ __version__ = "1.1.67"
13
13
 
14
14
 
15
15
  class Api:
fastled/client_server.py CHANGED
@@ -308,9 +308,20 @@ def run_client_server(args: argparse.Namespace) -> int:
308
308
  build_mode: BuildMode = BuildMode.from_args(args)
309
309
 
310
310
  if not force_compile and not looks_like_sketch_directory(directory):
311
- print(
312
- "Error: Not a valid FastLED sketch directory, if you are sure it is, use --force-compile"
313
- )
311
+ # if there is only one directory in the sketch directory, use that
312
+ found_valid_child = False
313
+ if len(list(directory.iterdir())) == 1:
314
+ child_dir = next(directory.iterdir())
315
+ if looks_like_sketch_directory(child_dir):
316
+ found_valid_child = True
317
+ print(
318
+ f"The selected directory is not a valid FastLED sketch directory, the child directory {child_dir} looks like a sketch directory, using that instead."
319
+ )
320
+ directory = child_dir
321
+ if not found_valid_child:
322
+ print(
323
+ f"Error: {directory} is not a valid FastLED sketch directory, if you are sure it is, use --force-compile"
324
+ )
314
325
  return 1
315
326
 
316
327
  # If not explicitly using web compiler, check Docker installation
fastled/parse_args.py CHANGED
@@ -105,7 +105,7 @@ def parse_args() -> argparse.Namespace:
105
105
 
106
106
  if args.init:
107
107
  example = args.init if args.init is not True else None
108
- args.directory = project_init(example)
108
+ args.directory = project_init(example, args.directory)
109
109
  print("\nInitialized FastLED project in", args.directory)
110
110
  print(f"Use 'fastled {args.directory}' to compile the project.")
111
111
  sys.exit(0)
fastled/project_init.py CHANGED
@@ -51,6 +51,7 @@ def project_init(
51
51
  """
52
52
  host = host or DEFAULT_URL
53
53
  outputdir = Path(outputdir) if outputdir is not None else Path("fastled")
54
+ outputdir.mkdir(exist_ok=True, parents=True)
54
55
  if example == "PROMPT" or example is None:
55
56
  try:
56
57
  example = _prompt_for_example()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.1.66
3
+ Version: 1.1.67
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -10,16 +10,16 @@ Classifier: Programming Language :: Python :: 3
10
10
  Requires-Python: >=3.9
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
- Requires-Dist: docker
14
- Requires-Dist: httpx
15
- Requires-Dist: watchdog
16
- Requires-Dist: livereload
17
- Requires-Dist: download
18
- Requires-Dist: filelock
13
+ Requires-Dist: docker>=7.1.0
14
+ Requires-Dist: httpx>=0.28.1
15
+ Requires-Dist: watchdog>=6.0.0
16
+ Requires-Dist: livereload>=2.7.0
17
+ Requires-Dist: download>=0.3.5
18
+ Requires-Dist: filelock>=3.16.1
19
19
  Requires-Dist: disklru>=2.0.1
20
- Requires-Dist: appdirs
21
- Requires-Dist: rapidfuzz
22
- Requires-Dist: progress
20
+ Requires-Dist: appdirs>=1.4.4
21
+ Requires-Dist: rapidfuzz>=3.10.1
22
+ Requires-Dist: progress>=1.6
23
23
 
24
24
  # FastLED Wasm compiler
25
25
 
@@ -256,8 +256,9 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
256
256
  Q: How can I get the compiled size of my FastLED sketch smaller?
257
257
  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.
258
258
 
259
+
259
260
  # Revisions
260
-
261
+ * 1.1.67 - Pinned all the minimum versions of dependencies so we don't bind to an out of date py dep: https://github.com/zackees/fastled-wasm/issues/3
261
262
  * 1.1.61 - Excluded non compiling examples from the Test object as part of the api - no sense in having them if they won't compile.
262
263
  * 1.1.60 - Platform executables (macos-arm/macos-x86/windows/linux-x86) now auto building with each release. Add tests.
263
264
  * 1.1.52 - Add linux-arm
@@ -1,7 +1,7 @@
1
- fastled/__init__.py,sha256=aL5prnilcRw93zFftSaKU78gvhHbutdCTrMGp8w8kd4,3462
1
+ fastled/__init__.py,sha256=RpRC0t-T1ZK7KWpdcfe3M8qCAvv2nhth8DgacnW-M-s,3462
2
2
  fastled/app.py,sha256=AHLQczFKLV1ZyGCh45wTvJqQpQyJ_Ukh3MmG3Om4NHQ,1844
3
3
  fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
4
- fastled/client_server.py,sha256=MGE4rg40EA2ty6nKExVxkjUbPbif1Bbx0vDjwNcDOD8,12563
4
+ fastled/client_server.py,sha256=8L62zNtkGtErDtWrr4XVNsv7ji2zoS5rlqfCnwI3VKU,13177
5
5
  fastled/compile_server.py,sha256=Z7rHFs3M6QPbSCsbgHAQDk6GTVAJMMPCXtD4Y0mu8RM,2659
6
6
  fastled/compile_server_impl.py,sha256=ClBLtFHB0ucaT8tAJfI6o3bJ-LRnXc4Pxy7bVKnFiww,8803
7
7
  fastled/docker_manager.py,sha256=zBCFGk2P3_bS7_SUQ5j2lpsOS3RvIzXYkrJXC6xP69k,25383
@@ -9,9 +9,9 @@ fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
9
9
  fastled/keyboard.py,sha256=Zz_ggxOUTX2XQEy6K6kAoorVlUev4wEk9Awpvv9aStA,3241
10
10
  fastled/live_client.py,sha256=_KvqmyUyyGpoYET1Z9CdeUVoIbFjIUWwPcTp5XCQuxY,2075
11
11
  fastled/open_browser.py,sha256=vzMBcpDNY0f-Bx9KmEILKDANZ6gvsywCVwn1FRhPXh4,1770
12
- fastled/parse_args.py,sha256=zVDFudUO1pKYbC6G1h64O-riCqnNDQsJPTo4YyTIDUM,6238
12
+ fastled/parse_args.py,sha256=qsikaRmRDPOosPF1AmfjaATSwH2xxJbKDKswOyVn2oM,6254
13
13
  fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
14
- fastled/project_init.py,sha256=FH8LtrFwBVijGOzM4UczIdEET7XhXDtf0LkPUMNBVCs,2367
14
+ fastled/project_init.py,sha256=2WBdCN01hBfoYJn-x3TD5KsJEo5BTrHzr2QyszGzZAU,2416
15
15
  fastled/select_sketch_directory.py,sha256=TZdCjl1D7YMKjodMTvDRurPcpAmN3x0TcJxffER2NfM,1314
16
16
  fastled/settings.py,sha256=3eMKv0tLXgIQ0CFDboIp_l5_71rzIIyWg353YjnYJnc,323
17
17
  fastled/sketch.py,sha256=483TrrIdZJfo1MIu5FkD-V5OGmOfHmsZ2f6VvNsJBJM,3299
@@ -22,9 +22,9 @@ fastled/util.py,sha256=t4M3NFMhnCzfYbLvIyJi0RdFssZqbTN_vVIaej1WV-U,265
22
22
  fastled/web_compile.py,sha256=05PeLJ77QQC6PUKjDhsntBmyBola6QQIfF2k-zjYNE4,10261
23
23
  fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
24
24
  fastled/test/examples.py,sha256=EDXb6KastKOOWzew99zrpmcNcXTcAtYi8eud6F1pnWA,980
25
- fastled-1.1.66.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
26
- fastled-1.1.66.dist-info/METADATA,sha256=t0Ry3u8OPz5oQwttQxcX2jLGZsGV2R4BviIUeSl4izI,18480
27
- fastled-1.1.66.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
28
- fastled-1.1.66.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
29
- fastled-1.1.66.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
30
- fastled-1.1.66.dist-info/RECORD,,
25
+ fastled-1.1.67.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
26
+ fastled-1.1.67.dist-info/METADATA,sha256=K-Ik5jkSdI3wJJbAfIAY9lwwteCBakYtA_58sZL84mE,18695
27
+ fastled-1.1.67.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
28
+ fastled-1.1.67.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
29
+ fastled-1.1.67.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
30
+ fastled-1.1.67.dist-info/RECORD,,