From 4dd1860622c6041d1000d3f6341d4638baa983b1 Mon Sep 17 00:00:00 2001 From: BREW <81044362+b-re-w@users.noreply.github.com> Date: Sun, 4 Oct 2026 01:05:22 +0900 Subject: [PATCH] Refactor: Sample's Python sources live under sample/src/commonMain/python (#106) --- docs/platforms/ios-app-bundle.md | 2 +- iosApp/iosApp.xcodeproj/project.pbxproj | 2 +- sample/{python => }/pyproject.toml | 0 .../src/main => src/commonMain/python}/example_py/__init__.py | 0 .../main => src/commonMain/python}/example_py/data/table.json | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename sample/{python => }/pyproject.toml (100%) rename sample/{python/src/main => src/commonMain/python}/example_py/__init__.py (100%) rename sample/{python/src/main => src/commonMain/python}/example_py/data/table.json (100%) diff --git a/docs/platforms/ios-app-bundle.md b/docs/platforms/ios-app-bundle.md index 4aed0c12..949a729f 100644 --- a/docs/platforms/ios-app-bundle.md +++ b/docs/platforms/ios-app-bundle.md @@ -96,7 +96,7 @@ The sample's project is `iosApp/iosApp.xcodeproj` (product `PythonDemo.app`, bun ```sh set -e cd "$SRCROOT/.." -export PYTHON_PAYLOAD_DIR="$SRCROOT/../sample/python/src/main" +export PYTHON_PAYLOAD_DIR="$SRCROOT/../sample/src/commonMain/python" /bin/bash tools/xcode/install-python.sh ``` diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index 7f0dbc4a..6960815a 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -198,7 +198,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "set -e\n# SPEC L-10 / issue #59: the CPython stdlib and this app's python/ payload into the .app, with\n# extension modules wrapped as frameworks. See docs/platforms/ios-app-bundle.md.\ncd \"$SRCROOT/..\"\nexport PYTHON_PAYLOAD_DIR=\"$SRCROOT/../sample/python/src/main\"\n/bin/bash tools/xcode/install-python.sh\n"; + shellScript = "set -e\n# SPEC L-10 / issue #59: the CPython stdlib and this app's python/ payload into the .app, with\n# extension modules wrapped as frameworks. See docs/platforms/ios-app-bundle.md.\ncd \"$SRCROOT/..\"\nexport PYTHON_PAYLOAD_DIR=\"$SRCROOT/../sample/src/commonMain/python\"\n/bin/bash tools/xcode/install-python.sh\n"; }; F36B1CEB2AD83DDC00CB74D5 /* Compile Kotlin Framework */ = { isa = PBXShellScriptBuildPhase; diff --git a/sample/python/pyproject.toml b/sample/pyproject.toml similarity index 100% rename from sample/python/pyproject.toml rename to sample/pyproject.toml diff --git a/sample/python/src/main/example_py/__init__.py b/sample/src/commonMain/python/example_py/__init__.py similarity index 100% rename from sample/python/src/main/example_py/__init__.py rename to sample/src/commonMain/python/example_py/__init__.py diff --git a/sample/python/src/main/example_py/data/table.json b/sample/src/commonMain/python/example_py/data/table.json similarity index 100% rename from sample/python/src/main/example_py/data/table.json rename to sample/src/commonMain/python/example_py/data/table.json