fastled 1.2.88__py3-none-any.whl → 1.2.90__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/app.py +34 -0
- fastled/compile_server_impl.py +355 -355
- fastled/docker_manager.py +945 -945
- fastled/open_browser.py +137 -137
- fastled/parse_args.py +5 -2
- fastled/print_filter.py +190 -190
- fastled/project_init.py +129 -129
- fastled/server_flask.py +1 -1
- fastled/site/build.py +449 -449
- fastled/sketch.py +4 -2
- fastled/string_diff.py +82 -82
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/METADATA +395 -396
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/RECORD +18 -18
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/WHEEL +0 -0
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/entry_points.txt +0 -0
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/licenses/LICENSE +0 -0
- {fastled-1.2.88.dist-info → fastled-1.2.90.dist-info}/top_level.txt +0 -0
fastled/__init__.py
CHANGED
@@ -14,7 +14,7 @@ from .types import BuildMode, CompileResult, CompileServerError, FileResponse
|
|
14
14
|
# IMPORTANT! There's a bug in github which will REJECT any version update
|
15
15
|
# that has any other change in the repo. Please bump the version as the
|
16
16
|
# ONLY change in a commit, or else the pypi update and the release will fail.
|
17
|
-
__version__ = "1.2.
|
17
|
+
__version__ = "1.2.90"
|
18
18
|
|
19
19
|
|
20
20
|
class Api:
|
fastled/app.py
CHANGED
@@ -10,6 +10,13 @@ from fastled.client_server import run_client_server
|
|
10
10
|
from fastled.compile_server import CompileServer
|
11
11
|
from fastled.filewatcher import file_watcher_set
|
12
12
|
from fastled.parse_args import Args, parse_args
|
13
|
+
from fastled.sketch import find_sketch_directories, looks_like_fastled_repo
|
14
|
+
|
15
|
+
# from fastled.sketch import (
|
16
|
+
# find_sketch_directories,
|
17
|
+
# looks_like_fastled_repo,
|
18
|
+
# looks_like_sketch_directory,
|
19
|
+
# )
|
13
20
|
|
14
21
|
|
15
22
|
def run_server(args: Args) -> int:
|
@@ -53,10 +60,37 @@ def main() -> int:
|
|
53
60
|
just_compile: bool = args.just_compile
|
54
61
|
# directory: Path | None = Path(args.directory).absolute() if args.directory else None
|
55
62
|
directory: Path | None = Path(args.directory) if args.directory else None
|
63
|
+
cwd_looks_like_fastled_repo = looks_like_fastled_repo()
|
56
64
|
|
57
65
|
# now it is safe to print out the version
|
58
66
|
print(f"FastLED version: {__version__}")
|
59
67
|
|
68
|
+
# Resolve some of the last interactive arguments
|
69
|
+
# 1. If interactive is set and the sketch directory is not given,
|
70
|
+
# then prompt the user for a sketch directory.
|
71
|
+
# 2. Tell the user they can use --server --interactive to
|
72
|
+
# skip this prompt.
|
73
|
+
|
74
|
+
from fastled.select_sketch_directory import select_sketch_directory
|
75
|
+
|
76
|
+
if interactive and cwd_looks_like_fastled_repo and directory is None:
|
77
|
+
answer = input(
|
78
|
+
"No sketch directory selected, would you like to select one? (y/n): "
|
79
|
+
)
|
80
|
+
if answer.lower() == "y":
|
81
|
+
sketch_list: list[Path] = find_sketch_directories()
|
82
|
+
if sketch_list:
|
83
|
+
maybe_dir: str | None = select_sketch_directory(
|
84
|
+
sketch_list, cwd_looks_like_fastled_repo
|
85
|
+
)
|
86
|
+
if maybe_dir is not None:
|
87
|
+
directory = Path(maybe_dir)
|
88
|
+
if not directory.exists():
|
89
|
+
print(
|
90
|
+
f"Directory {directory} does not exist, entering interactive mode without project mapped in."
|
91
|
+
)
|
92
|
+
directory = None
|
93
|
+
|
60
94
|
if update:
|
61
95
|
# Force auto_update to ensure update check happens
|
62
96
|
compile_server = CompileServer(interactive=False, auto_updates=True)
|