fastled 1.2.39__tar.gz → 1.2.40__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 (88) hide show
  1. {fastled-1.2.39 → fastled-1.2.40}/PKG-INFO +2 -1
  2. {fastled-1.2.39 → fastled-1.2.40}/README.md +1 -0
  3. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/__init__.py +2 -6
  4. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/app.py +19 -14
  5. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/open_browser.py +2 -3
  6. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/PKG-INFO +2 -1
  7. {fastled-1.2.39 → fastled-1.2.40}/.aiderignore +0 -0
  8. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/build_multi_docker_image.yml +0 -0
  9. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/build_webpage.yml +0 -0
  10. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/lint.yml +0 -0
  11. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/publish_release.yml +0 -0
  12. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/test_build_exe.yml +0 -0
  13. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/test_macos.yml +0 -0
  14. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/test_ubuntu.yml +0 -0
  15. {fastled-1.2.39 → fastled-1.2.40}/.github/workflows/test_win.yml +0 -0
  16. {fastled-1.2.39 → fastled-1.2.40}/.gitignore +0 -0
  17. {fastled-1.2.39 → fastled-1.2.40}/.pylintrc +0 -0
  18. {fastled-1.2.39 → fastled-1.2.40}/.vscode/launch.json +0 -0
  19. {fastled-1.2.39 → fastled-1.2.40}/.vscode/settings.json +0 -0
  20. {fastled-1.2.39 → fastled-1.2.40}/.vscode/tasks.json +0 -0
  21. {fastled-1.2.39 → fastled-1.2.40}/LICENSE +0 -0
  22. {fastled-1.2.39 → fastled-1.2.40}/MANIFEST.in +0 -0
  23. {fastled-1.2.39 → fastled-1.2.40}/RELEASE.md +0 -0
  24. {fastled-1.2.39 → fastled-1.2.40}/TODO.md +0 -0
  25. {fastled-1.2.39 → fastled-1.2.40}/build_exe.py +0 -0
  26. {fastled-1.2.39 → fastled-1.2.40}/build_site.py +0 -0
  27. {fastled-1.2.39 → fastled-1.2.40}/clean +0 -0
  28. {fastled-1.2.39 → fastled-1.2.40}/install +0 -0
  29. {fastled-1.2.39 → fastled-1.2.40}/install_linux.sh +0 -0
  30. {fastled-1.2.39 → fastled-1.2.40}/lint +0 -0
  31. {fastled-1.2.39 → fastled-1.2.40}/pyproject.toml +0 -0
  32. {fastled-1.2.39 → fastled-1.2.40}/requirements.testing.txt +0 -0
  33. {fastled-1.2.39 → fastled-1.2.40}/setup.cfg +0 -0
  34. {fastled-1.2.39 → fastled-1.2.40}/setup.py +0 -0
  35. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/assets/example.txt +0 -0
  36. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/cli.py +0 -0
  37. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/client_server.py +0 -0
  38. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/compile_server.py +0 -0
  39. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/compile_server_impl.py +0 -0
  40. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/docker_manager.py +0 -0
  41. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/filewatcher.py +0 -0
  42. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/interactive_srcs.py +0 -0
  43. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/keyboard.py +0 -0
  44. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/live_client.py +0 -0
  45. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/open_browser2.py +0 -0
  46. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/parse_args.py +0 -0
  47. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/paths.py +0 -0
  48. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/project_init.py +0 -0
  49. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/select_sketch_directory.py +0 -0
  50. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/settings.py +0 -0
  51. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/site/build.py +0 -0
  52. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/sketch.py +0 -0
  53. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/spinner.py +0 -0
  54. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/string_diff.py +0 -0
  55. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/test/can_run_local_docker_tests.py +0 -0
  56. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/test/examples.py +0 -0
  57. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/types.py +0 -0
  58. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/util.py +0 -0
  59. {fastled-1.2.39 → fastled-1.2.40}/src/fastled/web_compile.py +0 -0
  60. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/SOURCES.txt +0 -0
  61. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/dependency_links.txt +0 -0
  62. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/entry_points.txt +0 -0
  63. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/requires.txt +0 -0
  64. {fastled-1.2.39 → fastled-1.2.40}/src/fastled.egg-info/top_level.txt +0 -0
  65. {fastled-1.2.39 → fastled-1.2.40}/test +0 -0
  66. {fastled-1.2.39 → fastled-1.2.40}/tests/html/index.html +0 -0
  67. {fastled-1.2.39 → fastled-1.2.40}/tests/test_api.py +0 -0
  68. {fastled-1.2.39 → fastled-1.2.40}/tests/test_bad_ino.py +0 -0
  69. {fastled-1.2.39 → fastled-1.2.40}/tests/test_build_examples.py +0 -0
  70. {fastled-1.2.39 → fastled-1.2.40}/tests/test_build_from_docker.py +0 -0
  71. {fastled-1.2.39 → fastled-1.2.40}/tests/test_build_from_github.py +0 -0
  72. {fastled-1.2.39 → fastled-1.2.40}/tests/test_cli.py +0 -0
  73. {fastled-1.2.39 → fastled-1.2.40}/tests/test_compile_server.py +0 -0
  74. {fastled-1.2.39 → fastled-1.2.40}/tests/test_docker_linux_on_windows.py +0 -0
  75. {fastled-1.2.39 → fastled-1.2.40}/tests/test_embedded_data.py +0 -0
  76. {fastled-1.2.39 → fastled-1.2.40}/tests/test_examples.py +0 -0
  77. {fastled-1.2.39 → fastled-1.2.40}/tests/test_filechanger.py +0 -0
  78. {fastled-1.2.39 → fastled-1.2.40}/tests/test_http_server.py +0 -0
  79. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/bad/bad.ino +0 -0
  80. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/bad_platformio/bad_platformio.ino +0 -0
  81. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/bad_platformio/platformio.ini +0 -0
  82. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/embedded/data/bigdata.dat +0 -0
  83. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/embedded/wasm.ino +0 -0
  84. {fastled-1.2.39 → fastled-1.2.40}/tests/test_ino/wasm/wasm.ino +0 -0
  85. {fastled-1.2.39 → fastled-1.2.40}/tests/test_project_init.py +0 -0
  86. {fastled-1.2.39 → fastled-1.2.40}/tests/test_server_and_client_seperatly.py +0 -0
  87. {fastled-1.2.39 → fastled-1.2.40}/tests/test_webcompile.py +0 -0
  88. {fastled-1.2.39 → fastled-1.2.40}/upload_package.sh +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.39
