flet-cli 1.0.0.dev2__tar.gz → 1.0.1__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 (74) hide show
  1. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/PKG-INFO +7 -3
  2. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/README.md +4 -0
  3. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/pyproject.toml +3 -3
  4. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/publish.py +1 -0
  5. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/run.py +18 -0
  6. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/python_versions.py +1 -1
  7. flet_cli-1.0.1/src/flet_cli/version.py +1 -0
  8. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/PKG-INFO +7 -3
  9. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/requires.txt +2 -2
  10. flet_cli-1.0.0.dev2/src/flet_cli/version.py +0 -1
  11. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/setup.cfg +0 -0
  12. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/__init__.py +0 -0
  13. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/config.py +0 -0
  14. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/hook-flet.py +0 -0
  15. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/macos_utils.py +0 -0
  16. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py +0 -0
  17. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/rthooks.dat +0 -0
  18. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/utils.py +0 -0
  19. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/__pyinstaller/win_utils.py +0 -0
  20. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/cli.py +0 -0
  21. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/base.py +0 -0
  22. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/build.py +0 -0
  23. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/build_base.py +0 -0
  24. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/clean.py +0 -0
  25. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/create.py +0 -0
  26. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/debug.py +0 -0
  27. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/devices.py +0 -0
  28. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/doctor.py +0 -0
  29. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/emulators.py +0 -0
  30. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/flutter_base.py +0 -0
  31. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/mcp.py +0 -0
  32. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/options.py +0 -0
  33. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/pack.py +0 -0
  34. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/serve.py +0 -0
  35. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/test.py +0 -0
  36. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/commands/test_host.py +0 -0
  37. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/android.py +0 -0
  38. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/android_sdk.py +0 -0
  39. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/cli.py +0 -0
  40. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/distros.py +0 -0
  41. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/flutter.py +0 -0
  42. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/hash_stamp.py +0 -0
  43. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/ios_sign.py +0 -0
  44. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/jdk.py +0 -0
  45. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/linux_deps.py +0 -0
  46. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/macos_sign.py +0 -0
  47. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/merge.py +0 -0
  48. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/plist.py +0 -0
  49. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/processes.py +0 -0
  50. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/project_dependencies.py +0 -0
  51. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/pyodide.py +0 -0
  52. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/pyproject_toml.py +0 -0
  53. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli/utils/template_cache.py +0 -0
  54. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/SOURCES.txt +0 -0
  55. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/dependency_links.txt +0 -0
  56. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/entry_points.txt +0 -0
  57. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/src/flet_cli.egg-info/top_level.txt +0 -0
  58. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_icons.py +0 -0
  59. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_ios.py +0 -0
  60. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_linux.py +0 -0
  61. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_macos_signing.py +0 -0
  62. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_splash.py +0 -0
  63. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_build_template.py +0 -0
  64. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_clean.py +0 -0
  65. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_create.py +0 -0
  66. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_find_platform_image.py +0 -0
  67. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_flutter.py +0 -0
  68. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_macos_sign.py +0 -0
  69. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_plist.py +0 -0
  70. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_project_dependencies.py +0 -0
  71. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_python_versions.py +0 -0
  72. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_run_assets_dir.py +0 -0
  73. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_run_desktop_dependency.py +0 -0
  74. {flet_cli-1.0.0.dev2 → flet_cli-1.0.1}/tests/test_run_script_args.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-cli
3
- Version: 1.0.0.dev2
3
+ Version: 1.0.1
4
4
  Summary: Flet CLI
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,8 +9,8 @@ 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==1.0.0.dev2
13
- Requires-Dist: flet-platform-assets==1.0.0.dev2
12
+ Requires-Dist: flet==1.0.1
13
+ Requires-Dist: flet-platform-assets==1.0.1
14
14
  Requires-Dist: watchdog>=4.0.0
15
15
  Requires-Dist: packaging>=25.0
16
16
  Requires-Dist: qrcode>=7.4.2
@@ -29,6 +29,10 @@ Requires-Dist: flet-mcp; extra == "mcp"
29
29
 
30
30
  Flet CLI is a command-line interface tool for Flet, a framework for building interactive multi-platform applications using Python.
31
31
 
