fastled 1.2.17__py3-none-any.whl → 1.2.18__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
@@ -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.17"
18
+ __version__ = "1.2.18"
19
19
 
20
20
 
21
21
  class Api:
fastled/open_browser.py CHANGED
@@ -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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastled
3
- Version: 1.2.17
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
@@ -1,4 +1,4 @@
1
- fastled/__init__.py,sha256=Pbq9T8vJkKZZRdcC21f8E_TiVy22urNQewotJnWOTkI,10743
1
+ fastled/__init__.py,sha256=GbfplKYW7t9szC2cAKFqFe31d3mcqHDfsGQTUTEqpwE,10743
2
2
  fastled/app.py,sha256=4LQHjN-GMAzhEaIKSFkT5S26Snb1Y9kgVnPK6kqXbrQ,3382
3
3
  fastled/cli.py,sha256=FjVr31ht0UPlAcmX-84NwfAGMQHTkrCe4o744jCAxiw,375
4
4
  fastled/client_server.py,sha256=8L62zNtkGtErDtWrr4XVNsv7ji2zoS5rlqfCnwI3VKU,13177
@@ -8,7 +8,7 @@ fastled/docker_manager.py,sha256=Nf0x2BpwT1BvSsi63ZkDhQDMhjiWrjFiXxgowtQMrhM,289
8
8
  fastled/filewatcher.py,sha256=LwEQJkqADsArZyY499RLAer6JjJyDwaQBcAvT7xmp3c,6708
9
9
  fastled/keyboard.py,sha256=vyYxE98WCXjvMpcUJd0YXPVvt7TzvBmifLYI-K7jtKg,3524
10
10
  fastled/live_client.py,sha256=b9mVJ-8w_zoEDwKIlAEUC5Q1La5W5rR6ct-exOcgJec,2561
11
- fastled/open_browser.py,sha256=k7J_wQcS1rq0vx0we5pnWEqApJrPSbScDo0eS5h-wxE,1571
11
+ fastled/open_browser.py,sha256=0pb94Tx1n9vhst5NCy_EQ9JJ2nJG2id2oOGjUOtm40s,1856
12
12
  fastled/open_browser2.py,sha256=VtuTw7p2T8RLqbP34fRa-JNerv8EDpJnspaNL270s-Y,3947
13
13
  fastled/parse_args.py,sha256=LD2PpSEhyq3ZqPWa_TJ90Fb-O-yldi7rnen2fWLOPjo,6868
14
14
  fastled/paths.py,sha256=VsPmgu0lNSCFOoEC0BsTYzDygXqy15AHUfN-tTuzDZA,99
@@ -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.17.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
- fastled-1.2.17.dist-info/METADATA,sha256=2mwtfCI_EzEgonoVvlMFHCxScDcqYmWbR4qXy_jXf0Y,20598
30
- fastled-1.2.17.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
31
- fastled-1.2.17.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
- fastled-1.2.17.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
- fastled-1.2.17.dist-info/RECORD,,
28
+ fastled-1.2.18.dist-info/LICENSE,sha256=b6pOoifSXiUaz_lDS84vWlG3fr4yUKwB8fzkrH9R8bQ,1064
29
+ fastled-1.2.18.dist-info/METADATA,sha256=u2ScMoVaQWH1Oy7FlhEWDOuRYZuTPWrwC5UKR8YOHIk,20598
30
+ fastled-1.2.18.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
31
+ fastled-1.2.18.dist-info/entry_points.txt,sha256=RCwmzCSOS4-C2i9EziANq7Z2Zb4KFnEMR1FQC0bBwAw,101
32
+ fastled-1.2.18.dist-info/top_level.txt,sha256=Bbv5kpJpZhWNCvDF4K0VcvtBSDMa8B7PTOrZa9CezHY,8
33
+ fastled-1.2.18.dist-info/RECORD,,