diff --git a/.appveyor.yml b/.appveyor.yml index dbb47630..0124f046 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -180,7 +180,8 @@ for: install: # Flutter SDK - - sudo apt update --allow-releaseinfo-change + - sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf + - sudo apt update -y --allow-releaseinfo-change - sudo apt install -y clang ninja-build xvfb libgtk-3-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav - git clone https://github.com/flutter/flutter.git -b stable "$HOME/flutter" - export PATH="$PATH:$HOME/flutter/bin" @@ -235,7 +236,7 @@ for: dart pub publish --force cd $APPVEYOR_BUILD_FOLDER - sleep 300 + sleep 600 cd src/serious_python_android dart pub publish --force @@ -253,7 +254,7 @@ for: dart pub publish --force cd $APPVEYOR_BUILD_FOLDER - sleep 300 + sleep 600 cd src/serious_python dart pub publish --force || exit 1 diff --git a/src/serious_python/CHANGELOG.md b/src/serious_python/CHANGELOG.md index bc7cf980..9e9b7e5e 100644 --- a/src/serious_python/CHANGELOG.md +++ b/src/serious_python/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python/pubspec.yaml b/src/serious_python/pubspec.yaml index 3a95eed4..a9b0ac39 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: 0.8.2 +version: 0.8.3 platforms: ios: diff --git a/src/serious_python_android/CHANGELOG.md b/src/serious_python_android/CHANGELOG.md index 3a0e794f..70e5ece7 100644 --- a/src/serious_python_android/CHANGELOG.md +++ b/src/serious_python_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python_android/android/build.gradle b/src/serious_python_android/android/build.gradle index 2f57c85b..3ea43ca4 100644 --- a/src/serious_python_android/android/build.gradle +++ b/src/serious_python_android/android/build.gradle @@ -1,5 +1,5 @@ group 'com.flet.serious_python_android' -version '0.8.2' +version '0.8.3' def python_version = '3.12' diff --git a/src/serious_python_android/lib/serious_python_android.dart b/src/serious_python_android/lib/serious_python_android.dart index c0572c92..76ac2c32 100644 --- a/src/serious_python_android/lib/serious_python_android.dart +++ b/src/serious_python_android/lib/serious_python_android.dart @@ -70,7 +70,6 @@ class SeriousPythonAndroid extends SeriousPythonPlatform { } setenv("PYTHONINSPECT", "1"); - setenv("PYTHONOPTIMIZE", "2"); setenv("PYTHONDONTWRITEBYTECODE", "1"); setenv("PYTHONNOUSERSITE", "1"); setenv("PYTHONUNBUFFERED", "1"); diff --git a/src/serious_python_android/pubspec.yaml b/src/serious_python_android/pubspec.yaml index 9c20df4f..268ba8c5 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: 0.8.2 +version: 0.8.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 0f4419af..c16cf535 100644 --- a/src/serious_python_darwin/CHANGELOG.md +++ b/src/serious_python_darwin/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python_darwin/darwin/Classes/SeriousPythonPlugin.swift b/src/serious_python_darwin/darwin/Classes/SeriousPythonPlugin.swift index 4fd38149..12f8a511 100644 --- a/src/serious_python_darwin/darwin/Classes/SeriousPythonPlugin.swift +++ b/src/serious_python_darwin/darwin/Classes/SeriousPythonPlugin.swift @@ -54,7 +54,6 @@ public class SeriousPythonPlugin: NSObject, FlutterPlugin { ] setenv("PYTHONINSPECT", "1", 1) - setenv("PYTHONOPTIMIZE", "2", 1) setenv("PYTHONDONTWRITEBYTECODE", "1", 1) setenv("PYTHONNOUSERSITE", "1", 1) setenv("PYTHONUNBUFFERED", "1", 1) diff --git a/src/serious_python_darwin/darwin/serious_python_darwin.podspec b/src/serious_python_darwin/darwin/serious_python_darwin.podspec index e1ded3fd..c9c8b120 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 = '0.8.2' + s.version = '0.8.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 da9a09b8..14c0bcb3 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: 0.8.2 +version: 0.8.3 environment: sdk: ">=3.0.0 <4.0.0" diff --git a/src/serious_python_linux/CHANGELOG.md b/src/serious_python_linux/CHANGELOG.md index 71d26bc8..9c888be4 100644 --- a/src/serious_python_linux/CHANGELOG.md +++ b/src/serious_python_linux/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python_linux/linux/serious_python_linux_plugin.cc b/src/serious_python_linux/linux/serious_python_linux_plugin.cc index 7a2eaef9..e70f23f0 100644 --- a/src/serious_python_linux/linux/serious_python_linux_plugin.cc +++ b/src/serious_python_linux/linux/serious_python_linux_plugin.cc @@ -109,7 +109,6 @@ static void serious_python_linux_plugin_handle_method_call( // environmentVariables g_setenv("PYTHONINSPECT", "1", TRUE); - g_setenv("PYTHONOPTIMIZE", "2", TRUE); g_setenv("PYTHONDONTWRITEBYTECODE", "1", TRUE); g_setenv("PYTHONNOUSERSITE", "1", TRUE); g_setenv("PYTHONUNBUFFERED", "1", TRUE); diff --git a/src/serious_python_linux/pubspec.yaml b/src/serious_python_linux/pubspec.yaml index daf4f4ca..460bc5f7 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: 0.8.2 +version: 0.8.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 b4600280..03c7aeff 100644 --- a/src/serious_python_platform_interface/CHANGELOG.md +++ b/src/serious_python_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python_platform_interface/pubspec.yaml b/src/serious_python_platform_interface/pubspec.yaml index ffe56f39..88a6e428 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: 0.8.2 +version: 0.8.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 7926cdf1..f1678ae1 100644 --- a/src/serious_python_windows/CHANGELOG.md +++ b/src/serious_python_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.3 + +* Remove `PYTHONOPTIMIZE=2` to make CFFI work. + ## 0.8.2 * Copy `.so` libraries from `{site-packages}/opt` to `jniLibs`. diff --git a/src/serious_python_windows/pubspec.yaml b/src/serious_python_windows/pubspec.yaml index fd4428bf..e3c241e9 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: 0.8.2 +version: 0.8.3 environment: sdk: '>=3.1.3 <4.0.0' diff --git a/src/serious_python_windows/windows/serious_python_windows_plugin.cpp b/src/serious_python_windows/windows/serious_python_windows_plugin.cpp index 479e65c7..2f0d6043 100644 --- a/src/serious_python_windows/windows/serious_python_windows_plugin.cpp +++ b/src/serious_python_windows/windows/serious_python_windows_plugin.cpp @@ -174,7 +174,6 @@ namespace serious_python_windows // set python-related env vars _putenv_s("PYTHONINSPECT", "1"); - _putenv_s("PYTHONOPTIMIZE", "2"); _putenv_s("PYTHONDONTWRITEBYTECODE", "1"); _putenv_s("PYTHONNOUSERSITE", "1"); _putenv_s("PYTHONUNBUFFERED", "1");