fastled 1.2.28__tar.gz → 1.2.30__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.
- {fastled-1.2.28 → fastled-1.2.30}/PKG-INFO +1 -1
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/__init__.py +5 -2
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/app.py +27 -6
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/compile_server_impl.py +5 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/docker_manager.py +1 -1
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/filewatcher.py +1 -2
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/PKG-INFO +1 -1
- {fastled-1.2.28 → fastled-1.2.30}/.aiderignore +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/build_multi_docker_image.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/build_webpage.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/lint.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/publish_release.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/test_build_exe.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/test_macos.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/test_ubuntu.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.github/workflows/test_win.yml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.gitignore +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.pylintrc +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.vscode/launch.json +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.vscode/settings.json +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/.vscode/tasks.json +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/LICENSE +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/MANIFEST.in +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/README.md +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/RELEASE.md +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/TODO.md +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/build_exe.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/build_site.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/clean +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/install +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/install_linux.sh +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/lint +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/pyproject.toml +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/requirements.testing.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/setup.cfg +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/setup.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/assets/example.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/cli.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/client_server.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/compile_server.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/keyboard.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/live_client.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/open_browser.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/open_browser2.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/parse_args.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/paths.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/project_init.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/select_sketch_directory.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/settings.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/site/build.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/sketch.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/spinner.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/string_diff.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/test/can_run_local_docker_tests.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/test/examples.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/types.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/util.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled/web_compile.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/SOURCES.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/dependency_links.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/entry_points.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/requires.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/src/fastled.egg-info/top_level.txt +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/test +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/html/index.html +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_api.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_bad_ino.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_build.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_build_examples.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_cli.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_compile_server.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_docker_linux_on_windows.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_embedded_data.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_examples.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_filechanger.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_http_server.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/bad/bad.ino +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/bad_platformio/bad_platformio.ino +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/bad_platformio/platformio.ini +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/embedded/data/bigdata.dat +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/embedded/wasm.ino +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_ino/wasm/wasm.ino +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_project_init.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_server_and_client_seperatly.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/tests/test_webcompile.py +0 -0
- {fastled-1.2.28 → fastled-1.2.30}/upload_package.sh +0 -0
@@ -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.
|
18
|
+
__version__ = "1.2.30"
|
19
19
|
|
20
20
|
|
21
21
|
class Api:
|
@@ -81,6 +81,7 @@ class Api:
|
|
81
81
|
interactive=False,
|
82
82
|
auto_updates=None,
|
83
83
|
auto_start=True,
|
84
|
+
mapped_dir: Path | None = None,
|
84
85
|
container_name: str | None = None,
|
85
86
|
) -> CompileServer:
|
86
87
|
from fastled.compile_server import CompileServer
|
@@ -89,7 +90,7 @@ class Api:
|
|
89
90
|
container_name=container_name,
|
90
91
|
interactive=interactive,
|
91
92
|
auto_updates=auto_updates,
|
92
|
-
mapped_dir=
|
93
|
+
mapped_dir=mapped_dir,
|
93
94
|
auto_start=auto_start,
|
94
95
|
)
|
95
96
|
return out
|
@@ -100,12 +101,14 @@ class Api:
|
|
100
101
|
interactive=False,
|
101
102
|
auto_updates=None,
|
102
103
|
auto_start=True,
|
104
|
+
mapped_dir: Path | None = None,
|
103
105
|
container_name: str | None = None,
|
104
106
|
) -> Generator[CompileServer, None, None]:
|
105
107
|
server = Api.spawn_server(
|
106
108
|
interactive=interactive,
|
107
109
|
auto_updates=auto_updates,
|
108
110
|
auto_start=auto_start,
|
111
|
+
mapped_dir=mapped_dir,
|
109
112
|
container_name=container_name,
|
110
113
|
)
|
111
114
|
try:
|
@@ -44,14 +44,27 @@ def run_server(args: argparse.Namespace) -> int:
|
|
44
44
|
|
45
45
|
def main() -> int:
|
46
46
|
args = parse_args()
|
47
|
-
|
47
|
+
interactive: bool = args.interactive
|
48
|
+
server: str | CompileServer | None = args.server
|
49
|
+
update: bool = args.update
|
50
|
+
build: bool = args.build
|
51
|
+
just_compile: bool = args.just_compile
|
52
|
+
directory: Path | None = Path(args.directory).absolute() if args.directory else None
|
53
|
+
|
54
|
+
if directory is None and interactive:
|
55
|
+
# if examples/wasm exists
|
56
|
+
if Path("examples/wasm").exists():
|
57
|
+
print(f"Using {Path('examples/wasm')} as the sketch directory")
|
58
|
+
directory = Path("examples/wasm").absolute()
|
59
|
+
|
60
|
+
if update:
|
48
61
|
# Force auto_update to ensure update check happens
|
49
62
|
compile_server = CompileServer(interactive=False, auto_updates=True)
|
50
63
|
compile_server.stop()
|
51
64
|
print("Finished updating.")
|
52
65
|
return 0
|
53
66
|
|
54
|
-
if
|
67
|
+
if build:
|
55
68
|
try:
|
56
69
|
project_root = Path(".").absolute()
|
57
70
|
print(f"Building Docker image at {project_root}")
|
@@ -61,15 +74,18 @@ def main() -> int:
|
|
61
74
|
project_root=project_root
|
62
75
|
)
|
63
76
|
print(f"Built Docker image: {docker_image_name}")
|
64
|
-
if not
|
77
|
+
if not directory:
|
65
78
|
print("No sketch directory specified. So exiting...")
|
66
79
|
return 0
|
67
80
|
print("Running server")
|
68
81
|
with Api.server(
|
69
|
-
auto_updates=False,
|
82
|
+
auto_updates=False,
|
83
|
+
container_name=docker_image_name,
|
84
|
+
interactive=interactive,
|
85
|
+
mapped_dir=directory,
|
70
86
|
) as server:
|
71
87
|
sketch_dir = Path("examples/wasm")
|
72
|
-
if
|
88
|
+
if just_compile:
|
73
89
|
rtn = run_client(
|
74
90
|
directory=sketch_dir,
|
75
91
|
host=server,
|
@@ -90,7 +106,7 @@ def main() -> int:
|
|
90
106
|
print("\nExiting from client...")
|
91
107
|
return 1
|
92
108
|
|
93
|
-
if
|
109
|
+
if server:
|
94
110
|
print("Running in server only mode.")
|
95
111
|
return run_server(args)
|
96
112
|
else:
|
@@ -101,6 +117,11 @@ def main() -> int:
|
|
101
117
|
if __name__ == "__main__":
|
102
118
|
# Note that the entry point for the exe is in cli.py
|
103
119
|
try:
|
120
|
+
sys.argv.append("-b")
|
121
|
+
sys.argv.append("-i")
|
122
|
+
import os
|
123
|
+
|
124
|
+
os.chdir("../fastled")
|
104
125
|
sys.exit(main())
|
105
126
|
except KeyboardInterrupt:
|
106
127
|
print("\nExiting from main...")
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import subprocess
|
2
|
+
import sys
|
2
3
|
import time
|
3
4
|
import warnings
|
4
5
|
from datetime import datetime, timezone
|
@@ -69,6 +70,10 @@ class CompileServerImpl:
|
|
69
70
|
if wait_for_startup:
|
70
71
|
ok = self.wait_for_startup()
|
71
72
|
if not ok:
|
73
|
+
if self.interactive:
|
74
|
+
print("Exited from container.")
|
75
|
+
sys.exit(0)
|
76
|
+
return
|
72
77
|
raise CompileServerError("Server did not start")
|
73
78
|
if not self.interactive:
|
74
79
|
msg = f"# FastLED Compile Server started at {self.url()} #"
|
@@ -544,7 +544,7 @@ class DockerManager:
|
|
544
544
|
docker_command.append(command)
|
545
545
|
cmd_str: str = subprocess.list2cmdline(docker_command)
|
546
546
|
print(f"Running command: {cmd_str}")
|
547
|
-
subprocess.run(docker_command, check=
|
547
|
+
subprocess.run(docker_command, check=False)
|
548
548
|
except subprocess.CalledProcessError as e:
|
549
549
|
print(f"Error running Docker command: {e}")
|
550
550
|
diff = time.time() - start_time
|
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
|
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
|
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
|