flet-cli 0.86.0.dev0__py3-none-any.whl → 0.86.0.dev1__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.
@@ -89,6 +89,7 @@ class BaseBuildCommand(BaseFlutterCommand):
89
89
  self.flutter_dir: Optional[Path] = None
90
90
  self.flutter_packages_dir = None
91
91
  self.flutter_packages_temp_dir = None
92
+ self.site_packages_skipped = False
92
93
  self.platforms = {
93
94
  "windows": {
94
95
  "package_platform": "Windows",
@@ -1637,11 +1638,20 @@ class BaseBuildCommand(BaseFlutterCommand):
1637
1638
  # when the app has no Flutter extensions — so always clear the old copy
1638
1639
  # first, otherwise an extension removed since the previous build (e.g.
1639
1640
  # dropping flet-video) would linger here and stay in the built app.
1640
- if self.flutter_packages_dir.exists():
1641
- shutil.rmtree(self.flutter_packages_dir, ignore_errors=True)
1642
- if self.flutter_packages_temp_dir.exists():
1643
- # copy packages from temp to permanent location
1644
- shutil.move(self.flutter_packages_temp_dir, self.flutter_packages_dir)
1641
+ #
1642
+ # Skip this when the package step ran with --skip-site-packages: in that
1643
+ # mode serious_python does not repopulate the temp dir, so an absent temp
1644
+ # dir means "unchanged" rather than "no extensions". Wiping here would
1645
+ # delete the previous build's extensions and never restore them, breaking
1646
+ # the Flutter build (unresolved web plugins). A removed extension changes
1647
+ # the package requirements, flips the package hash, and takes the full
1648
+ # (non-skip) path above instead.
1649
+ if not self.site_packages_skipped:
1650
+ if self.flutter_packages_dir.exists():
1651
+ shutil.rmtree(self.flutter_packages_dir, ignore_errors=True)
1652
+ if self.flutter_packages_temp_dir.exists():
1653
+ # copy packages from temp to permanent location
1654
+ shutil.move(self.flutter_packages_temp_dir, self.flutter_packages_dir)
1645
1655
 
1646
1656
  if self.flutter_packages_dir.exists():
1647
1657
  self.update_status("[bold blue]Registering Flutter user extensions...")
@@ -2380,6 +2390,11 @@ class BaseBuildCommand(BaseFlutterCommand):
2380
2390
  if not dev_packages_configured:
2381
2391
  if not hash.has_changed():
2382
2392
  package_args.append("--skip-site-packages")
2393
+ # serious_python skips copying Flutter packages to the temp dir
2394
+ # under --skip-site-packages, so register_flutter_extensions must
2395
+ # keep (not wipe) the permanent flutter-packages copy from the
2396
+ # previous build.
2397
+ self.site_packages_skipped = True
2383
2398
  else:
2384
2399
  if self.flutter_packages_dir.exists():
2385
2400
  shutil.rmtree(self.flutter_packages_dir, ignore_errors=True)
flet_cli/version.py CHANGED
@@ -1 +1 @@
1
- version = "0.86.0.dev0"
1
+ version = "0.86.0.dev1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-cli
3
- Version: 0.86.0.dev0
3
+ Version: 0.86.0.dev1
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.86.0.dev0
12
+ Requires-Dist: flet==0.86.0.dev1
13
13
  Requires-Dist: watchdog>=4.0.0
14
14
  Requires-Dist: packaging>=25.0
15
15
  Requires-Dist: qrcode>=7.4.2
@@ -1,5 +1,5 @@
1
1
  flet_cli/cli.py,sha256=xIksfqmpf_wbzWLj1EdHkTjVIs6atpfX3hyPjYAFw-M,5086
2
- flet_cli/version.py,sha256=e0czc2hVSlXOBe3Yrftk2HEDXoE9ZeT9zEuEYE3gSw8,24
2
+ flet_cli/version.py,sha256=OI8ynClV8yklYxMvFXDAHwhfjTnBhIibqVtDuN850Sc,24
3
3
  flet_cli/__pyinstaller/__init__.py,sha256=KJsKpQ6uSVslADmFaOKaxCu-GOZZtcVKnti-ripD-ug,164
4
4
  flet_cli/__pyinstaller/config.py,sha256=MN2IPu53K1RDyh_KE4wIcQH8El_n4Z3fD6NO2iq8y74,20
5
5
  flet_cli/__pyinstaller/hook-flet.py,sha256=RbiFE8-7VBsY4Dwt7a9-9gW0gUFQGjOLY1-OBsZm_mI,506
@@ -9,7 +9,7 @@ flet_cli/__pyinstaller/win_utils.py,sha256=wu0G98CUMkGfloZa2LTqJE7axAZPB2-TLBOHJ
9
9
  flet_cli/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py,sha256=Q5r19b95nWjDdF-D6civD6_M8jzSDIi26WBHlVJOhdY,584
10
10
  flet_cli/commands/base.py,sha256=6MTAuA7kKdaKIZI4AyWPM1TJfFCxmRj7kc7z2h6E_4k,3496
11
11
  flet_cli/commands/build.py,sha256=NrKWl9v6ijWJVVOLMm1SG6zQAb02vtPwVMeHPXh19uw,7250
12
- flet_cli/commands/build_base.py,sha256=wTS0idD5Wgpsq-KSTsgsqU3JOIyHvpygeIMyA2kWQQ8,114188
12
+ flet_cli/commands/build_base.py,sha256=d_ICbBitMoROhTCw-NL0NLK71SuOXWnQ8tfo4Wxj2fg,115155
13
13
  flet_cli/commands/clean.py,sha256=fIRr1ktoE9wzO0R-lAq985zbCH1dX6Sao5VyXiJxiOY,2250
14
14
  flet_cli/commands/create.py,sha256=yvFvKR1Vfw4fJfmxfgM-us8JF-tBkbOHuG0HfcpZcTQ,5450
15
15
  flet_cli/commands/debug.py,sha256=7RhwJCKLVSf9_hunWGKd9vBnR9EgujCWmgs6aOzQVr4,6656
@@ -41,8 +41,8 @@ flet_cli/utils/pyodide.py,sha256=RhumXYuovPxgLbu99pNNhVb9SRvBvhLGiUMtb9WxC5U,505
41
41
  flet_cli/utils/pyproject_toml.py,sha256=o4fAWKXMyK8vdnAO41BLI7Lt3ohMlVdlwrpaifq30Cs,1408
42
42
  flet_cli/utils/python_versions.py,sha256=PjEDTn3A9U_Qm8FTYga_ZrMlgbD2sfHGvQBzHI3fQxs,8129
43
43
  flet_cli/utils/template_cache.py,sha256=Lf_iuk30zTfaNFbRmrc8s07w1yE-PYjdovZztoiuPzc,1596
44
- flet_cli-0.86.0.dev0.dist-info/METADATA,sha256=Eq3FA9oXmIXb0xxWgQgweHM5R7s9IvpCuMiHV1i6j3o,1302
45
- flet_cli-0.86.0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
46
- flet_cli-0.86.0.dev0.dist-info/entry_points.txt,sha256=UZFR426y3mfr0wgikEFPbZ6wtGwfgykif9Obw6R7Wnc,65
47
- flet_cli-0.86.0.dev0.dist-info/top_level.txt,sha256=4_BPVAJpcNofDe3XMxajlZLBNWzWqKhRynNSBCYTKVQ,9
48
- flet_cli-0.86.0.dev0.dist-info/RECORD,,
44
+ flet_cli-0.86.0.dev1.dist-info/METADATA,sha256=_z9ZDNMfWDJku2QQZ5Io25dgW3jHiZS924CyCR6vvKs,1302
45
+ flet_cli-0.86.0.dev1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
46
+ flet_cli-0.86.0.dev1.dist-info/entry_points.txt,sha256=UZFR426y3mfr0wgikEFPbZ6wtGwfgykif9Obw6R7Wnc,65
47
+ flet_cli-0.86.0.dev1.dist-info/top_level.txt,sha256=4_BPVAJpcNofDe3XMxajlZLBNWzWqKhRynNSBCYTKVQ,9
48
+ flet_cli-0.86.0.dev1.dist-info/RECORD,,