fastled 1.2.99__py3-none-any.whl → 1.3.0__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
@@ -14,7 +14,7 @@ from .types import BuildMode, CompileResult, CompileServerError, FileResponse
14
14
  # IMPORTANT! There's a bug in github which will REJECT any version update
15
15
  # that has any other change in the repo. Please bump the version as the
16
16
  # ONLY change in a commit, or else the pypi update and the release will fail.
17
- __version__ = "1.2.99"
17
+ __version__ = "1.3.0"
18
18
 
19
19
 
20
20
  class Api:
fastled/app.py CHANGED
@@ -51,6 +51,7 @@ def run_server(args: Args) -> int:
51
51
 
52
52
  def main() -> int:
53
53
  from fastled import __version__
54
+ from fastled.select_sketch_directory import select_sketch_directory
54
55
 
55
56
  args = parse_args()
56
57
  interactive: bool = args.interactive
@@ -70,14 +71,11 @@ def main() -> int:
70
71
  # then prompt the user for a sketch directory.
71
72
  # 2. Tell the user they can use --server --interactive to
72
73
  # skip this prompt.
73
-
74
- from fastled.select_sketch_directory import select_sketch_directory
75
-
76
74
  if interactive and cwd_looks_like_fastled_repo and directory is None:
77
75
  answer = input(
78
76
  "No sketch directory selected, would you like to select one? (y/n): "
79
77
  )
80
- if answer.lower() == "y":
78
+ if answer.lower()[:1] == "y" or answer.lower() == "":
81
79
  sketch_list: list[Path] = find_sketch_directories()
82
80
  if sketch_list:
83
81
  maybe_dir: str | None = select_sketch_directory(
@@ -109,12 +107,6 @@ def main() -> int:
109
107
  # print(f"Building Docker image at {project_root}")
110
108
  from fastled import Api
111
109
 
112
- # server = Docker.spawn_server_from_fastled_repo(
113
- # project_root=project_root,
114
- # interactive=interactive,
115
- # sketch_folder=directory,
116
- # )
117
- # assert isinstance(server, CompileServer)
118
110
  server: CompileServer = CompileServer(
119
111
  interactive=interactive,
120
112
  auto_updates=False,
fastled/web_compile.py CHANGED
@@ -100,6 +100,9 @@ def zip_files(directory: Path, build_mode: BuildMode) -> ZipResult | Exception:
100
100
  zip_buffer, "w", zipfile.ZIP_DEFLATED, compresslevel=9
101
101
  ) as zip_file:
102
102
  for file_path in files:
103
+ if "fastled_js" in str(file_path):
104
+ # These can be huge, don't send the output files back to the server!
105
+ continue
103
106
  relative_path = file_path.relative_to(directory)
104
107
  achive_path = str(Path("wasm") / relative_path)
105
108
  if str(relative_path).startswith("data") and ENABLE_EMBEDDED_DATA:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastled
3
- Version: 1.2.99
3
+ Version: 1.3.0
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -20,7 +20,7 @@ Requires-Dist: progress>=1.6
20
20
  Requires-Dist: watchfiles>=1.0.5
21
21
  Requires-Dist: Flask>=3.0.0
22
22
  Requires-Dist: livereload
23
- Requires-Dist: fastled-wasm-server>=1.0.21
23
+ Requires-Dist: fastled-wasm-server>=1.0.22
24
24
  Dynamic: home-page
25
25
  Dynamic: license-file
26
26
  Dynamic: maintainer
@@ -1,5 +1,5 @@
1
- fastled/__init__.py,sha256=vYwDrL6zVfgQu7tvm1TvpWJI5cqoR7U7dmPU3zEl1V0,7044
2
- fastled/app.py,sha256=LyQXHmIjK8aqel9sDRmzSHjnOiaITbsnGPoz6IDXQFc,6032
1
+ fastled/__init__.py,sha256=r0CgzyJXgaLblHUB7BD0N9eBMGn3yEx9nFmht1yCU94,7043
2
+ fastled/app.py,sha256=1N5Q486YccaWCRqnaI2F04ktL64NAVjAN6i4c-zgm1o,5818
3
3
  fastled/cli.py,sha256=5EBsb02ueFUjlgrlg0GMdj3e5nnHVhvofmYyQRaw8uM,565
4
4
  fastled/cli_test.py,sha256=qJB9yLRFR3OwOwdIWSQ0fQsWLnA37v5pDccufiP_hTs,512
5
5
  fastled/cli_test_interactive.py,sha256=BjNhveZOk5aCffHbcrxPQQjWmAuj4ClVKKcKX5eY6yM,542
@@ -25,7 +25,7 @@ fastled/spinner.py,sha256=VHxmvB92P0Z_zYxRajb5HiNmkHHvZ5dG7hKtZltzpcs,867
25
25
  fastled/string_diff.py,sha256=NbtYxvBFxTUdmTpMLizlgZj2ULJ-7etj72GBdWDTGws,2496
26
26
  fastled/types.py,sha256=k1j1y5h1zpRonp1mqRXy797mSbLqzf5K1QEgl8f27jQ,4822
27
27
  fastled/util.py,sha256=hw3gxS1qGc5LL_QN88_VIjut6T0-61ImDQpxGp11DXY,1189
28
- fastled/web_compile.py,sha256=QTYHtcm55zsFxPhdA-qSPfL5Q4lhL3h3oNmir3m-Y3s,11345
28
+ fastled/web_compile.py,sha256=R159Od1VqeXTW6y3rQY0_P9f0CJYbPuBiMLqb-zBCUQ,11526
29
29
  fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
30
30
  fastled/assets/localhost-key.pem,sha256=Q-CNO_UoOd8fFNN4ljcnqwUeCMhzTplRjLO2x0pYRlU,1704
31
31
  fastled/assets/localhost.pem,sha256=QTwUtTwjYWbm9m3pHW2IlK2nFZJ8b0pppxPjhgVZqQo,1619
@@ -33,9 +33,9 @@ fastled/site/build.py,sha256=2YKU_UWKlJdGnjdbAbaL0co6kceFMSTVYwH1KCmgPZA,13987
33
33
  fastled/site/examples.py,sha256=s6vj2zJc6BfKlnbwXr1QWY1mzuDBMt6j5MEBOWjO_U8,155
34
34
  fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
35
35
  fastled/test/examples.py,sha256=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
36
- fastled-1.2.99.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
- fastled-1.2.99.dist-info/METADATA,sha256=2gaE-w-tsceFLsldUpX9ZGGfiltCAIHitZRbESYw7rI,30050
38
- fastled-1.2.99.dist-info/WHEEL,sha256=A8Eltl-h0W-qZDVezsLjjslosEH_pdYC2lQ0JcbgCzs,91
39
- fastled-1.2.99.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
40
- fastled-1.2.99.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
41
- fastled-1.2.99.dist-info/RECORD,,
36
+ fastled-1.3.0.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
37
+ fastled-1.3.0.dist-info/METADATA,sha256=PBAFal0DYFzbAfQFTQeSoMpF3lopVc3SUmBvfSe2MsA,30049
38
+ fastled-1.3.0.dist-info/WHEEL,sha256=A8Eltl-h0W-qZDVezsLjjslosEH_pdYC2lQ0JcbgCzs,91
39
+ fastled-1.3.0.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
40
+ fastled-1.3.0.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
41
+ fastled-1.3.0.dist-info/RECORD,,