fastled 1.2.44__py3-none-any.whl → 1.2.46__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/compile_server_impl.py +2 -3
- fastled/docker_manager.py +5 -2
- {fastled-1.2.44.dist-info → fastled-1.2.46.dist-info}/METADATA +1 -1
- {fastled-1.2.44.dist-info → fastled-1.2.46.dist-info}/RECORD +9 -9
- {fastled-1.2.44.dist-info → fastled-1.2.46.dist-info}/LICENSE +0 -0
- {fastled-1.2.44.dist-info → fastled-1.2.46.dist-info}/WHEEL +0 -0
- {fastled-1.2.44.dist-info → fastled-1.2.46.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.44.dist-info → fastled-1.2.46.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.46"
|
17
17
|
|
18
18
|
DOCKER_FILE = (
|
19
19
|
"https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/Dockerfile"
|
fastled/compile_server_impl.py
CHANGED
@@ -186,7 +186,7 @@ class CompileServerImpl:
|
|
186
186
|
upgrade = True
|
187
187
|
else:
|
188
188
|
upgrade = self.auto_updates
|
189
|
-
self.docker.validate_or_download_image(
|
189
|
+
updated = self.docker.validate_or_download_image(
|
190
190
|
image_name=IMAGE_NAME, tag="latest", upgrade=upgrade
|
191
191
|
)
|
192
192
|
DISK_CACHE.put("last-update", now_str)
|
@@ -243,14 +243,13 @@ class CompileServerImpl:
|
|
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
255
|
tag="latest",
|
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
|
"""
|
@@ -1,10 +1,10 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=ilx6G3L9MUMWv7EwiWYwYOtmaL6rCAm0Af-9s4tMmWo,6747
|
2
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
|
@@ -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.46.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
30
|
+
fastled-1.2.46.dist-info/METADATA,sha256=PYBb0h4TuT0DHhxEfXGTvIbfdt0sZSNlF-wgtXDaSjs,21263
|
31
|
+
fastled-1.2.46.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
32
|
+
fastled-1.2.46.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
33
|
+
fastled-1.2.46.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
34
|
+
fastled-1.2.46.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|