Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/serious_python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
14 changes: 12 additions & 2 deletions src/serious_python/bin/package_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -669,12 +669,22 @@ class PackageCommand extends Command {
{Map<String, String>? 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;
Expand Down
12 changes: 6 additions & 6 deletions src/serious_python/example/flask_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions src/serious_python/example/run_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions src/serious_python_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_android/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
}

group = "com.flet.serious_python_android"
version = "6.1.2"
version = "6.1.3"

rootProject.allprojects {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/serious_python_darwin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_darwin/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/serious_python_linux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_linux/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions src/serious_python_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/serious_python_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)).
Expand Down
2 changes: 1 addition & 1 deletion src/serious_python_windows/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading