fastled 1.2.27__py3-none-any.whl → 1.2.28__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 +23 -1
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/METADATA +1 -1
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/RECORD +8 -8
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/LICENSE +0 -0
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/WHEEL +0 -0
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.27.dist-info → fastled-1.2.28.dist-info}/top_level.txt +0 -0
fastled/__init__.py
CHANGED
@@ -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.28"
|
19
19
|
|
20
20
|
|
21
21
|
class Api:
|
fastled/compile_server_impl.py
CHANGED
@@ -111,7 +111,10 @@ class CompileServerImpl:
|
|
111
111
|
return self.docker.is_container_running(self.container_name)
|
112
112
|
|
113
113
|
def using_fastled_src_dir_volume(self) -> bool:
|
114
|
-
|
114
|
+
out = self.fastled_src_dir is not None
|
115
|
+
if out:
|
116
|
+
print(f"Using FastLED source directory: {self.fastled_src_dir}")
|
117
|
+
return out
|
115
118
|
|
116
119
|
def port(self) -> int:
|
117
120
|
if self._port == 0:
|
@@ -206,6 +209,24 @@ class CompileServerImpl:
|
|
206
209
|
"bind": f"/mapped/{dir_name}",
|
207
210
|
"mode": "rw",
|
208
211
|
}
|
212
|
+
if self.fastled_src_dir is not None:
|
213
|
+
# add volume for src/platforms/wasm/compiler/CMakelists.txt
|
214
|
+
# to allow for interactive compilation
|
215
|
+
interactive_sources = [
|
216
|
+
"src/platforms/wasm/compiler/CMakeLists.txt",
|
217
|
+
"src/platforms/wasm/compiler/build_archive.sh",
|
218
|
+
]
|
219
|
+
for src in interactive_sources:
|
220
|
+
src_path = Path(src).absolute()
|
221
|
+
if src_path.exists():
|
222
|
+
print(f"Mounting {src} into container")
|
223
|
+
src_str = str(src_path)
|
224
|
+
volumes[src_str] = {
|
225
|
+
"bind": f"/js/fastled/{src}",
|
226
|
+
"mode": "rw",
|
227
|
+
}
|
228
|
+
else:
|
229
|
+
print(f"Could not find {src}")
|
209
230
|
|
210
231
|
cmd_str = subprocess.list2cmdline(server_command)
|
211
232
|
if not self.interactive:
|
@@ -223,6 +244,7 @@ class CompileServerImpl:
|
|
223
244
|
print("Compile server starting")
|
224
245
|
return port
|
225
246
|
else:
|
247
|
+
|
226
248
|
self.docker.run_container_interactive(
|
227
249
|
image_name=IMAGE_NAME,
|
228
250
|
tag="main",
|
@@ -1,9 +1,9 @@
|
|
1
|
-
fastled/__init__.py,sha256=
|
1
|
+
fastled/__init__.py,sha256=bqty0DzlDrNN6lr5blnYGepOaRashcnhB4SJmi76b5U,11084
|
2
2
|
fastled/app.py,sha256=uK-Ag2R4-FB6PyKorVOpBsujGn-jO7aYJEY8Kw76vc0,3512
|
3
3
|
fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
|
4
4
|
fastled/client_server.py,sha256=eORWVyI1PvyowmhLWt3V9aI_AemPSBL9bAkjMBD2kAw,14282
|
5
5
|
fastled/compile_server.py,sha256=g0y9vEZqpzAJEUwketV8lbwI8VZNSSLuOuwcF04k-dw,2775
|
6
|
-
fastled/compile_server_impl.py,sha256=
|
6
|
+
fastled/compile_server_impl.py,sha256=U_k2S_BRKVEGrqfXjVNMy5H1v4JtC4SlhRy5hwBL3_0,9736
|
7
7
|
fastled/docker_manager.py,sha256=HJDl533G5mCBCSqMZhtdP7mhurx3cLPQU3T-DTWC9xU,29814
|
8
8
|
fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
|
9
9
|
fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
|
@@ -25,9 +25,9 @@ fastled/assets/example.txt,sha256=lTBovRjiz0_TgtAtbA1C5hNi2ffbqnNPqkKg6UiKCT8,54
|
|
25
25
|
fastled/site/build.py,sha256=l4RajIk0bApiAifT1lyLjIZi9lpPtSba4cnwWP5UOKc,14064
|
26
26
|
fastled/test/can_run_local_docker_tests.py,sha256=LEuUbHctRhNNFWcvnz2kEGmjDJeXO4c3kNpizm3yVJs,400
|
27
27
|
fastled/test/examples.py,sha256=6xPwx_k9_XwYTpI1nk4SrYbsJKHJACd30GzD1epGqhY,1597
|
28
|
-
fastled-1.2.
|
29
|
-
fastled-1.2.
|
30
|
-
fastled-1.2.
|
31
|
-
fastled-1.2.
|
32
|
-
fastled-1.2.
|
33
|
-
fastled-1.2.
|
28
|
+
fastled-1.2.28.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
|
29
|
+
fastled-1.2.28.dist-info/METADATA,sha256=Cwg1AYATtsQJkMhurqAJFGwMu7DHv-5EDsOXCDMRqPo,21176
|
30
|
+
fastled-1.2.28.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
31
|
+
fastled-1.2.28.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
|
32
|
+
fastled-1.2.28.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
|
33
|
+
fastled-1.2.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|