fastled 1.2.43__py3-none-any.whl → 1.2.45__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 +1 -1
- fastled/app.py +3 -2
- fastled/compile_server_impl.py +5 -6
- fastled/docker_manager.py +5 -2
- fastled/settings.py +1 -1
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/METADATA +1 -1
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/RECORD +11 -11
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/WHEEL +1 -1
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/LICENSE +0 -0
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.43.dist-info → fastled-1.2.45.dist-info}/top_level.txt +0 -0
fastled/__init__.py
CHANGED
@@ -13,7 +13,7 @@ from .types import BuildMode, CompileResult, CompileServerError
|
|
13
13
|
# IMPORTANT! There's a bug in github which will REJECT any version update
|
14
14
|
# that has any other change in the repo. Please bump the version as the
|
15
15
|
# ONLY change in a commit, or else the pypi update and the release will fail.
|
16
|
-
__version__ = "1.2.
|
16
|
+
__version__ = "1.2.45"
|
17
17
|
|
18
18
|
DOCKER_FILE = (
|
19
19
|
"https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/Dockerfile"
|
fastled/app.py
CHANGED
@@ -115,14 +115,15 @@ def main() -> int:
|
|
115
115
|
if __name__ == "__main__":
|
116
116
|
# Note that the entry point for the exe is in cli.py
|
117
117
|
try:
|
118
|
-
sys.argv.append("-i")
|
119
|
-
sys.argv.append("-b")
|
118
|
+
# sys.argv.append("-i")
|
119
|
+
# sys.argv.append("-b")
|
120
120
|
# sys.argv.append("examples/wasm")
|
121
121
|
# sys.argv.append()
|
122
122
|
import os
|
123
123
|
|
124
124
|
os.chdir("../fastled")
|
125
125
|
sys.argv.append("examples/wasm")
|
126
|
+
sys.argv.append("--just-compile")
|
126
127
|
sys.exit(main())
|
127
128
|
except KeyboardInterrupt:
|
128
129
|
print("\nExiting from main...")
|
fastled/compile_server_impl.py
CHANGED
@@ -186,8 +186,8 @@ class CompileServerImpl:
|
|
186
186
|
upgrade = True
|
187
187
|
else:
|
188
188
|
upgrade = self.auto_updates
|
189
|
-
self.docker.validate_or_download_image(
|
190
|
-
image_name=IMAGE_NAME, tag="
|
189
|
+
updated = self.docker.validate_or_download_image(
|
190
|
+
image_name=IMAGE_NAME, tag="latest", upgrade=upgrade
|
191
191
|
)
|
192
192
|
DISK_CACHE.put("last-update", now_str)
|
193
193
|
|
@@ -238,22 +238,21 @@ class CompileServerImpl:
|
|
238
238
|
if not self.interactive:
|
239
239
|
container: Container = self.docker.run_container_detached(
|
240
240
|
image_name=IMAGE_NAME,
|
241
|
-
tag="
|
241
|
+
tag="latest",
|
242
242
|
container_name=self.container_name,
|
243
243
|
command=cmd_str,
|
244
244
|
ports=ports,
|
245
245
|
volumes=volumes,
|
246
|
-
remove_previous=self.interactive or self.remove_previous,
|
246
|
+
remove_previous=self.interactive or self.remove_previous or updated,
|
247
247
|
)
|
248
248
|
self.running_container = self.docker.attach_and_run(container)
|
249
249
|
assert self.running_container is not None, "Container should be running"
|
250
250
|
print("Compile server starting")
|
251
251
|
return port
|
252
252
|
else:
|
253
|
-
|
254
253
|
self.docker.run_container_interactive(
|
255
254
|
image_name=IMAGE_NAME,
|
256
|
-
tag="
|
255
|
+
tag="latest",
|
257
256
|
container_name=self.container_name,
|
258
257
|
command=cmd_str,
|
259
258
|
ports=ports,
|
fastled/docker_manager.py
CHANGED
@@ -263,7 +263,7 @@ class DockerManager:
|
|
263
263
|
|
264
264
|
def validate_or_download_image(
|
265
265
|
self, image_name: str, tag: str = "latest", upgrade: bool = False
|
266
|
-
) ->
|
266
|
+
) -> bool:
|
267
267
|
"""
|
268
268
|
Validate if the image exists, and if not, download it.
|
269
269
|
If upgrade is True, will pull the latest version even if image exists locally.
|
@@ -302,7 +302,7 @@ class DockerManager:
|
|
302
302
|
)
|
303
303
|
if remote_image_hash_from_local_image == remote_image_hash:
|
304
304
|
print(f"Local image {image_name}:{tag} is up to date.")
|
305
|
-
return
|
305
|
+
return False
|
306
306
|
|
307
307
|
# Quick check for latest version
|
308
308
|
with Spinner(f"Pulling newer version of {image_name}:{tag}..."):
|
@@ -316,10 +316,12 @@ class DockerManager:
|
|
316
316
|
local_image_hash = self.client.images.get(f"{image_name}:{tag}").id
|
317
317
|
if remote_image_hash is not None:
|
318
318
|
DISK_CACHE.put(local_image_hash, remote_image_hash)
|
319
|
+
return True
|
319
320
|
|
320
321
|
except docker.errors.ImageNotFound:
|
321
322
|
print(f"Image {image_name}:{tag} not found.")
|
322
323
|
with Spinner("Loading "):
|
324
|
+
# We use docker cli here because it shows the download.
|
323
325
|
cmd_list = ["docker", "pull", f"{image_name}:{tag}"]
|
324
326
|
cmd_str = subprocess.list2cmdline(cmd_list)
|
325
327
|
print(f"Running command: {cmd_str}")
|
@@ -330,6 +332,7 @@ class DockerManager:
|
|
330
332
|
print(f"Image {image_name}:{tag} downloaded successfully.")
|
331
333
|
except docker.errors.ImageNotFound:
|
332
334
|
warnings.warn(f"Image {image_name}:{tag} not found after download.")
|
335
|
+
return True
|
333
336
|
|
334
337
|
def tag_image(self, image_name: str, old_tag: str, new_tag: str) -> None:
|
335
338
|
"""
|
fastled/settings.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
2
|
-
fastled/app.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=vc-7xbETDyY_73bU9OqZ1Iv61JJy6QWjpfyv8JaCfO4,6747
|
2
|
+
fastled/app.py,sha256=BrkBKyDjvWR-zn6T0k7OV-Y9mosS6IH40WcfZ1ZacUY,3982
|
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=
|
7
|
-
fastled/docker_manager.py,sha256=
|
6
|
+
fastled/compile_server_impl.py,sha256=xhC7WBlIfvghgpxAP8VwBeM13NuTA99cI47prODW-IU,9927
|
7
|
+
fastled/docker_manager.py,sha256=U_ESwZ32btC0Y-83m5V7d11HBHw2IH0RmoYw9ips8BA,30055
|
8
8
|
fastled/filewatcher.py,sha256=XjFTo6NvEaosGTPr2Uhj91aqmtFdYHzJfxPzjBTMkKA,7086
|
9
9
|
fastled/interactive_srcs.py,sha256=F5nHdJc60xsnmOtnKhngE9JytqGn56PmYw_MVSIX1ac,138
|
10
10
|
fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
|
@@ -15,7 +15,7 @@ fastled/parse_args.py,sha256=xgjxirQVX3FQxHZNVJtQQxTOeSJRQdGUNQ7W33Y880Y,8051
|
|
15
15
|
fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
|
16
16
|
fastled/project_init.py,sha256=bBt4DwmW5hZkm9ICt9Qk-0Nr_0JQM7icCgH5Iv-bCQs,3984
|
17
17
|
fastled/select_sketch_directory.py,sha256=TZdCjl1D7YMKjodMTvDRurPcpAmN3x0TcJxffER2NfM,1314
|
18
|
-
fastled/settings.py,sha256=
|
18
|
+
fastled/settings.py,sha256=AZI_Khogy-HOs_ZGXXJimqW4HiAIiitU9fY5knDbjYU,432
|
19
19
|
fastled/sketch.py,sha256=tHckjDj8P6BI_LWzUFM071a9qcqPs-r-qFWIe50P5Xw,3391
|
20
20
|
fastled/spinner.py,sha256=VHxmvB92P0Z_zYxRajb5HiNmkHHvZ5dG7hKtZltzpcs,867
|
21
21
|
fastled/string_diff.py,sha256=UR1oRhg9lsPzAG4bn_MwJMCn0evP5AigkBiwLiI9fgA,1354
|
@@ -26,9 +26,9 @@ fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
26
26
|
fastled/site/build.py,sha256=l4RajIk0bApiAifT1lyLjIZi9lpPtSba4cnwWP5UOKc,14064
|
27
27
|
fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
|
28
28
|
fastled/test/examples.py,sha256=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
|
29
|
-
fastled-1.2.
|
30
|
-
fastled-1.2.
|
31
|
-
fastled-1.2.
|
32
|
-
fastled-1.2.
|
33
|
-
fastled-1.2.
|
34
|
-
fastled-1.2.
|
29
|
+
fastled-1.2.45.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
30
|
+
fastled-1.2.45.dist-info/METADATA,sha256=UK3u_lWB3RzmNN_WpgdUJ3A_pFoRiarYJXgCNpQGgBY,21263
|
31
|
+
fastled-1.2.45.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
32
|
+
fastled-1.2.45.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
33
|
+
fastled-1.2.45.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
34
|
+
fastled-1.2.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|