fastled 1.2.33__py3-none-any.whl → 1.2.35__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 CHANGED
@@ -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.33"
19
+ __version__ = "1.2.35"
20
20
 
21
21
 
22
22
  class Api:
fastled/parse_args.py CHANGED
@@ -13,6 +13,15 @@ from fastled.sketch import (
13
13
  looks_like_sketch_directory,
14
14
  )
15
15
 
16
+ def _find_fastled_repo(start: Path) -> Path:
17
+ """Find the FastLED repo directory by searching upwards from the current directory."""
18
+ current = start
19
+ while current != current.parent:
20
+ if looks_like_fastled_repo(current):
21
+ return current
22
+ current = current.parent
23
+ return None
24
+
16
25
 
17
26
  def parse_args() -> argparse.Namespace:
18
27
  """Parse command-line arguments."""
@@ -131,7 +140,17 @@ def parse_args() -> argparse.Namespace:
131
140
  print(f"Use 'fastled {args.directory}' to compile the project.")
132
141
  sys.exit(0)
133
142
 
134
- if args.build:
143
+ if args.build or args.interactive:
144
+ cwd: Path = Path(os.getcwd())
145
+ fastled_dir: Path | None = _find_fastled_repo(cwd)
146
+ if fastled_dir is None:
147
+ print(
148
+ "This command must be run from within the FastLED repo. Exiting..."
149
+ )
150
+ sys.exit(1)
151
+ if cwd != fastled_dir:
152
+ print(f"Switching to FastLED repo at {fastled_dir}")
153
+ os.chdir(fastled_dir)
135
154
  return args
136
155
 
137
156
  if not args.update:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: fastled
3
- Version: 1.2.33
3
+ Version: 1.2.35
4
4
  Summary: FastLED Wasm Compiler
5
5
  Home-page: https://github.com/zackees/fastled-wasm
6
6
  Maintainer: Zachary Vorhies
@@ -293,6 +293,7 @@ A: `delay()` will block `loop()` which blocks the main thread of the browser. Th
293
293
  Q: How can I get the compiled size of my FastLED sketch smaller?
294
294
  A: A big chunk of space is being used by unnecessary javascript `emscripten` bundling. The wasm_compiler_settings.py file in the FastLED repo can tweak this.
295
295
 
296
+
296
297
  # Revisions
297
298
 
298
299
  * 1.2.31 - Bunch of fixes and ease of use while compiling code in the repo.
@@ -1,4 +1,4 @@
1
- fastled/__init__.py,sha256=c7v4PwIPta1lsHYpFfc-VGR8t7gSUgis-xdpivfrGOw,12740
1
+ fastled/__init__.py,sha256=Ql0xUlEvxKwunw-Z0RfaWskCjdtSYL-3mys9-hJNRIc,12740
2
2
  fastled/app.py,sha256=H1V4_BKQTH0jARJZT8zGrabCkREHBxTXSbgZeSOPwuk,4005
3
3
  fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
4
4
  fastled/client_server.py,sha256=eORWVyI1PvyowmhLWt3V9aI_AemPSBL9bAkjMBD2kAw,14282
@@ -10,7 +10,7 @@ fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
10
10
  fastled/live_client.py,sha256=MDauol0mxtXggV1Pv9ahC0Jjg_4wnnV6FjGEtdd9cxU,2763
11
11
  fastled/open_browser.py,sha256=DDzOXNYVYLIDWVdmpJ-jLxZSAs5mw3VGHo2UIJ-T8SE,4339
12
12
  fastled/open_browser2.py,sha256=jUgN81bEYX-sr0zKTVJkwj9tXEVq7aZTxGUP_ShyCbs,3614
13
- fastled/parse_args.py,sha256=23EoqEf7MF7WEYIufcjCanttz-hiDE2E3z1X73p6rIQ,6908
13
+ fastled/parse_args.py,sha256=iwCxYKu6TO7RrWTvE6Dwn-O5ALq2ktDK8Vz_GVulLW0,7643
14
14
  fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
15
15
  fastled/project_init.py,sha256=bBt4DwmW5hZkm9ICt9Qk-0Nr_0JQM7icCgH5Iv-bCQs,3984
16
16
  fastled/select_sketch_directory.py,sha256=TZdCjl1D7YMKjodMTvDRurPcpAmN3x0TcJxffER2NfM,1314
@@ -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=GfaHeY1E8izBl6ZqDVjz--RHLyVR4NRnQ5pBesCFJFY,1673
28
- fastled-1.2.33.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
- fastled-1.2.33.dist-info/METADATA,sha256=dhzbqH1__HI1WaCScq4HMUETOgKhqSTu1QhMO0qgQJA,21254
30
- fastled-1.2.33.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
31
- fastled-1.2.33.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
- fastled-1.2.33.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
- fastled-1.2.33.dist-info/RECORD,,
28
+ fastled-1.2.35.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
+ fastled-1.2.35.dist-info/METADATA,sha256=yF7hZ1fpN2bkPFL3V6xn0yK2BN-skQyhUOwCDYRS3Us,21255
30
+ fastled-1.2.35.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
31
+ fastled-1.2.35.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
+ fastled-1.2.35.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
+ fastled-1.2.35.dist-info/RECORD,,