diff --git a/src/serious_python/CHANGELOG.md b/src/serious_python/CHANGELOG.md index 1bef7fd3..deb51f48 100644 --- a/src/serious_python/CHANGELOG.md +++ b/src/serious_python/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Fix the `package` command hiding why a step failed when the error went to stdout, such as the `SyntaxError` from compiling an app file, which made `flet build` fail with no explanation unless run with `-vv` ([#262](https://github.com/flet-dev/serious-python/pull/262), [flet-dev/flet#7029](https://github.com/flet-dev/flet/issues/7029)). + ## 6.1.2 * Windows Debug builds (`flutter test`, `flutter run`) use the release CPython, so compiled packages such as `pydantic-core` or `numpy` import there ([#261](https://github.com/flet-dev/serious-python/pull/261), [flet-dev/flet#7020](https://github.com/flet-dev/flet/discussions/7020)). diff --git a/src/serious_python/bin/package_command.dart b/src/serious_python/bin/package_command.dart index 38f0d9cf..c5ec4b70 100644 --- a/src/serious_python/bin/package_command.dart +++ b/src/serious_python/bin/package_command.dart @@ -669,12 +669,22 @@ class PackageCommand extends Command { {Map? environment}) async { final proc = await Process.start(execPath, args, environment: environment); - await for (final line in proc.stdout.transform(utf8.decoder)) { - verbose(line.trim()); + // Without --verbose, stdout is kept so it can be shown if a command that + // reports its errors there (e.g., compileall) fails. + final stdoutBuffer = StringBuffer(); + await for (final chunk in proc.stdout.transform(utf8.decoder)) { + if (_verbose) { + verbose(chunk.trim()); + } else { + stdoutBuffer.write(chunk); + } } if (await proc.exitCode != 0) { + stderr.write(stdoutBuffer.toString()); stderr.write(await proc.stderr.transform(utf8.decoder).join()); + // exit() doesn't wait for pending writes to stderr. + await stderr.flush(); exit(1); } return proc.exitCode; diff --git a/src/serious_python/example/flask_example/pubspec.lock b/src/serious_python/example/flask_example/pubspec.lock index fa02eea7..1d96d94a 100644 --- a/src/serious_python/example/flask_example/pubspec.lock +++ b/src/serious_python/example/flask_example/pubspec.lock @@ -361,42 +361,42 @@ packages: path: "../.." relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_android: dependency: transitive description: path: "../../../serious_python_android" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_darwin: dependency: transitive description: path: "../../../serious_python_darwin" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_linux: dependency: transitive description: path: "../../../serious_python_linux" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_platform_interface: dependency: transitive description: path: "../../../serious_python_platform_interface" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_windows: dependency: transitive description: path: "../../../serious_python_windows" relative: true source: path - version: "6.1.2" + version: "6.1.3" shelf: dependency: transitive description: diff --git a/src/serious_python/example/run_example/pubspec.lock b/src/serious_python/example/run_example/pubspec.lock index 08f3bae4..eadfc03a 100644 --- a/src/serious_python/example/run_example/pubspec.lock +++ b/src/serious_python/example/run_example/pubspec.lock @@ -384,42 +384,42 @@ packages: path: "../.." relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_android: dependency: transitive description: path: "../../../serious_python_android" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_darwin: dependency: transitive description: path: "../../../serious_python_darwin" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_linux: dependency: transitive description: path: "../../../serious_python_linux" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_platform_interface: dependency: transitive description: path: "../../../serious_python_platform_interface" relative: true source: path - version: "6.1.2" + version: "6.1.3" serious_python_windows: dependency: transitive description: path: "../../../serious_python_windows" relative: true source: path - version: "6.1.2" + version: "6.1.3" shelf: dependency: transitive description: diff --git a/src/serious_python/pubspec.yaml b/src/serious_python/pubspec.yaml index 42695975..3d964fbe 100644 --- a/src/serious_python/pubspec.yaml +++ b/src/serious_python/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps. homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 platforms: ios: diff --git a/src/serious_python_android/CHANGELOG.md b/src/serious_python_android/CHANGELOG.md index d0409168..c98d2e7c 100644 --- a/src/serious_python_android/CHANGELOG.md +++ b/src/serious_python_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Align with the serious_python **6.1.3** release ([#262](https://github.com/flet-dev/serious-python/pull/262)). + ## 6.1.2 * Align with the serious_python **6.1.2** release ([#261](https://github.com/flet-dev/serious-python/pull/261)). diff --git a/src/serious_python_android/android/build.gradle.kts b/src/serious_python_android/android/build.gradle.kts index 2dd352bf..cfabf3d2 100644 --- a/src/serious_python_android/android/build.gradle.kts +++ b/src/serious_python_android/android/build.gradle.kts @@ -21,7 +21,7 @@ buildscript { } group = "com.flet.serious_python_android" -version = "6.1.2" +version = "6.1.3" rootProject.allprojects { repositories { diff --git a/src/serious_python_android/pubspec.yaml b/src/serious_python_android/pubspec.yaml index d53fcd00..f02e9fcd 100644 --- a/src/serious_python_android/pubspec.yaml +++ b/src/serious_python_android/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python_android description: Android implementation of the serious_python plugin homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 environment: sdk: ">=3.0.0 <4.0.0" diff --git a/src/serious_python_darwin/CHANGELOG.md b/src/serious_python_darwin/CHANGELOG.md index 4c1a2889..8b3b42fc 100644 --- a/src/serious_python_darwin/CHANGELOG.md +++ b/src/serious_python_darwin/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Align with the serious_python **6.1.3** release ([#262](https://github.com/flet-dev/serious-python/pull/262)). + ## 6.1.2 * Align with the serious_python **6.1.2** release ([#261](https://github.com/flet-dev/serious-python/pull/261)). diff --git a/src/serious_python_darwin/darwin/serious_python_darwin.podspec b/src/serious_python_darwin/darwin/serious_python_darwin.podspec index bd4b0861..2ab1ab39 100644 --- a/src/serious_python_darwin/darwin/serious_python_darwin.podspec +++ b/src/serious_python_darwin/darwin/serious_python_darwin.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'serious_python_darwin' - s.version = '6.1.2' + s.version = '6.1.3' s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.' s.description = <<-DESC A cross-platform plugin for adding embedded Python runtime to your Flutter apps. diff --git a/src/serious_python_darwin/pubspec.yaml b/src/serious_python_darwin/pubspec.yaml index ffd0b2e9..d1ba8953 100644 --- a/src/serious_python_darwin/pubspec.yaml +++ b/src/serious_python_darwin/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python_darwin description: iOS and macOS implementations of the serious_python plugin homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 environment: # The Swift Package Manager build path needs Flutter 3.44 / Dart 3.11 (the diff --git a/src/serious_python_linux/CHANGELOG.md b/src/serious_python_linux/CHANGELOG.md index c71fe8c1..d363fbbf 100644 --- a/src/serious_python_linux/CHANGELOG.md +++ b/src/serious_python_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Align with the serious_python **6.1.3** release ([#262](https://github.com/flet-dev/serious-python/pull/262)). + ## 6.1.2 * Fix native Python extension imports, including `pydantic-core`, which failed with unresolved CPython symbols such as `PyExc_RecursionError` ([#261](https://github.com/flet-dev/serious-python/pull/261)). diff --git a/src/serious_python_linux/pubspec.yaml b/src/serious_python_linux/pubspec.yaml index d1797f8e..297e51cd 100644 --- a/src/serious_python_linux/pubspec.yaml +++ b/src/serious_python_linux/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python_linux description: Linux implementations of the serious_python plugin homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 environment: sdk: '>=3.1.3 <4.0.0' diff --git a/src/serious_python_platform_interface/CHANGELOG.md b/src/serious_python_platform_interface/CHANGELOG.md index 45269547..e43dec06 100644 --- a/src/serious_python_platform_interface/CHANGELOG.md +++ b/src/serious_python_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Align with the serious_python **6.1.3** release ([#262](https://github.com/flet-dev/serious-python/pull/262)). + ## 6.1.2 * On Windows, open `dart_bridge.dll` in Debug builds too, instead of `dart_bridge_d.dll` ([#261](https://github.com/flet-dev/serious-python/pull/261), [flet-dev/flet#7020](https://github.com/flet-dev/flet/discussions/7020)). diff --git a/src/serious_python_platform_interface/pubspec.yaml b/src/serious_python_platform_interface/pubspec.yaml index 002556c8..dbfae227 100644 --- a/src/serious_python_platform_interface/pubspec.yaml +++ b/src/serious_python_platform_interface/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python_platform_interface description: A common platform interface for the serious_python plugin. homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 environment: sdk: ">=3.0.0 <4.0.0" diff --git a/src/serious_python_windows/CHANGELOG.md b/src/serious_python_windows/CHANGELOG.md index 1873b665..fd07b6e3 100644 --- a/src/serious_python_windows/CHANGELOG.md +++ b/src/serious_python_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.1.3 + +* Align with the serious_python **6.1.3** release ([#262](https://github.com/flet-dev/serious-python/pull/262)). + ## 6.1.2 * **Compiled Python packages import in Debug Windows builds.** Debug builds, such as `flutter test`, `flutter run` and Flet's `flet test`, bundled a debug build of CPython (`python3XY_d.dll` with `dart_bridge_d.dll`), which only imports extension modules named `*_d.pyd`. Wheels from PyPI don't ship those, so packages like `pydantic-core` or `numpy` failed with `ModuleNotFoundError` (e.g. `No module named 'pydantic_core._pydantic_core'`). Every build configuration now bundles the release CPython and `dart_bridge.dll`, and no build ships CPython's `*_d` modules ([#261](https://github.com/flet-dev/serious-python/pull/261), [flet-dev/flet#7020](https://github.com/flet-dev/flet/discussions/7020)). diff --git a/src/serious_python_windows/pubspec.yaml b/src/serious_python_windows/pubspec.yaml index 2479c26b..fcc007e1 100644 --- a/src/serious_python_windows/pubspec.yaml +++ b/src/serious_python_windows/pubspec.yaml @@ -2,7 +2,7 @@ name: serious_python_windows description: Windows implementations of the serious_python plugin homepage: https://flet.dev repository: https://github.com/flet-dev/serious-python -version: 6.1.2 +version: 6.1.3 environment: sdk: '>=3.1.3 <4.0.0'