1- image : ubuntu2004
1+
2+ skip_branch_with_pr : true
23
34environment :
4- ANDROID_SDK_ROOT : /usr/lib/android-sdk
5+ python_stack : python 3.12
6+ PYTHON_VERSION : 3.12.6
7+ PYTHON_VERSION_SHORT : 3.12
8+ GITHUB_TOKEN :
9+ secure : 9SKIwc3VSfYJ5IChvNR74rlTF9BMbAfhCGu1/TmYJBMtC6lkY+UDDkZNK7rC9xnQFUxMrNgoo9kNcNAbKbU8XAcrSwkP2H4mX04FI7P+YbxfiWC8nVHhGNxR4LzO+GO0
10+
11+ matrix :
12+ - job_name : Build Python for iOS and macOS
13+ APPVEYOR_BUILD_WORKER_IMAGE : macos-sonoma
14+
15+ - job_name : Build Python for Android
16+ APPVEYOR_BUILD_WORKER_IMAGE : ubuntu-gce-c
17+ NDK_VERSION : r27
18+
19+ - job_name : Build Python for Linux
20+ APPVEYOR_BUILD_WORKER_IMAGE : ubuntu-gce-c
21+ PYTHON_DIST_RELEASE : 20240909
22+
23+ - job_name : Build Python for Windows
24+ APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
25+
26+ matrix :
27+ fast_finish : true
28+
29+ stack : $python_stack
530
631install :
7- - ls -al $ANDROID_SDK_ROOT
32+ - python --version
33+
34+ for :
35+ # ======================================
36+ # Build Python for iOS and macOS
37+ # ======================================
38+
39+ - matrix :
40+ only :
41+ - job_name : Build Python for iOS and macOS
42+
43+ build_script :
44+ - cd darwin
45+
46+ # Build Python for iOS and macOS
47+ - git clone --branch=$PYTHON_VERSION_SHORT https://github.com/beeware/Python-Apple-support.git
48+ - mkdir -p dist
49+ - sh : |
50+ pushd Python-Apple-support
51+ make iOS || exit 1
52+ tar -czf ../dist/python-ios-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support -C .
53+ make macOS || exit 1
54+ popd
55+
56+ # Package for Dart
57+ - ./package-ios-for-dart.sh Python-Apple-support $PYTHON_VERSION_SHORT
58+ - ./package-macos-for-dart.sh Python-Apple-support $PYTHON_VERSION_SHORT
59+
60+ # Push all archives to artifacts
61+ - find dist -maxdepth 1 -type f -iname python-*.tar.gz -exec appveyor PushArtifact -DeploymentName python-darwin {} \;
62+
63+ test : off
64+
65+ deploy :
66+ provider : GitHub
67+ auth_token : $(GITHUB_TOKEN)
68+ release : v$(PYTHON_VERSION_SHORT)
69+ artifact : python-darwin
70+
71+ # ======================================
72+ # Build Python for Android
73+ # ======================================
74+
75+ - matrix :
76+ only :
77+ - job_name : Build Python for Android
78+
79+ build_script :
80+ - cd android
81+
82+ # Build all Python ABIs
83+ - ./build-all.sh $PYTHON_VERSION
84+
85+ # Package support package for use with mobile-forge
86+ - mkdir -p dist
87+ - tar -czf dist/python-android-mobile-forge-$PYTHON_VERSION_SHORT.tar.gz install support
88+
89+ # Package individual ABIs for use with serious_python Flutter package
90+ - ./package-for-dart.sh install $PYTHON_VERSION arm64-v8a
91+ - ./package-for-dart.sh install $PYTHON_VERSION armeabi-v7a
92+ - ./package-for-dart.sh install $PYTHON_VERSION x86_64
93+
94+ # Push all archives to artifacts
95+ - find dist -maxdepth 1 -type f -iname python-android-*.tar.gz -exec appveyor PushArtifact -DeploymentName python-android {} \;
96+
97+ test : off
98+
99+ deploy :
100+ provider : GitHub
101+ auth_token : $(GITHUB_TOKEN)
102+ release : v$(PYTHON_VERSION_SHORT)
103+ artifact : python-android
104+
105+ # ======================================
106+ # Build Python for Linux
107+ # ======================================
108+
109+ - matrix :
110+ only :
111+ - job_name : Build Python for Linux
112+
113+ build_script :
114+ - cd linux
115+ - ./package-for-linux.sh x86_64 "_v3"
116+ - ./package-for-linux.sh aarch64 ""
117+
118+ # Push all archives to artifacts
119+ - ls
120+ - find . -maxdepth 1 -type f -iname "python-linux-dart-*.tar.gz" -exec appveyor PushArtifact -DeploymentName python-linux {} \;
121+
122+ test : off
123+
124+ deploy :
125+ provider : GitHub
126+ auth_token : $(GITHUB_TOKEN)
127+ release : v$(PYTHON_VERSION_SHORT)
128+ artifact : python-linux
129+
130+ # ======================================
131+ # Build Python for Windows
132+ # ======================================
133+
134+ - matrix :
135+ only :
136+ - job_name : Build Python for Windows
137+
138+ install :
139+ - C:\Python312\python --version
140+
141+ build_script :
142+ - cd windows
143+ - curl -OL https://www.python.org/ftp/python/3.12.5/python-3.12.5-amd64.exe
144+ - start /wait python-3.12.5-amd64.exe /uninstall /quiet
145+
146+ - curl -OL https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-amd64.exe
147+ - start /wait python-%PYTHON_VERSION%-amd64.exe /quiet
148+ - dir C:\python312-dist
149+ - C:\python312-dist\python -m compileall -b C:\python312-dist\Lib
150+ - 7z a -xr@exclude.txt python-windows-for-dart-%PYTHON_VERSION_SHORT%.zip C:\python312-dist\*
151+
152+ test : off
8153
9- build_script :
10- - git clone https://github.com/beeware/cpython-android-source-deps
11- - cd cpython-android-source-deps
12- - ./build.sh
154+ artifacts :
155+ - path : windows\python-windows-for-dart-*.zip
156+ name : python-windows
13157
14- test : off
158+ deploy :
159+ provider : GitHub
160+ auth_token : $(GITHUB_TOKEN)
161+ release : v$(PYTHON_VERSION_SHORT)
162+ artifact : python-windows
0 commit comments