Skip to content

Commit 5000a32

Browse files
Python 3.11.6 (#36)
* Build Python for iOS * Try build with numpy * Python 3.11.6 for iOS * Fix extractAsset() in utils * Python 3.11.6 for macOS * Run 4 jobs * Update example/flet_example/ios/Podfile.lock * Update Podfile.lock * Python 3.11.6 for Android * Python 3.11.6 for Windows * Python 3.11.6 for Linux * Faster download for tests * Fix iOS job * rm ios/Podfile.lock * Try with flutter clean * Run `prepare_command` during podspec installation * Run all jobs * Bump version to 0.5.0 * Refresh pod locks
1 parent 2529937 commit 5000a32

File tree

39 files changed

+9704
-10386
lines changed

39 files changed

+9704
-10386
lines changed

.appveyor.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ environment:
1010

1111
matrix:
1212
- job_name: Build Python for iOS
13-
job_group: build_python
13+
job_group: build_python_darwin
1414
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
1515

1616
- job_name: Build Python for Android
17-
job_group: build_python
17+
job_group: build_python_android
1818
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
1919

2020
- job_name: Test on macOS
2121
job_group: test_serious_python
22-
job_depends_on: build_python
22+
job_depends_on: build_python_darwin
2323
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
2424

2525
- job_name: Test on iOS
2626
job_group: test_serious_python
27-
job_depends_on: build_python
27+
job_depends_on: build_python_darwin
2828
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
2929

3030
- job_name: Test on Android
3131
job_group: test_serious_python
32-
job_depends_on: build_python
32+
job_depends_on: build_python_android
3333
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu-gce-c
3434

3535
- job_name: Test on Windows
@@ -74,7 +74,7 @@ for:
7474
7575
# install Kivy toolchain
7676
- pip3 list
77-
- pip3 install kivy-ios
77+
- pip3 install git+https://github.com/flet-dev/python-for-ios.git
7878
- HOMEBREW_NO_AUTO_UPDATE=1 brew install autoconf automake libtool pkg-config
7979
- brew link libtool
8080

@@ -125,7 +125,7 @@ for:
125125
- echo "y" | sdkmanager --install "platforms;$SDK_VERSION" > /dev/null
126126

127127
# install Kivy for Android
128-
- pip3 install python-for-android
128+
- pip3 install git+https://github.com/flet-dev/python-for-android[email protected]
129129
- pip3 install --upgrade cython
130130
- p4a --help
131131
- p4a create --requirements python3 --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name serious_python
@@ -221,7 +221,7 @@ for:
221221
UDID=$(xcrun xctrace list devices | grep "^e2e test Simulator (16.1)" | awk '{gsub(/[()]/,""); print $NF}')
222222
echo $UDID
223223
xcrun simctl boot "${UDID:?No Simulator with this name found}"
224-
- flutter doctor -v
224+
#- flutter doctor -v
225225

226226
# download dist for non-releases
227227
- |

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Serious Python is part of [Flet](https://flet.dev) project - the fastest way to
1616

1717
### Python versions
1818

19-
* iOS: Python 3.10.10 - based on [Kivy toolchain](https://github.com/kivy/kivy-ios).
20-
* Android: Python 3.10.10 - based on [Kivy python-for-android](https://github.com/kivy/python-for-android).
21-
* macOS: Python 3.10.13 - based on [Beeware's Python Apple Support](https://github.com/beeware/Python-Apple-support).
22-
* Linux: Python 3.10.13 - based on [indygreg/python-build-standalone](https://github.com/indygreg/python-build-standalone).
23-
* Windows: Python 3.10.11 - based on [CPython](https://www.python.org/downloads/release/python-31011/).
19+
* iOS: Python 3.11.6 - based on [Kivy toolchain](https://github.com/kivy/kivy-ios).
20+
* Android: Python 3.11.6 - based on [Kivy python-for-android](https://github.com/kivy/python-for-android).
21+
* macOS: Python 3.11.6 - based on [Beeware's Python Apple Support](https://github.com/beeware/Python-Apple-support).
22+
* Linux: Python 3.11.6 - based on [indygreg/python-build-standalone](https://github.com/indygreg/python-build-standalone).
23+
* Windows: Python 3.11.6 - based on [CPython](https://www.python.org/downloads/release/python-3116/).
2424

2525
## Usage
2626

src/serious_python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.0
2+
3+
* Python 3.11.6 for all platforms.
4+
15
## 0.4.1
26

37
* Bumping version after fixing pubspec.yaml.

src/serious_python/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Serious Python is part of [Flet](https://flet.dev) project - the fastest way to
1616

1717
### Python versions
1818

19-
* iOS: Python 3.10.10 - based on [Kivy toolchain](https://github.com/kivy/kivy-ios).
20-
* Android: Python 3.10.10 - based on [Kivy python-for-android](https://github.com/kivy/python-for-android).
21-
* macOS: Python 3.10.13 - based on [Beeware's Python Apple Support](https://github.com/beeware/Python-Apple-support).
22-
* Linux: Python 3.10.13 - based on [indygreg/python-build-standalone](https://github.com/indygreg/python-build-standalone).
23-
* Windows: Python 3.10.11 - based on [CPython](https://www.python.org/downloads/release/python-31011/).
19+
* iOS: Python 3.11.6 - based on [Kivy toolchain](https://github.com/kivy/kivy-ios).
20+
* Android: Python 3.11.6 - based on [Kivy python-for-android](https://github.com/kivy/python-for-android).
21+
* macOS: Python 3.11.6 - based on [Beeware's Python Apple Support](https://github.com/beeware/Python-Apple-support).
22+
* Linux: Python 3.11.6 - based on [indygreg/python-build-standalone](https://github.com/indygreg/python-build-standalone).
23+
* Windows: Python 3.11.6 - based on [CPython](https://www.python.org/downloads/release/python-3116/).
2424

2525
## Usage
2626

src/serious_python/bin/package_command.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class PackageCommand extends Command {
221221
Future runPython(List<String> args,
222222
{Map<String, String>? environment}) async {
223223
var pythonDir =
224-
Directory(path.join(Directory.systemTemp.path, "hostpython3.10"));
224+
Directory(path.join(Directory.systemTemp.path, "hostpython3.11"));
225225

226226
var pythonExePath = Platform.isWindows
227227
? path.join(pythonDir.path, 'python', 'python.exe')
@@ -252,7 +252,7 @@ class PackageCommand extends Command {
252252
}
253253

254254
final url =
255-
"https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.10.13+20231002-$arch-install_only.tar.gz";
255+
"https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-$arch-install_only.tar.gz";
256256

257257
// Download the release asset
258258
var response = await http.get(Uri.parse(url));

src/serious_python/example/flask_example/ios/Podfile.lock

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
11
PODS:
22
- Flutter (1.0.0)
3+
- package_info_plus (0.4.5):
4+
- Flutter
35
- path_provider_foundation (0.0.1):
46
- Flutter
57
- FlutterMacOS
6-
- serious_python_darwin (0.3.1):
8+
- serious_python_darwin (0.5.0):
79
- Flutter
10+
- FlutterMacOS
811

912
DEPENDENCIES:
1013
- Flutter (from `Flutter`)
14+
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
1115
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
1216
- serious_python_darwin (from `.symlinks/plugins/serious_python_darwin/darwin`)
1317

1418
EXTERNAL SOURCES:
1519
Flutter:
1620
:path: Flutter
21+
package_info_plus:
22+
:path: ".symlinks/plugins/package_info_plus/ios"
1723
path_provider_foundation:
1824
:path: ".symlinks/plugins/path_provider_foundation/darwin"
1925
serious_python_darwin:
2026
:path: ".symlinks/plugins/serious_python_darwin/darwin"
2127

2228
SPEC CHECKSUMS:
2329
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
30+
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
2431
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
25-
serious_python_darwin: 354fff846b363860d6a0e7b2bee8c907862d510a
32+
serious_python_darwin: be59ff398a983746c5bb1c425d9e5caf706198e4
2633

2734
PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef
2835

src/serious_python/example/flask_example/pubspec.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: collection
56-
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
56+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.17.2"
59+
version: "1.18.0"
6060
convert:
6161
dependency: transitive
6262
description:
@@ -180,10 +180,10 @@ packages:
180180
dependency: transitive
181181
description:
182182
name: meta
183-
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
183+
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
184184
url: "https://pub.dev"
185185
source: hosted
186-
version: "1.9.1"
186+
version: "1.10.0"
187187
package_info_plus:
188188
dependency: transitive
189189
description:
@@ -302,42 +302,42 @@ packages:
302302
path: "../.."
303303
relative: true
304304
source: path
305-
version: "0.4.1"
305+
version: "0.5.0"
306306
serious_python_android:
307307
dependency: transitive
308308
description:
309309
path: "../../../serious_python_android"
310310
relative: true
311311
source: path
312-
version: "0.4.1"
312+
version: "0.5.0"
313313
serious_python_darwin:
314314
dependency: transitive
315315
description:
316316
path: "../../../serious_python_darwin"
317317
relative: true
318318
source: path
319-
version: "0.4.1"
319+
version: "0.5.0"
320320
serious_python_linux:
321321
dependency: transitive
322322
description:
323323
path: "../../../serious_python_linux"
324324
relative: true
325325
source: path
326-
version: "0.4.1"
326+
version: "0.5.0"
327327
serious_python_platform_interface:
328328
dependency: transitive
329329
description:
330330
path: "../../../serious_python_platform_interface"
331331
relative: true
332332
source: path
333-
version: "0.4.1"
333+
version: "0.5.0"
334334
serious_python_windows:
335335
dependency: transitive
336336
description:
337337
path: "../../../serious_python_windows"
338338
relative: true
339339
source: path
340-
version: "0.4.1"
340+
version: "0.5.0"
341341
sky_engine:
342342
dependency: transitive
343343
description: flutter
@@ -355,18 +355,18 @@ packages:
355355
dependency: transitive
356356
description:
357357
name: stack_trace
358-
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
358+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
359359
url: "https://pub.dev"
360360
source: hosted
361-
version: "1.11.0"
361+
version: "1.11.1"
362362
stream_channel:
363363
dependency: transitive
364364
description:
365365
name: stream_channel
366-
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
366+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
367367
url: "https://pub.dev"
368368
source: hosted
369-
version: "2.1.1"
369+
version: "2.1.2"
370370
string_scanner:
371371
dependency: transitive
372372
description:
@@ -387,10 +387,10 @@ packages:
387387
dependency: transitive
388388
description:
389389
name: test_api
390-
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
390+
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
391391
url: "https://pub.dev"
392392
source: hosted
393-
version: "0.6.0"
393+
version: "0.6.1"
394394
toml:
395395
dependency: transitive
396396
description:
@@ -419,10 +419,10 @@ packages:
419419
dependency: transitive
420420
description:
421421
name: web
422-
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
422+
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
423423
url: "https://pub.dev"
424424
source: hosted
425-
version: "0.1.4-beta"
425+
version: "0.3.0"
426426
win32:
427427
dependency: transitive
428428
description:
@@ -440,5 +440,5 @@ packages:
440440
source: hosted
441441
version: "1.0.0"
442442
sdks:
443-
dart: ">=3.1.3 <4.0.0"
443+
dart: ">=3.2.0-194.0.dev <4.0.0"
444444
flutter: ">=3.7.0"

src/serious_python/example/flet_example/ios/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ PODS:
4343
- path_provider_foundation (0.0.1):
4444
- Flutter
4545
- FlutterMacOS
46-
- SDWebImage (5.15.8):
47-
- SDWebImage/Core (= 5.15.8)
48-
- SDWebImage/Core (5.15.8)
46+
- SDWebImage (5.18.5):
47+
- SDWebImage/Core (= 5.18.5)
48+
- SDWebImage/Core (5.18.5)
4949
- sensors_plus (0.0.1):
5050
- Flutter
51-
- serious_python_darwin (0.3.1):
51+
- serious_python_darwin (0.5.0):
5252
- Flutter
5353
- FlutterMacOS
5454
- shared_preferences_foundation (0.0.1):
@@ -108,9 +108,9 @@ SPEC CHECKSUMS:
108108
integration_test: 13825b8a9334a850581300559b8839134b124670
109109
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
110110
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
111-
SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
111+
SDWebImage: 7ac2b7ddc5e8484c79aa90fc4e30b149d6a2c88f
112112
sensors_plus: 5717760720f7e6acd96fdbd75b7428f5ad755ec2
113-
serious_python_darwin: a56e5abbd03a9dae9eb69cb6631d183d32a04b7c
113+
serious_python_darwin: be59ff398a983746c5bb1c425d9e5caf706198e4
114114
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
115115
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
116116
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4

src/serious_python/example/flet_example/macos/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PODS:
99
- FlutterMacOS
1010
- screen_retriever (0.0.1):
1111
- FlutterMacOS
12-
- serious_python_darwin (0.3.1):
12+
- serious_python_darwin (0.4.1):
1313
- Flutter
1414
- FlutterMacOS
1515
- shared_preferences_foundation (0.0.1):
@@ -62,7 +62,7 @@ SPEC CHECKSUMS:
6262
package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce
6363
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
6464
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38
65-
serious_python_darwin: a56e5abbd03a9dae9eb69cb6631d183d32a04b7c
65+
serious_python_darwin: 9f70530340090c8704d985333396f53d8f79df1a
6666
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
6767
url_launcher_macos: 5335912b679c073563f29d89d33d10d459f95451
6868
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8

0 commit comments

Comments
 (0)