Skip to content

Commit 6506c82

Browse files
Merge pull request #4 from flet-dev/v0-1-2
v0.1.2
2 parents 3a9f6f2 + a85d148 commit 6506c82

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.2
2+
3+
* Package dist `site-packages` to a zip, so publishing to App Store doesn't fail.
4+
15
## 0.1.1
26

37
* Fixed issue with setting current directory on Python start.

example/flask_example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ packages:
281281
path: "../.."
282282
relative: true
283283
source: path
284-
version: "0.1.1"
284+
version: "0.1.2"
285285
sky_engine:
286286
dependency: transitive
287287
description: flutter

example/flet_example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PODS:
4444
- SDWebImage/Core (5.15.8)
4545
- sensors_plus (0.0.1):
4646
- Flutter
47-
- serious_python (0.1.0):
47+
- serious_python (0.1.1):
4848
- Flutter
4949
- shared_preferences_foundation (0.0.1):
5050
- Flutter
@@ -97,7 +97,7 @@ SPEC CHECKSUMS:
9797
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
9898
SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
9999
sensors_plus: 5717760720f7e6acd96fdbd75b7428f5ad755ec2
100-
serious_python: 954ab1502631a446dd28e0bacdb519e8a803a1fe
100+
serious_python: 76a8038b2e4deae2bad1daee4040d7a49e60bc4f
101101
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
102102
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
103103
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4

example/flet_example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ packages:
486486
path: "../.."
487487
relative: true
488488
source: path
489-
version: "0.1.1"
489+
version: "0.1.2"
490490
shake:
491491
dependency: transitive
492492
description:

ios/Classes/SeriousPythonPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class SeriousPythonPlugin: NSObject, FlutterPlugin {
3232
"\(appDir)/__pypackages__",
3333
resourcePath,
3434
"\(resourcePath)/lib/python3.10",
35-
"\(resourcePath)/lib/python3.10/site-packages"
35+
"\(resourcePath)/lib/site-packages.zip"
3636
]
3737

3838
setenv("PYTHONINSPECT", "1", 1)

ios/serious_python.podspec

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'serious_python'
7-
s.version = '0.1.1'
7+
s.version = '0.1.2'
88
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
99
s.description = <<-DESC
1010
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
@@ -49,6 +49,15 @@ Pod::Spec.new do |s|
4949
5050
# fix import subprocess, asyncio
5151
cp -R pod_templates/site-packages/* dist/root/python3/lib/python3.10/site-packages
52+
53+
# zip site-packages
54+
pushd dist/root/python3/lib/python3.10/site-packages
55+
zip -r ../../site-packages.zip .
56+
popd
57+
rm -rf dist/root/python3/lib/python3.10
58+
59+
# remove junk
60+
rm -rf dist/root/python3/lib/python3.10/config-3.10-darwin
5261
CMD
5362

5463
s.libraries = 'z', 'bz2', 'c++', 'sqlite3'

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python
22
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.1.1
5+
version: 0.1.2
66

77
platforms:
88
ios:

0 commit comments

Comments
 (0)