flet-cli 0.82.3.dev7807__tar.gz → 0.82.3.dev7863__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.
Files changed (44) hide show
  1. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/PKG-INFO +2 -2
  2. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/pyproject.toml +2 -2
  3. flet_cli-0.82.3.dev7863/src/flet_cli/__pyinstaller/utils.py +51 -0
  4. flet_cli-0.82.3.dev7863/src/flet_cli/version.py +1 -0
  5. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/PKG-INFO +2 -2
  6. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/requires.txt +1 -1
  7. flet_cli-0.82.3.dev7807/src/flet_cli/__pyinstaller/utils.py +0 -40
  8. flet_cli-0.82.3.dev7807/src/flet_cli/version.py +0 -1
  9. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/README.md +0 -0
  10. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/setup.cfg +0 -0
  11. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/__init__.py +0 -0
  12. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/config.py +0 -0
  13. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/hook-flet.py +0 -0
  14. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/macos_utils.py +0 -0
  15. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py +0 -0
  16. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/__pyinstaller/win_utils.py +0 -0
  17. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/cli.py +0 -0
  18. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/base.py +0 -0
  19. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/build.py +0 -0
  20. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/build_base.py +0 -0
  21. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/create.py +0 -0
  22. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/debug.py +0 -0
  23. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/devices.py +0 -0
  24. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/doctor.py +0 -0
  25. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/emulators.py +0 -0
  26. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/flutter_base.py +0 -0
  27. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/options.py +0 -0
  28. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/pack.py +0 -0
  29. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/publish.py +0 -0
  30. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/run.py +0 -0
  31. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/commands/serve.py +0 -0
  32. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/android_sdk.py +0 -0
  33. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/distros.py +0 -0
  34. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/flutter.py +0 -0
  35. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/hash_stamp.py +0 -0
  36. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/jdk.py +0 -0
  37. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/merge.py +0 -0
  38. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/processes.py +0 -0
  39. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/project_dependencies.py +0 -0
  40. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli/utils/pyproject_toml.py +0 -0
  41. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/SOURCES.txt +0 -0
  42. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/dependency_links.txt +0 -0
  43. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/entry_points.txt +0 -0
  44. {flet_cli-0.82.3.dev7807 → flet_cli-0.82.3.dev7863}/src/flet_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-cli
3
- Version: 0.82.3.dev7807
3
+ Version: 0.82.3.dev7863
4
4
  Summary: Flet CLI
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
9
9
  Project-URL: Documentation, https://flet.dev/docs
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: flet==0.82.3.dev7807
12
+ Requires-Dist: flet==0.82.3.dev7863
13
13
  Requires-Dist: watchdog>=4.0.0
14
14
  Requires-Dist: packaging>=25.0
15
15
  Requires-Dist: qrcode>=7.4.2
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "flet-cli"
3
- version = "0.82.3.dev7807"
3
+ version = "0.82.3.dev7863"
4
4
  description = "Flet CLI"
5
5
  authors = [{ name = "Appveyor Systems Inc.", email = "hello@flet.dev" }]
6
6
  license = "Apache-2.0"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10"
9
9
  dependencies = [
10
- "flet==0.82.3.dev7807",
10
+ "flet==0.82.3.dev7863",
11
11
  "watchdog >=4.0.0",
12
12
  "packaging >=25.0",
13
13
  "qrcode >=7.4.2",
@@ -0,0 +1,51 @@
1
+ import os
2
+ import tempfile
3
+ import uuid
4
+ from pathlib import Path
5
+
6
+ from flet.utils import copy_tree
7
+ from flet_desktop import ensure_client_cached, get_package_bin_dir
8
+
9
+
10
+ def get_flet_bin_path():
11
+ """
12
+ Return path to Flet desktop binaries, if available.
13
+
14
+ Checks the package ``app/`` directory first (for PyInstaller-bundled
15
+ builds), then falls back to the download cache at ``~/.flet/client/``,
16
+ triggering a download if necessary.
17
+
18
+ Returns:
19
+ Absolute binaries directory path or ``None`` when not found.
20
+ """
21
+
22
+ # Check bundled binaries in the package (PyInstaller or legacy wheel).
23
+ bin_path = get_package_bin_dir()
24
+ if os.path.exists(bin_path) and os.listdir(bin_path):
25
+ return bin_path
26
+
27
+ # Fall back to cached / downloaded client.
28
+ cache_dir = ensure_client_cached()
29
+ if cache_dir and cache_dir.exists():
30
+ return str(cache_dir)
31
+
32
+ return None
33
+
34
+
35
+ def copy_flet_bin():
36
+ """
37
+ Copy packaged Flet desktop binaries into a temporary directory.
38
+
39
+ Returns:
40
+ Path to the temporary copied binaries directory, or ``None`` when source
41
+ binaries are unavailable.
42
+ """
43
+
44
+ bin_path = get_flet_bin_path()
45
+ if not bin_path:
46
+ return None
47
+
48
+ # create temp bin dir
49
+ temp_bin_dir = Path(tempfile.gettempdir()).joinpath(str(uuid.uuid4()))
50
+ copy_tree(bin_path, str(temp_bin_dir))
51
+ return str(temp_bin_dir)
@@ -0,0 +1 @@
1
+ version = "0.82.3.dev7863"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-cli
3
- Version: 0.82.3.dev7807
3
+ Version: 0.82.3.dev7863
4
4
  Summary: Flet CLI
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
9
9
  Project-URL: Documentation, https://flet.dev/docs
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: flet==0.82.3.dev7807
12
+ Requires-Dist: flet==0.82.3.dev7863
13
13
  Requires-Dist: watchdog>=4.0.0
14
14
  Requires-Dist: packaging>=25.0
15
15
  Requires-Dist: qrcode>=7.4.2
@@ -1,4 +1,4 @@
1
- flet==0.82.3.dev7807
1
+ flet==0.82.3.dev7863
2
2
  watchdog>=4.0.0
3
3
  packaging>=25.0
4
4
  qrcode>=7.4.2
@@ -1,40 +0,0 @@
1
- import os
2
- import tempfile
3
- import uuid
4
- from pathlib import Path
5
-
6
- from flet.utils import copy_tree
7
- from flet_desktop import get_package_bin_dir
8
-
9
-
10
- def get_flet_bin_path():
11
- """
12
- Return path to packaged Flet desktop binaries, if available.
13
-
14
- Returns:
15
- Absolute binaries directory path or `None` when not found.
16
- """
17
-
18
- bin_path = get_package_bin_dir()
19
- if not os.path.exists(bin_path):
20
- return None
21
- return bin_path
22
-
23
-
24
- def copy_flet_bin():
25
- """
26
- Copy packaged Flet desktop binaries into a temporary directory.
27
-
28
- Returns:
29
- Path to the temporary copied binaries directory, or `None` when source
30
- binaries are unavailable.
31
- """
32
-
33
- bin_path = get_flet_bin_path()
34
- if not bin_path:
35
- return None
36
-
37
- # create temp bin dir
38
- temp_bin_dir = Path(tempfile.gettempdir()).joinpath(str(uuid.uuid4()))
39
- copy_tree(bin_path, str(temp_bin_dir))
40
- return str(temp_bin_dir)
@@ -1 +0,0 @@
1
- version = "0.82.3.dev7807"