fastled 1.2.16__tar.gz → 1.2.18__tar.gz

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.
Files changed (83) hide show
  1. {fastled-1.2.16 → fastled-1.2.18}/PKG-INFO +5 -5
  2. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/__init__.py +1 -1
  3. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/open_browser.py +21 -12
  4. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/open_browser2.py +16 -6
  5. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/PKG-INFO +5 -5
  6. {fastled-1.2.16 → fastled-1.2.18}/.aiderignore +0 -0
  7. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/build_multi_docker_image.yml +0 -0
  8. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/build_webpage.yml +0 -0
  9. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/lint.yml +0 -0
  10. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/publish_release.yml +0 -0
  11. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/test_build_exe.yml +0 -0
  12. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/test_macos.yml +0 -0
  13. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/test_ubuntu.yml +0 -0
  14. {fastled-1.2.16 → fastled-1.2.18}/.github/workflows/test_win.yml +0 -0
  15. {fastled-1.2.16 → fastled-1.2.18}/.gitignore +0 -0
  16. {fastled-1.2.16 → fastled-1.2.18}/.pylintrc +0 -0
  17. {fastled-1.2.16 → fastled-1.2.18}/.vscode/launch.json +0 -0
  18. {fastled-1.2.16 → fastled-1.2.18}/.vscode/settings.json +0 -0
  19. {fastled-1.2.16 → fastled-1.2.18}/.vscode/tasks.json +0 -0
  20. {fastled-1.2.16 → fastled-1.2.18}/LICENSE +0 -0
  21. {fastled-1.2.16 → fastled-1.2.18}/MANIFEST.in +0 -0
  22. {fastled-1.2.16 → fastled-1.2.18}/README.md +4 -4
  23. {fastled-1.2.16 → fastled-1.2.18}/RELEASE.md +0 -0
  24. {fastled-1.2.16 → fastled-1.2.18}/TODO.md +0 -0
  25. {fastled-1.2.16 → fastled-1.2.18}/build_exe.py +0 -0
  26. {fastled-1.2.16 → fastled-1.2.18}/build_site.py +0 -0
  27. {fastled-1.2.16 → fastled-1.2.18}/clean +0 -0
  28. {fastled-1.2.16 → fastled-1.2.18}/install +0 -0
  29. {fastled-1.2.16 → fastled-1.2.18}/lint +0 -0
  30. {fastled-1.2.16 → fastled-1.2.18}/pyproject.toml +0 -0
  31. {fastled-1.2.16 → fastled-1.2.18}/requirements.testing.txt +0 -0
  32. {fastled-1.2.16 → fastled-1.2.18}/setup.cfg +0 -0
  33. {fastled-1.2.16 → fastled-1.2.18}/setup.py +0 -0
  34. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/app.py +0 -0
  35. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/assets/example.txt +0 -0
  36. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/cli.py +0 -0
  37. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/client_server.py +0 -0
  38. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/compile_server.py +0 -0
  39. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/compile_server_impl.py +0 -0
  40. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/docker_manager.py +0 -0
  41. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/filewatcher.py +0 -0
  42. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/keyboard.py +0 -0
  43. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/live_client.py +0 -0
  44. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/parse_args.py +0 -0
  45. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/paths.py +0 -0
  46. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/project_init.py +0 -0
  47. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/select_sketch_directory.py +0 -0
  48. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/settings.py +0 -0
  49. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/site/build.py +0 -0
  50. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/sketch.py +0 -0
  51. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/spinner.py +0 -0
  52. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/string_diff.py +0 -0
  53. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  54. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/test/examples.py +0 -0
  55. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/types.py +0 -0
  56. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/util.py +0 -0
  57. {fastled-1.2.16 → fastled-1.2.18}/src/fastled/web_compile.py +0 -0
  58. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/SOURCES.txt +0 -0
  59. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/dependency_links.txt +0 -0
  60. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/entry_points.txt +0 -0
  61. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/requires.txt +0 -0
  62. {fastled-1.2.16 → fastled-1.2.18}/src/fastled.egg-info/top_level.txt +0 -0
  63. {fastled-1.2.16 → fastled-1.2.18}/test +0 -0
  64. {fastled-1.2.16 → fastled-1.2.18}/tests/html/index.html +0 -0
  65. {fastled-1.2.16 → fastled-1.2.18}/tests/test_api.py +0 -0
  66. {fastled-1.2.16 → fastled-1.2.18}/tests/test_bad_ino.py +0 -0
  67. {fastled-1.2.16 → fastled-1.2.18}/tests/test_build.py +0 -0
  68. {fastled-1.2.16 → fastled-1.2.18}/tests/test_build_examples.py +0 -0
  69. {fastled-1.2.16 → fastled-1.2.18}/tests/test_cli.py +0 -0
  70. {fastled-1.2.16 → fastled-1.2.18}/tests/test_compile_server.py +0 -0
  71. {fastled-1.2.16 → fastled-1.2.18}/tests/test_docker_linux_on_windows.py +0 -0
  72. {fastled-1.2.16 → fastled-1.2.18}/tests/test_embedded_data.py +0 -0
  73. {fastled-1.2.16 → fastled-1.2.18}/tests/test_examples.py +0 -0
  74. {fastled-1.2.16 → fastled-1.2.18}/tests/test_filechanger.py +0 -0
  75. {fastled-1.2.16 → fastled-1.2.18}/tests/test_http_server.py +0 -0
  76. {fastled-1.2.16 → fastled-1.2.18}/tests/test_ino/bad/bad.ino +0 -0
  77. {fastled-1.2.16 → fastled-1.2.18}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  78. {fastled-1.2.16 → fastled-1.2.18}/tests/test_ino/embedded/wasm.ino +0 -0
  79. {fastled-1.2.16 → fastled-1.2.18}/tests/test_ino/wasm/wasm.ino +0 -0
  80. {fastled-1.2.16 → fastled-1.2.18}/tests/test_project_init.py +0 -0
  81. {fastled-1.2.16 → fastled-1.2.18}/tests/test_server_and_client_seperatly.py +0 -0
  82. {fastled-1.2.16 → fastled-1.2.18}/tests/test_webcompile.py +0 -0
  83. {fastled-1.2.16 → fastled-1.2.18}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.2.16
