Skip to content

Commit 0b62af8

Browse files
Fix syntax highlighting for serious-python README (#55)
* Update README.md * Update README.md
1 parent c6f05fa commit 0b62af8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/serious_python/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ All "pure" Python packages are supported. These are packages that implemented in
120120
For iOS: packages with native extensions having a [recipe](https://github.com/kivy/kivy-ios/tree/master/kivy_ios/recipes) are supported. To use these packages you need to build a custom Python distributive for iOS (see below).
121121

122122
## Platform notes
123-
124123
### Build matrix
125124

126125
The following matrix shows which platform you should build on to target specific platforms:
@@ -131,19 +130,20 @@ The following matrix shows which platform you should build on to target specific
131130
| Windows | | ✅ | | ✅ (WSL) | ✅ | ✅ |
132131
| Linux | | ✅ | | ✅ | | ✅ |
133132

133+
134134
### macOS
135135

136136
macOS 10.15 (Catalina) is the minimal supported vesion of macOS.
137137

138138
You have to update your Flutter app's `macos/Podfile` to have this line at the very top:
139139

140-
```
140+
```ruby
141141
platform :osx, '10.15'
142142
```
143143

144144
Also, make sure `macos/Runner.xcodeproj/project.pbxproj` contains:
145145

146-
```
146+
```objc
147147
MACOSX_DEPLOYMENT_TARGET = 10.15;
148148
```
149149

@@ -184,7 +184,7 @@ Get the full path to `dist` directory by running `realpath dist` command.
184184
In the terminal where you run `flutter` commands to build your Flet iOS app run the following command to
185185
store `dist` full path in `SERIOUS_PYTHON_IOS_DIST` environment variable:
186186

187-
```
187+
```bash
188188
export SERIOUS_PYTHON_IOS_DIST="<full-path-to-dist-directory>"
189189
```
190190

@@ -214,35 +214,35 @@ On macOS Android SDK will be located at `$HOME/Library/Android/sdk`.
214214

215215
Install Temurin8 to get JRE 1.8 required by `sdkmanager` tool:
216216

217-
```
217+
```bash
218218
brew install --cask temurin8
219219
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home
220220
```
221221

222222
Set the following environment variables:
223223

224-
```
224+
```bash
225225
export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk"
226226
export NDK_VERSION=25.2.9519653
227227
export SDK_VERSION=android-33
228228
```
229229

230230
Add path to `sdkmanager` to `PATH`:
231231

232-
```
232+
```bash
233233
export PATH=$ANDROID_SDK_ROOT/tools/bin:$PATH
234234
```
235235

236236
Install Android SDK and NDK from https://developer.android.com/ndk/downloads/ or with Android SDK Manager:
237237

238-
```
238+
```bash
239239
echo "y" | sdkmanager --install "ndk;$NDK_VERSION" --channel=3
240240
echo "y" | sdkmanager --install "platforms;$SDK_VERSION"
241241
```
242242

243243
Create new Python virtual environment:
244244

245-
```
245+
```bash
246246
python3 -m venv .venv
247247
source .venv/bin/activate
248248
```
@@ -277,7 +277,7 @@ $HOME/.python-for-android/dists/serious_python
277277

278278
In the terminal where you run `flutter` commands to build your Flet Android app run the following command to store distributive full path in `SERIOUS_PYTHON_P4A_DIST` environment variable:
279279

280-
```
280+
```bash
281281
export SERIOUS_PYTHON_P4A_DIST=$HOME/.python-for-android/dists/serious_python
282282
```
283283

@@ -319,4 +319,4 @@ dart run serious_python:main package app/src --mobile --verbose
319319

320320
[Flet app](src/serious_python/example/flet_example).
321321

322-
[Run Python app](src/serious_python/example/run_example).
322+
[Run Python app](src/serious_python/example/run_example).

0 commit comments

Comments
 (0)