Skip to content

Commit

Permalink
Python 3.11.6 (#36)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
FeodorFitsner authored Nov 23, 2023
1 parent 2529937 commit 5000a32
Show file tree
Hide file tree
Showing 39 changed files with 9,704 additions and 10,386 deletions.
16 changes: 8 additions & 8 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ environment:

matrix:
- job_name: Build Python for iOS
job_group: build_python
job_group: build_python_darwin
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey

- job_name: Build Python for Android
job_group: build_python
job_group: build_python_android
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004

- job_name: Test on macOS
job_group: test_serious_python
job_depends_on: build_python
job_depends_on: build_python_darwin
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey

- job_name: Test on iOS
job_group: test_serious_python
job_depends_on: build_python
job_depends_on: build_python_darwin
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey

- job_name: Test on Android
job_group: test_serious_python
job_depends_on: build_python
job_depends_on: build_python_android
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu-gce-c

- job_name: Test on Windows
Expand Down Expand Up @@ -74,7 +74,7 @@ for:
# install Kivy toolchain
- pip3 list
- pip3 install kivy-ios
- pip3 install git+https://github.com/flet-dev/python-for-ios.git
- HOMEBREW_NO_AUTO_UPDATE=1 brew install autoconf automake libtool pkg-config
- brew link libtool

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

# install Kivy for Android
- pip3 install python-for-android
- pip3 install git+https://github.com/flet-dev/python-for-android[email protected]
- pip3 install --upgrade cython
- p4a --help
- 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
Expand Down Expand Up @@ -221,7 +221,7 @@ for:
UDID=$(xcrun xctrace list devices | grep "^e2e test Simulator (16.1)" | awk '{gsub(/[()]/,""); print $NF}')
echo $UDID
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- flutter doctor -v
#- flutter doctor -v

# download dist for non-releases
- |
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Serious Python is part of [Flet](https://flet.dev) project - the fastest way to

### Python versions

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

## Usage

Expand Down
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 @@
## 0.5.0

* Python 3.11.6 for all platforms.

## 0.4.1

* Bumping version after fixing pubspec.yaml.
Expand Down
10 changes: 5 additions & 5 deletions src/serious_python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Serious Python is part of [Flet](https://flet.dev) project - the fastest way to

### Python versions

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

## Usage

Expand Down
4 changes: 2 additions & 2 deletions src/serious_python/bin/package_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class PackageCommand extends Command {
Future runPython(List<String> args,
{Map<String, String>? environment}) async {
var pythonDir =
Directory(path.join(Directory.systemTemp.path, "hostpython3.10"));
Directory(path.join(Directory.systemTemp.path, "hostpython3.11"));

var pythonExePath = Platform.isWindows
? path.join(pythonDir.path, 'python', 'python.exe')
Expand Down Expand Up @@ -252,7 +252,7 @@ class PackageCommand extends Command {
}

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

// Download the release asset
var response = await http.get(Uri.parse(url));
Expand Down
11 changes: 9 additions & 2 deletions src/serious_python/example/flask_example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
PODS:
- Flutter (1.0.0)
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- serious_python_darwin (0.3.1):
- serious_python_darwin (0.5.0):
- Flutter
- FlutterMacOS

DEPENDENCIES:
- Flutter (from `Flutter`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- serious_python_darwin (from `.symlinks/plugins/serious_python_darwin/darwin`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
serious_python_darwin:
:path: ".symlinks/plugins/serious_python_darwin/darwin"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
serious_python_darwin: 354fff846b363860d6a0e7b2bee8c907862d510a
serious_python_darwin: be59ff398a983746c5bb1c425d9e5caf706198e4

PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef

Expand Down
38 changes: 19 additions & 19 deletions src/serious_python/example/flask_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.2"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -180,10 +180,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
package_info_plus:
dependency: transitive
description:
Expand Down Expand Up @@ -302,42 +302,42 @@ packages:
path: "../.."
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
serious_python_android:
dependency: transitive
description:
path: "../../../serious_python_android"
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
serious_python_darwin:
dependency: transitive
description:
path: "../../../serious_python_darwin"
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
serious_python_linux:
dependency: transitive
description:
path: "../../../serious_python_linux"
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
serious_python_platform_interface:
dependency: transitive
description:
path: "../../../serious_python_platform_interface"
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
serious_python_windows:
dependency: transitive
description:
path: "../../../serious_python_windows"
relative: true
source: path
version: "0.4.1"
version: "0.5.0"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -355,18 +355,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
string_scanner:
dependency: transitive
description:
Expand All @@ -387,10 +387,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "0.6.1"
toml:
dependency: transitive
description:
Expand Down Expand Up @@ -419,10 +419,10 @@ packages:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
version: "0.3.0"
win32:
dependency: transitive
description:
Expand All @@ -440,5 +440,5 @@ packages:
source: hosted
version: "1.0.0"
sdks:
dart: ">=3.1.3 <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.7.0"
12 changes: 6 additions & 6 deletions src/serious_python/example/flet_example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- SDWebImage (5.15.8):
- SDWebImage/Core (= 5.15.8)
- SDWebImage/Core (5.15.8)
- SDWebImage (5.18.5):
- SDWebImage/Core (= 5.18.5)
- SDWebImage/Core (5.18.5)
- sensors_plus (0.0.1):
- Flutter
- serious_python_darwin (0.3.1):
- serious_python_darwin (0.5.0):
- Flutter
- FlutterMacOS
- shared_preferences_foundation (0.0.1):
Expand Down Expand Up @@ -108,9 +108,9 @@ SPEC CHECKSUMS:
integration_test: 13825b8a9334a850581300559b8839134b124670
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
SDWebImage: 7ac2b7ddc5e8484c79aa90fc4e30b149d6a2c88f
sensors_plus: 5717760720f7e6acd96fdbd75b7428f5ad755ec2
serious_python_darwin: a56e5abbd03a9dae9eb69cb6631d183d32a04b7c
serious_python_darwin: be59ff398a983746c5bb1c425d9e5caf706198e4
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
Expand Down
4 changes: 2 additions & 2 deletions src/serious_python/example/flet_example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PODS:
- FlutterMacOS
- screen_retriever (0.0.1):
- FlutterMacOS
- serious_python_darwin (0.3.1):
- serious_python_darwin (0.4.1):
- Flutter
- FlutterMacOS
- shared_preferences_foundation (0.0.1):
Expand Down Expand Up @@ -62,7 +62,7 @@ SPEC CHECKSUMS:
package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38
serious_python_darwin: a56e5abbd03a9dae9eb69cb6631d183d32a04b7c
serious_python_darwin: 9f70530340090c8704d985333396f53d8f79df1a
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c
url_launcher_macos: 5335912b679c073563f29d89d33d10d459f95451
window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8
Expand Down
Loading

0 comments on commit 5000a32

Please sign in to comment.