diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dbf35d0..ee8e28cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.2 + +* Package dist `site-packages` to a zip, so publishing to App Store doesn't fail. + ## 0.1.1 * Fixed issue with setting current directory on Python start. diff --git a/example/flask_example/pubspec.lock b/example/flask_example/pubspec.lock index c835115d..ab336eb5 100644 --- a/example/flask_example/pubspec.lock +++ b/example/flask_example/pubspec.lock @@ -281,7 +281,7 @@ packages: path: "../.." relative: true source: path - version: "0.1.1" + version: "0.1.2" sky_engine: dependency: transitive description: flutter diff --git a/example/flet_example/ios/Podfile.lock b/example/flet_example/ios/Podfile.lock index 619229c2..d9d562b7 100644 --- a/example/flet_example/ios/Podfile.lock +++ b/example/flet_example/ios/Podfile.lock @@ -44,7 +44,7 @@ PODS: - SDWebImage/Core (5.15.8) - sensors_plus (0.0.1): - Flutter - - serious_python (0.1.0): + - serious_python (0.1.1): - Flutter - shared_preferences_foundation (0.0.1): - Flutter @@ -97,7 +97,7 @@ SPEC CHECKSUMS: path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8 SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798 sensors_plus: 5717760720f7e6acd96fdbd75b7428f5ad755ec2 - serious_python: 954ab1502631a446dd28e0bacdb519e8a803a1fe + serious_python: 76a8038b2e4deae2bad1daee4040d7a49e60bc4f shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 diff --git a/example/flet_example/pubspec.lock b/example/flet_example/pubspec.lock index 392762a8..5fa516b5 100644 --- a/example/flet_example/pubspec.lock +++ b/example/flet_example/pubspec.lock @@ -486,7 +486,7 @@ packages: path: "../.." relative: true source: path - version: "0.1.1" + version: "0.1.2" shake: dependency: transitive description: diff --git a/ios/Classes/SeriousPythonPlugin.swift b/ios/Classes/SeriousPythonPlugin.swift index 26c591b2..07b497c1 100644 --- a/ios/Classes/SeriousPythonPlugin.swift +++ b/ios/Classes/SeriousPythonPlugin.swift @@ -32,7 +32,7 @@ public class SeriousPythonPlugin: NSObject, FlutterPlugin { "\(appDir)/__pypackages__", resourcePath, "\(resourcePath)/lib/python3.10", - "\(resourcePath)/lib/python3.10/site-packages" + "\(resourcePath)/lib/site-packages.zip" ] setenv("PYTHONINSPECT", "1", 1) diff --git a/ios/serious_python.podspec b/ios/serious_python.podspec index ea38d912..7b081f3b 100644 --- a/ios/serious_python.podspec +++ b/ios/serious_python.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'serious_python' - s.version = '0.1.1' + s.version = '0.1.2' 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. @@ -49,6 +49,15 @@ Pod::Spec.new do |s| # fix import subprocess, asyncio cp -R pod_templates/site-packages/* dist/root/python3/lib/python3.10/site-packages + + # zip site-packages + pushd dist/root/python3/lib/python3.10/site-packages + zip -r ../../site-packages.zip . + popd + rm -rf dist/root/python3/lib/python3.10 + + # remove junk + rm -rf dist/root/python3/lib/python3.10/config-3.10-darwin CMD s.libraries = 'z', 'bz2', 'c++', 'sqlite3' diff --git a/pubspec.yaml b/pubspec.yaml index 97213dab..0db279a3 100644 --- a/pubspec.yaml +++ b/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.1.1 +version: 0.1.2 platforms: ios: