Skip to content

Commit 441e1b5

Browse files
committed
feat: add UTF-8 encoding setup for Windows in CI workflows and improve documentation formatting
1 parent 6fc7661 commit 441e1b5

4 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/test-python-bindings.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@ jobs:
182182
run: |
183183
uv pip install --system build wheel setuptools
184184
185+
- name: Set UTF-8 encoding (Windows only)
186+
if: matrix.platform == 'windows/amd64' || matrix.platform == 'windows/arm64'
187+
shell: bash
188+
run: |
189+
echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV
190+
echo "PYTHONUTF8=1" >> $GITHUB_ENV
191+
185192
# Windows currently enabled, no symlink needed
186193
# - name: Create python3 symlink (Windows only)
187194
# if: matrix.platform == 'windows/amd64' || matrix.platform == 'windows/arm64'

.github/workflows/test-python-examples.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ jobs:
264264
# macOS doesn't have timeout command by default, use coreutils
265265
brew install coreutils
266266
267-
# Windows currently enabled, no env override needed
268-
# - name: Set UTF-8 encoding (Windows only)
269-
# if: matrix.platform == 'windows/amd64' || matrix.platform == 'windows/arm64'
270-
# shell: bash
271-
# run: |
272-
# echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV
267+
- name: Set UTF-8 encoding (Windows only)
268+
if: matrix.platform == 'windows/amd64' || matrix.platform == 'windows/arm64'
269+
shell: bash
270+
run: |
271+
echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV
272+
echo "PYTHONUTF8=1" >> $GITHUB_ENV
273273
274274
- name: Run all examples
275275
id: run_examples

bindings/python/docs/development/build-architecture.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ We use a **hybrid build approach** to create platform-specific wheels:
4141
- Pre-filtered JARs from artifact (eliminates glob issues)
4242

4343
3. **Windows platform:** Native builds
44-
- Uses platform-specific GitHub Actions runner
45-
- Native `jlink` creates correct JRE for the platform
46-
- Pre-filtered JARs from artifact (eliminates glob issues)
44+
- Uses platform-specific GitHub Actions runner
45+
- Native `jlink` creates correct JRE for the platform
46+
- Pre-filtered JARs from artifact (eliminates glob issues)
4747

4848
**Critical:** All wheels are **platform-specific** (not `py3-none-any`). This is achieved by:
4949

@@ -157,9 +157,9 @@ jobs:
157157

158158
1. Download pre-filtered JARs artifact
159159
2. Run `build-native.sh`:
160-
- Uses system Java (GitHub runner provides Java 25)
161-
- Runs `jlink` natively → platform-specific JRE
162-
- Builds wheel with `python -m build`
160+
- Uses system Java (GitHub runner provides Java 25)
161+
- Runs `jlink` natively → platform-specific JRE
162+
- Builds wheel with `python -m build`
163163
3. Run tests on native platform
164164

165165
## JAR Exclusion System
@@ -336,8 +336,8 @@ bindings/python/
336336
- Uploads artifact for native builds
337337
338338
2. **test job matrix** (lines 91-364)
339-
- Builds 4 platforms
340-
- Platform-specific steps (native runners, artifact download, tests)
339+
- Builds 4 platforms
340+
- Platform-specific steps (native runners, artifact download, tests)
341341
342342
3. **Test parsing** (lines 200-237)
343343
- JUnit XML generation and parsing

bindings/python/docs/guide/core/queries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ with db.transaction():
196196
ArcadeDB supports `UPDATE ... CONTENT` with JSON arrays to update multiple
197197
documents in one statement.
198198

199+
{% raw %}
199200
```python
200201
with db.transaction():
201202
db.command(
@@ -221,6 +222,7 @@ with db.transaction():
221222
rows = result.to_list()
222223
assert {row["status"] for row in rows} == {"updated"}
223224
```
225+
{% endraw %}
224226

225227
#### TRUNCATE BUCKET
226228

0 commit comments

Comments
 (0)