fastled 1.2.36__py3-none-any.whl → 1.2.39__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 +24 -13
- fastled/app.py +1 -1
- fastled/compile_server_impl.py +2 -4
- fastled/interactive_srcs.py +5 -0
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/METADATA +2 -2
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/RECORD +10 -9
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/LICENSE +0 -0
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/WHEEL +0 -0
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.36.dist-info → fastled-1.2.39.dist-info}/top_level.txt +0 -0
fastled/__init__.py
CHANGED
@@ -16,7 +16,7 @@ from .types import BuildMode, CompileResult, CompileServerError
|
|
16
16
|
# IMPORTANT! There's a bug in github which will REJECT any version update
|
17
17
|
# that has any other change in the repo. Please bump the version as the
|
18
18
|
# ONLY change in a commit, or else the pypi update and the release will fail.
|
19
|
-
__version__ = "1.2.
|
19
|
+
__version__ = "1.2.39"
|
20
20
|
|
21
21
|
|
22
22
|
class Api:
|
@@ -157,10 +157,10 @@ class Docker:
|
|
157
157
|
docker_mgr.purge(image_name=IMAGE_NAME)
|
158
158
|
|
159
159
|
@staticmethod
|
160
|
-
def
|
160
|
+
def spawn_server_from_github(
|
161
161
|
url: str = "https://github.com/fastled/fastled",
|
162
162
|
output_dir: Path | str = Path(".cache/fastled"),
|
163
|
-
) ->
|
163
|
+
) -> CompileServer:
|
164
164
|
"""Build the FastLED WASM compiler Docker image from a GitHub repository.
|
165
165
|
|
166
166
|
Args:
|
@@ -252,21 +252,32 @@ class Docker:
|
|
252
252
|
platform_tag=platform_tag,
|
253
253
|
)
|
254
254
|
|
255
|
-
# Run the container and return it
|
256
|
-
container = docker_mgr.run_container_detached(
|
257
|
-
|
258
|
-
|
255
|
+
# # Run the container and return it
|
256
|
+
# container = docker_mgr.run_container_detached(
|
257
|
+
# image_name=IMAGE_NAME,
|
258
|
+
# tag="main",
|
259
|
+
# container_name=CONTAINER_NAME,
|
260
|
+
# command=None, # Use default command from Dockerfile
|
261
|
+
# volumes=None, # No volumes needed for build
|
262
|
+
# ports=None, # No ports needed for build
|
263
|
+
# remove_previous=True, # Remove any existing container
|
264
|
+
# )
|
265
|
+
# name = container.name
|
266
|
+
# container.stop()
|
267
|
+
|
268
|
+
out: CompileServer = CompileServer(
|
259
269
|
container_name=CONTAINER_NAME,
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
270
|
+
interactive=False,
|
271
|
+
auto_updates=False,
|
272
|
+
mapped_dir=None,
|
273
|
+
auto_start=True,
|
274
|
+
remove_previous=True,
|
264
275
|
)
|
265
276
|
|
266
|
-
return
|
277
|
+
return out
|
267
278
|
|
268
279
|
@staticmethod
|
269
|
-
def
|
280
|
+
def spawn_server_from_fastled_repo(
|
270
281
|
project_root: Path | str = Path("."),
|
271
282
|
interactive: bool = False,
|
272
283
|
sketch_folder: Path | None = None,
|
fastled/app.py
CHANGED
@@ -66,7 +66,7 @@ def main() -> int:
|
|
66
66
|
print(f"Building Docker image at {project_root}")
|
67
67
|
from fastled import Api, Docker
|
68
68
|
|
69
|
-
server = Docker.
|
69
|
+
server = Docker.spawn_server_from_fastled_repo(
|
70
70
|
project_root=project_root, interactive=interactive
|
71
71
|
)
|
72
72
|
assert isinstance(server, CompileServer)
|
fastled/compile_server_impl.py
CHANGED
@@ -13,6 +13,7 @@ from fastled.docker_manager import (
|
|
13
13
|
DockerManager,
|
14
14
|
RunningContainer,
|
15
15
|
)
|
16
|
+
from fastled.interactive_srcs import INTERACTIVE_SOURCES
|
16
17
|
from fastled.settings import DEFAULT_CONTAINER_NAME, IMAGE_NAME, SERVER_PORT
|
17
18
|
from fastled.sketch import looks_like_fastled_repo
|
18
19
|
from fastled.types import BuildMode, CompileResult, CompileServerError
|
@@ -221,10 +222,7 @@ class CompileServerImpl:
|
|
221
222
|
if self.fastled_src_dir is not None:
|
222
223
|
# add volume for src/platforms/wasm/compiler/CMakelists.txt
|
223
224
|
# to allow for interactive compilation
|
224
|
-
interactive_sources =
|
225
|
-
"src/platforms/wasm/compiler/CMakeLists.txt",
|
226
|
-
"src/platforms/wasm/compiler/build_archive.sh",
|
227
|
-
]
|
225
|
+
interactive_sources = list(INTERACTIVE_SOURCES)
|
228
226
|
for src in interactive_sources:
|
229
227
|
src_path = Path(src).absolute()
|
230
228
|
if src_path.exists():
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: fastled
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.39
|
4
4
|
Summary: FastLED Wasm Compiler
|
5
5
|
Home-page: https://github.com/zackees/fastled-wasm
|
6
6
|
Maintainer: Zachary Vorhies
|
@@ -211,7 +211,7 @@ with Api.server() as server:
|
|
211
211
|
**Build Docker Image from a local copy of the FastLED repo**
|
212
212
|
```python
|
213
213
|
from fastapi import Docker, Api
|
214
|
-
container_name: str = Docker.
|
214
|
+
container_name: str = Docker.spawn_server_from_fastled_repo()
|
215
215
|
with Api.server(container_name=container_name) as server:
|
216
216
|
...
|
217
217
|
```
|
@@ -1,11 +1,12 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
2
|
-
fastled/app.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=G7jKW5FxIFKFHmudUx5d8_BMzncikXsQ8a1O-KvQ0EI,13035
|
2
|
+
fastled/app.py,sha256=dnbDSVpn7_wB3JZl-JAIROYbmmy0-K1RTyi7CaktKsc,3696
|
3
3
|
fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
|
4
4
|
fastled/client_server.py,sha256=Q_-ALIbp474gY1zkYHoaU36eVSIa87nRcSB6IZOoaCg,14315
|
5
5
|
fastled/compile_server.py,sha256=ul3eiZNX2wwmInooo3PJC3_kNpdejYVDIo94G3sV9HQ,2941
|
6
|
-
fastled/compile_server_impl.py,sha256=
|
6
|
+
fastled/compile_server_impl.py,sha256=vCuy4RlMm1FTJ6Xp6eFjV84xLVtLpdCaStz0N7Bi3n8,9977
|
7
7
|
fastled/docker_manager.py,sha256=cIxOSeHnDqrT5IWPP1sl1cF8XYy3sUNfoOE-JpuKr3U,29815
|
8
8
|
fastled/filewatcher.py,sha256=XjFTo6NvEaosGTPr2Uhj91aqmtFdYHzJfxPzjBTMkKA,7086
|
9
|
+
fastled/interactive_srcs.py,sha256=BZJ2IJNzUg4BuE_QWyD_y_xX978clY5CMzTSz8lvFcw,183
|
9
10
|
fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
|
10
11
|
fastled/live_client.py,sha256=MDauol0mxtXggV1Pv9ahC0Jjg_4wnnV6FjGEtdd9cxU,2763
|
11
12
|
fastled/open_browser.py,sha256=DDzOXNYVYLIDWVdmpJ-jLxZSAs5mw3VGHo2UIJ-T8SE,4339
|
@@ -25,9 +26,9 @@ fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
25
26
|
fastled/site/build.py,sha256=l4RajIk0bApiAifT1lyLjIZi9lpPtSba4cnwWP5UOKc,14064
|
26
27
|
fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
|
27
28
|
fastled/test/examples.py,sha256=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
|
28
|
-
fastled-1.2.
|
29
|
-
fastled-1.2.
|
30
|
-
fastled-1.2.
|
31
|
-
fastled-1.2.
|
32
|
-
fastled-1.2.
|
33
|
-
fastled-1.2.
|
29
|
+
fastled-1.2.39.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
30
|
+
fastled-1.2.39.dist-info/METADATA,sha256=C9UAsR0nUCIg7wm9qXuLF-NgBs7Ze7L0sOl2-E7nZLw,21261
|
31
|
+
fastled-1.2.39.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
32
|
+
fastled-1.2.39.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
33
|
+
fastled-1.2.39.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
34
|
+
fastled-1.2.39.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|