Skip to content

Commit d8e26bd

Browse files
committed
upgrade python to 3.14
1 parent a3ec189 commit d8e26bd

9 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
ROOT: "${{ github.workspace }}"
1414
SCRIPTS: "${{ github.workspace }}/.github/scripts"
1515
SERIOUS_PYTHON_SITE_PACKAGES: "${{ github.workspace }}/site-packages"
16-
UV_PYTHON: "3.12"
16+
UV_PYTHON: "3.14"
1717

1818
jobs:
1919
macos:

src/serious_python/bin/package_command.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const mobilePyPiUrl = "https://pypi.flet.dev";
1818
const pyodideRootUrl = "https://cdn.jsdelivr.net/pyodide/v0.27.7/full";
1919
const pyodideLockFile = "pyodide-lock.json";
2020

21-
const buildPythonVersion = "3.12.9";
22-
const buildPythonReleaseDate = "20250205";
21+
const buildPythonVersion = "3.14.0";
22+
const buildPythonReleaseDate = "20251007";
2323
const defaultSitePackagesDir = "__pypackages__";
2424
const sitePackagesEnvironmentVariable = "SERIOUS_PYTHON_SITE_PACKAGES";
2525
const flutterPackagesFlutterEnvironmentVariable =

src/serious_python_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
group 'com.flet.serious_python_android'
22
version '0.9.4'
33

4-
def python_version = '3.12'
4+
def python_version = '3.14'
55

66
buildscript {
77
repositories {

src/serious_python_android/lib/serious_python_android.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ class SeriousPythonAndroid extends SeriousPythonPlatform {
9494
}
9595

9696
return runPythonProgramFFI(
97-
sync ?? false, "libpython3.12.so", appPath, script ?? "");
97+
sync ?? false, "libpython3.14.so", appPath, script ?? "");
9898
}
9999
}

src/serious_python_android/lib/src/gen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25766,9 +25766,9 @@ const int PY_RELEASE_LEVEL = 15;
2576625766

2576725767
const int PY_RELEASE_SERIAL = 0;
2576825768

25769-
const String PY_VERSION = '3.12.3';
25769+
const String PY_VERSION = '3.14.0';
2577025770

25771-
const int PY_VERSION_HEX = 51119088;
25771+
const int PY_VERSION_HEX = 51249392;
2577225772

2577325773
const int ALIGNOF_LONG = 8;
2577425774

src/serious_python_darwin/darwin/serious_python_darwin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
}
2828
s.swift_version = '5.0'
2929

30-
python_version = "3.12"
30+
python_version = "3.14"
3131

3232
dist_ios = "dist_ios"
3333
dist_macos = "dist_macos"

src/serious_python_linux/linux/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.10)
88

99
# Project-level configuration.
1010
set(PROJECT_NAME "serious_python_linux")
11-
set(PYTHON_VERSION "3.12")
11+
set(PYTHON_VERSION "3.14")
1212
set(PYTHON_ARCH ${CMAKE_HOST_SYSTEM_PROCESSOR})
1313
project(${PROJECT_NAME} LANGUAGES CXX)
1414

@@ -53,7 +53,7 @@ target_include_directories(${PLUGIN_NAME} INTERFACE
5353
"${CMAKE_CURRENT_SOURCE_DIR}/include"
5454
)
5555
include_directories(
56-
"${PYTHON_PACKAGE}/include/python3.12"
56+
"${PYTHON_PACKAGE}/include/python3.14"
5757
)
5858

5959
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
@@ -67,11 +67,11 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE
6767
# external build triggered from this build file.
6868
set(serious_python_linux_bundled_libraries
6969
"${PYTHON_PACKAGE}/lib/libpython3.so"
70-
"${PYTHON_PACKAGE}/lib/libpython3.12.so.1.0"
70+
"${PYTHON_PACKAGE}/lib/libpython3.14.so.1.0"
7171
PARENT_SCOPE
7272
)
7373

74-
install(DIRECTORY "${PYTHON_PACKAGE}/lib/python3.12"
74+
install(DIRECTORY "${PYTHON_PACKAGE}/lib/python3.14"
7575
DESTINATION "${CMAKE_BINARY_DIR}/bundle")
7676

7777
install(CODE "

src/serious_python_linux/linux/serious_python_linux_plugin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void serious_python_linux_plugin_handle_method_call(
102102
module_paths_str_array[i++] = g_strdup_printf("%s", app_dir);
103103
module_paths_str_array[i++] = g_strdup_printf("%s/__pypackages__", app_dir);
104104
module_paths_str_array[i++] = g_strdup_printf("%s/site-packages", exe_dir);
105-
module_paths_str_array[i++] = g_strdup_printf("%s/python3.12", exe_dir);
105+
module_paths_str_array[i++] = g_strdup_printf("%s/python3.14", exe_dir);
106106
module_paths_str_array[i++] = NULL;
107107

108108
gchar *module_paths_str = g_strjoinv(":", module_paths_str_array); // join with comma and space as separators

src/serious_python_windows/windows/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cmake_policy(VERSION 3.14...3.25)
1717
set(PLUGIN_NAME "serious_python_windows_plugin")
1818

1919
set(PYTHON_PACKAGE ${CMAKE_BINARY_DIR}/python)
20-
set(PYTHON_URL "https://github.com/flet-dev/python-build/releases/download/v3.12/python-windows-for-dart-3.12.zip")
20+
set(PYTHON_URL "https://github.com/cfms-dev/python-build/releases/download/v3.14/python-windows-for-dart-3.14.zip")
2121
set(PYTHON_FILE ${CMAKE_BINARY_DIR}/python-windows-for-dart.zip)
2222
if (NOT EXISTS ${PYTHON_FILE})
2323
file(DOWNLOAD ${PYTHON_URL} ${PYTHON_FILE})

0 commit comments

Comments
 (0)