3
+ Version: 1.2.18
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -34,11 +34,14 @@ Requires-Dist: Flask>=3.0.0
34
34
  [![Build Webpage](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml/badge.svg)](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml)
35
35
 
36
36
 
37
-
38
37
  ## Compile your FastLED sketch and run it on the Browser!
39
38
 
40
39
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
41
40
 
41
+ # Demo
42
+
43
+ https://zackees.github.io/fastled-wasm/
44
+
42
45
 
43
46
  # About
44
47
 
@@ -50,9 +53,6 @@ If you have docker installed, the compiler will download the docker image and ru
50
53
 
51
54
  In every conceivable way, the local compiler will be much faster than the web version.
52
55
 
53
- # Demo
54
-
55
- https://zackees.github.io/fastled-wasm/
56
56
 
57
57
  # Install
58
58
 
@@ -15,7 +15,7 @@ from .types import BuildMode, CompileResult, CompileServerError
15
15
  # IMPORTANT! There's a bug in github which will REJECT any version update
16
16
  # that has any other change in the repo. Please bump the version as the
17
17
  # ONLY change in a commit, or else the pypi update and the release will fail.
18
- __version__ = "1.2.16"
18
+ __version__ = "1.2.18"
19
19
 
20
20
 
21
21
  class Api:
@@ -12,19 +12,28 @@ def open_http_server_subprocess(
12
12
  fastled_js: Path, port: int, open_browser: bool
13
13
  ) -> None:
14
14
  """Start livereload server in the fastled_js directory and return the process"""
