fastled 1.1.39__py2.py3-none-any.whl → 1.1.41__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 +2 -5
- fastled/client_server.py +6 -0
- fastled/parse_args.py +1 -1
- fastled/project_init.py +5 -2
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/METADATA +8 -2
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/RECORD +10 -10
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/WHEEL +1 -1
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/LICENSE +0 -0
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/entry_points.txt +0 -0
- {fastled-1.1.39.dist-info → fastled-1.1.41.dist-info}/top_level.txt +0 -0
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.
|
12
|
+
__version__ = "1.1.41"
|
13
13
|
|
14
14
|
|
15
15
|
class Api:
|
@@ -69,7 +69,6 @@ class Api:
|
|
69
69
|
|
70
70
|
@staticmethod
|
71
71
|
def spawn_server(
|
72
|
-
sketch_directory: Path | None = None,
|
73
72
|
interactive=False,
|
74
73
|
auto_updates=None,
|
75
74
|
auto_start=True,
|
@@ -81,7 +80,7 @@ class Api:
|
|
81
80
|
container_name=container_name,
|
82
81
|
interactive=interactive,
|
83
82
|
auto_updates=auto_updates,
|
84
|
-
mapped_dir=
|
83
|
+
mapped_dir=None,
|
85
84
|
auto_start=auto_start,
|
86
85
|
)
|
87
86
|
return out
|
@@ -89,14 +88,12 @@ class Api:
|
|
89
88
|
@staticmethod
|
90
89
|
@contextmanager
|
91
90
|
def server(
|
92
|
-
sketch_directory: Path | None = None,
|
93
91
|
interactive=False,
|
94
92
|
auto_updates=None,
|
95
93
|
auto_start=True,
|
96
94
|
container_name: str | None = None,
|
97
95
|
) -> Generator[CompileServer, None, None]:
|
98
96
|
server = Api.spawn_server(
|
99
|
-
sketch_directory=sketch_directory,
|
100
97
|
interactive=interactive,
|
101
98
|
auto_updates=auto_updates,
|
102
99
|
auto_start=auto_start,
|
fastled/client_server.py
CHANGED
@@ -22,6 +22,11 @@ from fastled.web_compile import (
|
|
22
22
|
)
|
23
23
|
|
24
24
|
|
25
|
+
# Override this function in your own code to run tests before compilation
|
26
|
+
def TEST_BEFORE_COMPILE(url) -> None:
|
27
|
+
pass
|
28
|
+
|
29
|
+
|
25
30
|
def _run_web_compiler(
|
26
31
|
directory: Path,
|
27
32
|
host: str,
|
@@ -153,6 +158,7 @@ def run_client(
|
|
153
158
|
profile: bool = profile,
|
154
159
|
last_hash_value: str | None = None,
|
155
160
|
) -> CompileResult:
|
161
|
+
TEST_BEFORE_COMPILE(url)
|
156
162
|
return _run_web_compiler(
|
157
163
|
directory,
|
158
164
|
host=url,
|
fastled/parse_args.py
CHANGED
@@ -19,7 +19,7 @@ def parse_args() -> argparse.Namespace:
|
|
19
19
|
"""Parse command-line arguments."""
|
20
20
|
parser = argparse.ArgumentParser(description=f"FastLED WASM Compiler {__version__}")
|
21
21
|
parser.add_argument(
|
22
|
-
"--version", action="version", version=f"
|
22
|
+
"--version", action="version", version=f"{__version__}"
|
23
23
|
)
|
24
24
|
parser.add_argument(
|
25
25
|
"directory",
|
fastled/project_init.py
CHANGED
@@ -13,7 +13,8 @@ DEFAULT_EXAMPLE = "wasm"
|
|
13
13
|
def get_examples() -> list[str]:
|
14
14
|
response = httpx.get(ENDPOINT_INFO, timeout=4)
|
15
15
|
response.raise_for_status()
|
16
|
-
|
16
|
+
out: list[str] = response.json()["examples"]
|
17
|
+
return sorted(out)
|
17
18
|
|
18
19
|
|
19
20
|
def _prompt_for_example() -> str:
|
@@ -62,7 +63,9 @@ def project_init(
|
|
62
63
|
with zipfile.ZipFile(tmpzip, "r") as zip_ref:
|
63
64
|
zip_ref.extractall(outputdir)
|
64
65
|
tmpzip.unlink()
|
65
|
-
|
66
|
+
out = outputdir / example
|
67
|
+
assert out.exists()
|
68
|
+
return out
|
66
69
|
|
67
70
|
|
68
71
|
def unit_test() -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.41
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -27,11 +27,14 @@ Compiles an Arduino/Platformio sketch into a wasm binary that can be run directl
|
|
27
27
|
|
28
28
|
|
29
29
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/lint.yml)
|
30
|
-
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_multi_docker_image.yml)
|
31
30
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_macos.yml)
|
32
31
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_ubuntu.yml)
|
33
32
|
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_win.yml)
|
34
33
|
|
34
|
+
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_multi_docker_image.yml)
|
35
|
+
[](https://github.com/zackees/fastled-wasm/actions/workflows/test_build_exe.yml)
|
36
|
+
[](https://github.com/zackees/fastled-wasm/actions/workflows/create_version_tag.yml)
|
37
|
+
[](https://github.com/zackees/fastled-wasm/actions/workflows/build_release.yml)
|
35
38
|
|
36
39
|
|
37
40
|
# About
|
@@ -254,8 +257,11 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
|
|
254
257
|
Q: How can I get the compiled size of my FastLED sketch smaller?
|
255
258
|
A: A big chunk of space is being used by unnecessary javascript `emscripten` is bundling. This can be tweeked by the wasm_compiler_settings.py file in the FastLED repo.
|
256
259
|
|
260
|
+
|
257
261
|
# Revisions
|
258
262
|
|
263
|
+
* 1.1.41 - Platform executable (through pyinstaller) now enabled.
|
264
|
+
* 1.1.40 - Remove `sketch_directory` from Api object. This was only needed before we had a client/server architecture.
|
259
265
|
* 1.1.39 - Added `LiveClient`, `fastled.Api.live_server()` will spawn it. Allows user to have a live compiling client that re-triggers a compile on file changes.
|
260
266
|
* 1.1.38 - Cleanup the `fastled.Api` object and streamline for general use.
|
261
267
|
* 1.1.37 - `Test.test_examples()` is now unit tested to work correctly.
|
@@ -1,7 +1,7 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=kwgkMY8IWYQewAXh7xB4lYPy7P3M4IZNazRdPvIpTp8,3462
|
2
2
|
fastled/app.py,sha256=3xg7oVD-UYnKPU8SAY-Cs5UnAYdwpdpuEFRR2N8P1Tg,1787
|
3
3
|
fastled/cli.py,sha256=CNR_pQR0sNVPNuv8e_nmm-0PI8sU-eUBUgnWgWkzW9c,237
|
4
|
-
fastled/client_server.py,sha256=
|
4
|
+
fastled/client_server.py,sha256=MGE4rg40EA2ty6nKExVxkjUbPbif1Bbx0vDjwNcDOD8,12563
|
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=
|
12
|
+
fastled/parse_args.py,sha256=FKLucZPQoprln1U_L9ZhigLmoUwyGjN5U53LtIJ-rxQ,6141
|
13
13
|
fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
|
14
|
-
fastled/project_init.py,sha256=
|
14
|
+
fastled/project_init.py,sha256=We-fVf4FqFcXhKUqjWnhV1HXmfXbo-1nCBMJ_TCip2U,2177
|
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.
|
26
|
-
fastled-1.1.
|
27
|
-
fastled-1.1.
|
28
|
-
fastled-1.1.
|
29
|
-
fastled-1.1.
|
30
|
-
fastled-1.1.
|
25
|
+
fastled-1.1.41.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
26
|
+
fastled-1.1.41.dist-info/METADATA,sha256=IvguecOLyldh781GONmBvWZNB_7WfgJ0MQTTqjAK7so,18667
|
27
|
+
fastled-1.1.41.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
28
|
+
fastled-1.1.41.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
29
|
+
fastled-1.1.41.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
30
|
+
fastled-1.1.41.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|