32
+ > **[Try Flet online in Flet Studio](https://studio.flet.dev)**
33
+ >
34
+ > Try an idea in your browser with no installation, then use the Flet CLI locally to develop and package your app. Write your own Python code or get help from the AI agent.
35
+
32
36
  ## Features
33
37
 
34
38
  - Create new Flet projects
@@ -5,6 +5,10 @@
5
5
 
6
6
  Flet CLI is a command-line interface tool for Flet, a framework for building interactive multi-platform applications using Python.
7
7
 
8
+ > **[Try Flet online in Flet Studio](https://studio.flet.dev)**
9
+ >
10
+ > Try an idea in your browser with no installation, then use the Flet CLI locally to develop and package your app. Write your own Python code or get help from the AI agent.
11
+
8
12
  ## Features
9
13
 
10
14
  - Create new Flet projects
@@ -1,14 +1,14 @@
1
1
  [project]
2
2
  name = "flet-cli"
3
- version = "1.0.0.dev2"
3
+ version = "1.0.1"
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==1.0.0.dev2",
11
- "flet-platform-assets==1.0.0.dev2",
10
+ "flet==1.0.1",
11
+ "flet-platform-assets==1.0.1",
12
12
  "watchdog >=4.0.0",
13
13
  "packaging >=25.0",
14
14
  "qrcode >=7.4.2",
@@ -370,6 +370,7 @@ class Command(BaseCommand):
370
370
  pyodide_pre=options.pre,
371
371
  pyodide_script_path=str(script_path),
372
372
  pyodide_version=python_release.pyodide,
373
+ app_package_url=app_tar_gz_filename,
373
374
  # "canvaskit" default for the same reason as `flet build web`:
374
375
  # "auto" puts Chromium on dart2wasm/skwasm, whose JS <-> Dart
375
376
  # typed-data boundary costs are a large per-frame tax for
@@ -1,4 +1,5 @@
1
1
  import argparse
2
+ import logging
2
3
  import os
3
4
  import platform
4
5
  import signal
@@ -207,6 +208,11 @@ class Command(BaseCommand):
207
208
  options: Parsed command options produced by :meth:`add_arguments`.
208
209
  """
209
210
 
211
+ if options.verbose > 0:
212
+ logging.basicConfig(
213
+ level=logging.DEBUG if options.verbose > 1 else logging.INFO
214
+ )
215
+
210
216
  from flet.utils.pip import (
211
217
  ensure_flet_desktop_package_installed,
212
218
  ensure_flet_web_package_installed,
@@ -350,6 +356,7 @@ class Command(BaseCommand):
350
356
  flet_app_data_dir=str(flet_app_data_dir),
351
357
  flet_app_cache_dir=str(flet_app_cache_dir),
352
358
  flet_app_temp_dir=str(flet_app_temp_dir),
359
+ verbose=options.verbose,
353
360
  )
354
361
 
355
362
  my_observer = Observer()
@@ -401,6 +408,7 @@ class Handler(FileSystemEventHandler):
401
408
  flet_app_data_dir,
402
409
  flet_app_cache_dir,
403
410
  flet_app_temp_dir,
411
+ verbose,
404
412
  ) -> None:
405
413
  super().__init__()
406
414
  self.args = args
@@ -425,6 +433,7 @@ class Handler(FileSystemEventHandler):
425
433
  self.flet_app_data_dir = flet_app_data_dir
426
434
  self.flet_app_cache_dir = flet_app_cache_dir
427
435
  self.flet_app_temp_dir = flet_app_temp_dir
436
+ self.verbose = verbose
428
437
  self.terminate = threading.Event()
429
438
  self.start_process()
430
439
 
@@ -453,7 +462,16 @@ class Handler(FileSystemEventHandler):
453
462
  p_env["FLET_SERVER_UDS_PATH"] = self.uds_path
454
463
  if self.assets_dir is not None:
455
464
  p_env["FLET_ASSETS_DIR"] = self.assets_dir
465
+ # The app runs with its cwd set to the storage directory below, so a
466
+ # relative path the user typed in their shell has to be resolved here
467
+ # while that meaning still holds.
468
+ web_path = p_env.get("FLET_WEB_PATH")
469
+ if web_path and not Path(web_path).is_absolute():
470
+ p_env["FLET_WEB_PATH"] = str(Path(web_path).resolve())
471
+
456
472
  p_env["FLET_DISPLAY_URL_PREFIX"] = self.page_url_prefix
473
+ if self.verbose > 0:
474
+ p_env["FLET_LOG_LEVEL"] = "debug" if self.verbose > 1 else "info"
457
475
 
458
476
  p_env["FLET_APP_STORAGE_DATA"] = self.flet_app_data_dir
459
477
  p_env["FLET_APP_STORAGE_CACHE"] = self.flet_app_cache_dir
@@ -28,7 +28,7 @@ from flet_cli.utils.template_cache import get_cache_root
28
28
  # python-build release this flet pins. Keep in sync with serious_python's
29
29
  # `pythonReleaseDate` (lib/src/python_versions.dart) — both should track the
30
30
  # same python-build release.
31
- PYTHON_BUILD_RELEASE_DATE = "20260908"
31
+ PYTHON_BUILD_RELEASE_DATE = "20260921"
32
32
 
33
33
  RELEASE_DATE_ENV = "FLET_PYTHON_BUILD_RELEASE_DATE"
34
34
  MANIFEST_PATH_ENV = "FLET_PYTHON_BUILD_MANIFEST"
@@ -0,0 +1 @@
1
+ version = "1.0.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-cli
3
- Version: 1.0.0.dev2
3
+ Version: 1.0.1
4
4
  Summary: Flet CLI
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,8 +9,8 @@ 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==1.0.0.dev2
13
- Requires-Dist: flet-platform-assets==1.0.0.dev2
12
+ Requires-Dist: flet==1.0.1
13
+ Requires-Dist: flet-platform-assets==1.0.1
14
14
  Requires-Dist: watchdog>=4.0.0
15
15
  Requires-Dist: packaging>=25.0
16
16
  Requires-Dist: qrcode>=7.4.2
@@ -29,6 +29,10 @@ Requires-Dist: flet-mcp; extra == "mcp"
29
29
 
30
30
  Flet CLI is a command-line interface tool for Flet, a framework for building interactive multi-platform applications using Python.
31
31
 
32
+ > **[Try Flet online in Flet Studio](https://studio.flet.dev)**
33
+ >
34
+ > Try an idea in your browser with no installation, then use the Flet CLI locally to develop and package your app. Write your own Python code or get help from the AI agent.
35
+
32
36
  ## Features
33
37
 
34
38
  - Create new Flet projects
@@ -1,5 +1,5 @@
1
- flet==1.0.0.dev2
2
- flet-platform-assets==1.0.0.dev2
1
+ flet==1.0.1
2
+ flet-platform-assets==1.0.1
3
3
  watchdog>=4.0.0
4
4
  packaging>=25.0
5
5
  qrcode>=7.4.2
@@ -1 +0,0 @@
1
- version = "1.0.0.dev2"
File without changes