15
+ try:
16
+ cmd = [
17
+ PYTHON_EXE,
18
+ "-m",
19
+ "fastled.open_browser2",
20
+ str(fastled_js),
21
+ "--port",
22
+ str(port),
23
+ ]
24
+ if not open_browser:
25
+ cmd.append("--no-browser")
26
+ # return subprocess.Popen(cmd) # type ignore
27
+ # pipe stderr and stdout to null
28
+ subprocess.run(
29
+ cmd,
30
+ stdout=subprocess.DEVNULL,
31
+ stderr=subprocess.DEVNULL,
32
+ ) # type ignore
33
+ except KeyboardInterrupt:
34
+ import _thread
15
35
 
16
- cmd = [
17
- PYTHON_EXE,
18
- "-m",
19
- "fastled.open_browser2",
20
- str(fastled_js),
21
- "--port",
22
- str(port),
23
- ]
24
- if not open_browser:
25
- cmd.append("--no-browser")
26
- # return subprocess.Popen(cmd) # type ignore
27
- subprocess.run(cmd) # type ignore
36
+ _thread.interrupt_main()
28
37
 
29
38
 
30
39
  def open_browser_process(
@@ -45,6 +45,10 @@ def _run_flask_server(fastled_js: Path, port: int) -> None:
45
45
  return response
46
46
 
47
47
  app.run(port=port, debug=True)
48
+ except KeyboardInterrupt:
49
+ import _thread
50
+
51
+ _thread.interrupt_main()
48
52
  except Exception as e:
49
53
  print(f"Failed to run Flask server: {e}")
50
54
  import _thread
@@ -72,12 +76,18 @@ def wait_for_server_then_launch_browser(port: int) -> None:
72
76
 
73
77
  def run(path: Path, port: int, open_browser: bool) -> None:
74
78
  """Run the Flask server."""
75
- if open_browser:
76
- browser_thread = Thread(
77
- target=wait_for_server_then_launch_browser, args=(port,), daemon=True
78
- )
79
- browser_thread.start()
80
- _run_flask_server(path, port)
79
+ try:
80
+ if open_browser:
81
+ browser_thread = Thread(
82
+ target=wait_for_server_then_launch_browser, args=(port,), daemon=True
83
+ )
84
+ browser_thread.start()
85
+ _run_flask_server(path, port)
86
+ except KeyboardInterrupt:
87
+ import _thread
88
+
89
+ _thread.interrupt_main()
90
+ pass
81
91
 
82
92
 
83
93
  def parse_args() -> argparse.Namespace:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.2.16
3
+ Version: 1.2.18
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -34,11 +34,14 @@ Requires-Dist: Flask>=3.0.0
34
34
  [![Build Webpage](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml/badge.svg)](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml)
35
35
 
36
36
 
37
-
38
37
  ## Compile your FastLED sketch and run it on the Browser!
39
38
 
40
39
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
41
40
 
41
+ # Demo
42
+
43
+ https://zackees.github.io/fastled-wasm/
44
+
42
45
 
43
46
  # About
44
47
 
@@ -50,9 +53,6 @@ If you have docker installed, the compiler will download the docker image and ru
50
53
 
51
54
  In every conceivable way, the local compiler will be much faster than the web version.
52
55
 
53
- # Demo
54
-
55
- https://zackees.github.io/fastled-wasm/
56
56
 
57
57
  # Install
58
58
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -11,11 +11,14 @@
11
11
  [![Build Webpage](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml/badge.svg)](https://github.com/zackees/fastled-wasm/actions/workflows/build_webpage.yml)
12
12
 
13
13
 
14
-
15
14
  ## Compile your FastLED sketch and run it on the Browser!
16
15
 
17
16
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
18
17
 
18
+ # Demo
19
+
20
+ https://zackees.github.io/fastled-wasm/
21
+
19
22
 
20
23
  # About
21
24
 
@@ -27,9 +30,6 @@ If you have docker installed, the compiler will download the docker image and ru
27
30
 
28
31
  In every conceivable way, the local compiler will be much faster than the web version.
29
32
 
30
- # Demo
31
-
32
- https://zackees.github.io/fastled-wasm/
33
33
 
34
34
  # Install
35
35
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes