fastled 1.4.28__py3-none-any.whl → 1.4.30__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/__version__.py +1 -1
- fastled/playwright/playwright_browser.py +18 -5
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/METADATA +1 -1
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/RECORD +8 -8
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/WHEEL +0 -0
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/entry_points.txt +0 -0
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/licenses/LICENSE +0 -0
- {fastled-1.4.28.dist-info → fastled-1.4.30.dist-info}/top_level.txt +0 -0
fastled/__version__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# IMPORTANT! There's a bug in github which will REJECT any version update
|
2
2
|
# that has any other change in the repo. Please bump the version as the
|
3
3
|
# ONLY change in a commit, or else the pypi update and the release will fail.
|
4
|
-
__version__ = "1.4.
|
4
|
+
__version__ = "1.4.30"
|
5
5
|
|
6
6
|
__version_url_latest__ = "https://raw.githubusercontent.com/zackees/fastled-wasm/refs/heads/main/src/fastled/__version__.py"
|
@@ -335,7 +335,10 @@ class PlaywrightBrowser:
|
|
335
335
|
f"[PYTHON] Window: {window_info['outerWidth']}x{window_info['outerHeight']} at ({window_info['screenX']}, {window_info['screenY']})"
|
336
336
|
)
|
337
337
|
|
338
|
-
except Exception:
|
338
|
+
except Exception as e:
|
339
|
+
warnings.warn(
|
340
|
+
f"[PYTHON] Could not get browser window info: {e}. Assuming browser is not closed."
|
341
|
+
)
|
339
342
|
pass
|
340
343
|
|
341
344
|
else:
|
@@ -370,6 +373,7 @@ class PlaywrightBrowser:
|
|
370
373
|
|
371
374
|
except Exception as e:
|
372
375
|
error_message = str(e)
|
376
|
+
warnings.warn(f"[PYTHON] Error in browser tracking: {error_message}")
|
373
377
|
# Be EXTREMELY conservative about browser close detection
|
374
378
|
# Only trigger shutdown on very specific errors that definitively indicate browser closure
|
375
379
|
browser_definitely_closed = any(
|
@@ -379,7 +383,7 @@ class PlaywrightBrowser:
|
|
379
383
|
"target closed",
|
380
384
|
"connection closed",
|
381
385
|
"target page, probably because the page has been closed",
|
382
|
-
"execution context was destroyed",
|
386
|
+
# "execution context was destroyed",
|
383
387
|
"page has been closed",
|
384
388
|
"browser context has been closed",
|
385
389
|
]
|
@@ -394,12 +398,20 @@ class PlaywrightBrowser:
|
|
394
398
|
browser_state_indicates_closed = self.context.closed
|
395
399
|
except Exception:
|
396
400
|
# If we can't check the state, don't assume it's closed
|
401
|
+
warnings.warn(
|
402
|
+
f"[PYTHON] Could not check browser state: {e}. Assuming browser is not closed."
|
403
|
+
)
|
397
404
|
browser_state_indicates_closed = False
|
398
405
|
|
399
406
|
if browser_definitely_closed or browser_state_indicates_closed:
|
400
|
-
|
401
|
-
|
402
|
-
|
407
|
+
if browser_definitely_closed:
|
408
|
+
print(
|
409
|
+
f'[PYTHON] Browser has been closed because "{error_message}" matched one of the error phrases or browser state indicates closed, shutting down gracefully...'
|
410
|
+
)
|
411
|
+
elif browser_state_indicates_closed:
|
412
|
+
print(
|
413
|
+
"[PYTHON] Browser state indicates closed, shutting down gracefully..."
|
414
|
+
)
|
403
415
|
self._should_exit.set()
|
404
416
|
break
|
405
417
|
else:
|
@@ -408,6 +420,7 @@ class PlaywrightBrowser:
|
|
408
420
|
# Add a small delay to prevent tight error loops
|
409
421
|
await asyncio.sleep(1.0)
|
410
422
|
continue
|
423
|
+
warnings.warn("[PYTHON] Browser tracking loop exited.")
|
411
424
|
|
412
425
|
async def wait_for_close(self) -> None:
|
413
426
|
"""Wait for the browser to be closed."""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
fastled/__init__.py,sha256=dahiY41HLLotTjqmpVJmXSwUEp8NKqoZ57jt55hBLa4,7667
|
2
2
|
fastled/__main__.py,sha256=OcKv2ER1_iQAsZzLIUb3C8hRC9L2clNOhCrjpshrlf4,336
|
3
|
-
fastled/__version__.py,sha256=
|
3
|
+
fastled/__version__.py,sha256=ZaAJj3snre2-nMk7tm0oZE3R6gY3C7yDATvZKjuCNLg,373
|
4
4
|
fastled/app.py,sha256=yZP_UbLLyteBkiYJQQLvqHmH14xwrayGKbL7jtjY6g4,6225
|
5
5
|
fastled/args.py,sha256=uYNM4ALYaB6vj4q4ypfvrgK7tNCEgvC_MBAyGyIeEx8,3885
|
6
6
|
fastled/cli.py,sha256=drgR2AOxVrj3QEz58iiKscYAumbbin2vIV-k91VCOAA,561
|
@@ -37,14 +37,14 @@ fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
37
37
|
fastled/assets/localhost-key.pem,sha256=Q-CNO_UoOd8fFNN4ljcnqwUeCMhzTplRjLO2x0pYRlU,1704
|
38
38
|
fastled/assets/localhost.pem,sha256=QTwUtTwjYWbm9m3pHW2IlK2nFZJ8b0pppxPjhgVZqQo,1619
|
39
39
|
fastled/playwright/chrome_extension_downloader.py,sha256=48YyQrsuK1TVXPuAvRGzqkQJnx0991Ka6OVUo1A58zU,7079
|
40
|
-
fastled/playwright/playwright_browser.py,sha256=
|
40
|
+
fastled/playwright/playwright_browser.py,sha256=ABkG1ztbzVdRzOySzBJhQqdZh4G6-2EjdBEnhwPemQA,31206
|
41
41
|
fastled/site/build.py,sha256=2YKU_UWKlJdGnjdbAbaL0co6kceFMSTVYwH1KCmgPZA,13987
|
42
42
|
fastled/site/examples.py,sha256=s6vj2zJc6BfKlnbwXr1QWY1mzuDBMt6j5MEBOWjO_U8,155
|
43
43
|
fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
|
44
44
|
fastled/test/examples.py,sha256=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
|
45
|
-
fastled-1.4.
|
46
|
-
fastled-1.4.
|
47
|
-
fastled-1.4.
|
48
|
-
fastled-1.4.
|
49
|
-
fastled-1.4.
|
50
|
-
fastled-1.4.
|
45
|
+
fastled-1.4.30.dist-info/licenses/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
46
|
+
fastled-1.4.30.dist-info/METADATA,sha256=7cYJcdJywu6nIpx9i6tWZCQM4gZfvOfAURQ9VHbFtlA,32441
|
47
|
+
fastled-1.4.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
48
|
+
fastled-1.4.30.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
49
|
+
fastled-1.4.30.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
50
|
+
fastled-1.4.30.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|