diff --git a/CHANGELOG.md b/CHANGELOG.md index ddebec747d..954d053ae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.0.0 + +### Bug fixes + +* Fix `flet create --template extension` generating an example app whose `pyproject.toml` cannot be parsed on Windows. The `[tool.flet.dev_packages]` and `[tool.uv.sources]` entries that point back at the extension package interpolated the host's `os.sep` into a TOML basic string, so on Windows they rendered as `"..\.."` and `"..\..\"`: the first is an invalid escape sequence, and in the second the trailing `\"` escapes the closing quote and leaves the string unterminated — the "unbalanced quotes" error reporters hit before they could build or run the generated example. Both paths are now written with forward slashes, which need no escaping in TOML and which `pathlib` and `uv` accept on Windows just as they do elsewhere ([#5507](https://github.com/flet-dev/flet/issues/5507), [#6775](https://github.com/flet-dev/flet/pulls/6775)) by @ndonkoHenri. + ## 0.86.7 ### Bug fixes diff --git a/sdk/python/packages/flet-cli/src/flet_cli/commands/build_base.py b/sdk/python/packages/flet-cli/src/flet_cli/commands/build_base.py index b653de3bc8..18e0aec663 100644 --- a/sdk/python/packages/flet-cli/src/flet_cli/commands/build_base.py +++ b/sdk/python/packages/flet-cli/src/flet_cli/commands/build_base.py @@ -275,7 +275,7 @@ def add_arguments(self, parser: argparse.ArgumentParser) -> None: default=[], help="Build for specific CPU architectures " "(used in macOS and Android builds only). " - "Android: arm64-v8a, armeabi-v7a, x86_64; macOS: arm64, x64. " + "Android: arm64-v8a, armeabi-v7a, x86_64; macOS: arm64, x86_64. " "Example: `--arch arm64-v8a`", ) parser.add_argument( diff --git a/sdk/python/templates/app/extension/{{cookiecutter.out_dir}}/examples/{{cookiecutter.project_name_underscore}}_example/pyproject.toml b/sdk/python/templates/app/extension/{{cookiecutter.out_dir}}/examples/{{cookiecutter.project_name_underscore}}_example/pyproject.toml index e87ead6965..0e8340d330 100644 --- a/sdk/python/templates/app/extension/{{cookiecutter.out_dir}}/examples/{{cookiecutter.project_name_underscore}}_example/pyproject.toml +++ b/sdk/python/templates/app/extension/{{cookiecutter.out_dir}}/examples/{{cookiecutter.project_name_underscore}}_example/pyproject.toml @@ -42,7 +42,7 @@ copyright = "Copyright (C) 2026 by MyCompany" path = "src" [tool.flet.dev_packages] -{{cookiecutter.project_name}} = "..{{cookiecutter.sep}}.." # relative path +{{cookiecutter.project_name}} = "../.." # relative path [tool.uv.sources] -{{cookiecutter.project_name}} = { path = "..{{cookiecutter.sep}}..{{cookiecutter.sep}}", editable = true } +{{cookiecutter.project_name}} = { path = "../../", editable = true }