3
+ Version: 1.2.40
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -37,6 +37,7 @@ Dynamic: maintainer
37
37
  [![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)
38
38
 
39
39
 
40
+
40
41
  ## Compile your FastLED sketch and run it on the Browser!
41
42
 
42
43
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
@@ -11,6 +11,7 @@
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
+
14
15
  ## Compile your FastLED sketch and run it on the Browser!
15
16
 
16
17
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
@@ -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.39"
19
+ __version__ = "1.2.40"
20
20
 
21
21
 
22
22
  class Api:
@@ -298,11 +298,7 @@ class Docker:
298
298
  if interactive:
299
299
  if sketch_folder is None:
300
300
  sketch_folder = project_root / "examples" / "wasm"
301
- else:
302
- if sketch_folder is not None:
303
- raise ValueError(
304
- "Cannot specify sketch_folder when not in interactive mode."
305
- )
301
+
306
302
  if isinstance(project_root, str):
307
303
  project_root = Path(project_root)
308
304
 
@@ -60,17 +60,19 @@ def main() -> int:
60
60
  return 0
61
61
 
62
62
  if build:
63
- try:
64
- file_watcher_set(False)
65
- project_root = Path(".").absolute()
66
- print(f"Building Docker image at {project_root}")
67
- from fastled import Api, Docker
68
-
69
- server = Docker.spawn_server_from_fastled_repo(
70
- project_root=project_root, interactive=interactive
71
- )
72
- assert isinstance(server, CompileServer)
63
+ file_watcher_set(False)
64
+ project_root = Path(".").absolute()
65
+ print(f"Building Docker image at {project_root}")
66
+ from fastled import Api, Docker
67
+
68
+ server = Docker.spawn_server_from_fastled_repo(
69
+ project_root=project_root,
70
+ interactive=interactive,
71
+ sketch_folder=directory,
72
+ )
73
+ assert isinstance(server, CompileServer)
73
74
 
75
+ try:
74
76
  if interactive:
75
77
  server.stop()
76
78
  return 0
@@ -82,17 +84,19 @@ def main() -> int:
82
84
  return 0
83
85
 
84
86
  print("Running server")
87
+
85
88
  with Api.live_client(
86
89
  auto_updates=False,
87
90
  sketch_directory=directory,
88
91
  host=server,
89
92
  auto_start=True,
90
93
  keep_running=not just_compile,
91
- ) as client:
92
- print(f"Exited client {client.url()}")
93
- print(f"Exiting {server.name}")
94
+ ) as _:
95
+ while True:
96
+ time.sleep(0.2) # wait for user to exit
94
97
  except KeyboardInterrupt:
95
98
  print("\nExiting from client...")
99
+ server.stop()
96
100
  return 1
97
101
 
98
102
  if has_server:
@@ -106,12 +110,13 @@ def main() -> int:
106
110
  if __name__ == "__main__":
107
111
  # Note that the entry point for the exe is in cli.py
108
112
  try:
109
- sys.argv.append("-i")
113
+ sys.argv.append("-b")
110
114
  # sys.argv.append("examples/wasm")
111
115
  # sys.argv.append()
112
116
  import os
113
117
 
114
118
  os.chdir("../fastled")
119
+ sys.argv.append("examples/wasm")
115
120
  sys.exit(main())
116
121
  except KeyboardInterrupt:
117
122
  print("\nExiting from main...")
@@ -45,9 +45,8 @@ def open_http_server_subprocess(
45
45
  stderr=subprocess.DEVNULL,
46
46
  ) # type ignore
47
47
  except KeyboardInterrupt:
48
- import _thread
49
-
50
- _thread.interrupt_main()
48
+ print("Exiting from server...")
49
+ sys.exit(0)
51
50
 
52
51
 
53
52
  def is_port_free(port: int) -> bool:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.39
3
+ Version: 1.2.40
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -37,6 +37,7 @@ Dynamic: maintainer
37
37
  [![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)
38
38
 
39
39
 
40
+
40
41
  ## Compile your FastLED sketch and run it on the Browser!
41
42
 
42
43
  ![image](https://github.com/user-attachments/assets/243aeb4d-e42f-4cc3-9c31-0af51271f3e0)
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes