Skip to content

Commit 52651d0

Browse files
committed
Version bump to 3.11.7-post1 + build-wheels.yaml
- Update version to 3.11.7-post1 in Cargo.toml, Cargo.lock, pyproject.toml - Add CHANGELOG.md entries for all Anthropic fork changes - Add build-wheels.yaml GitHub Action for wheel building - Include Python 3.14 wheel targets
1 parent baf3cf8 commit 52651d0

File tree

5 files changed

+102
-3
lines changed

5 files changed

+102
-3
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build Python Wheels
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
include:
12+
- os: macos-latest
13+
platform: macos-arm
14+
target: aarch64-apple-darwin
15+
python-version: '3.11'
16+
- os: macos-latest
17+
platform: macos-arm
18+
target: aarch64-apple-darwin
19+
python-version: '3.13'
20+
- os: macos-latest
21+
platform: macos-arm
22+
target: aarch64-apple-darwin
23+
python-version: '3.14'
24+
- os: ubuntu-latest
25+
platform: manylinux-x86_64
26+
target: x86_64-unknown-linux-gnu
27+
python-version: '3.11'
28+
- os: ubuntu-latest
29+
platform: manylinux-x86_64
30+
target: x86_64-unknown-linux-gnu
31+
python-version: '3.13'
32+
- os: ubuntu-latest
33+
platform: manylinux-x86_64
34+
target: x86_64-unknown-linux-gnu
35+
python-version: '3.14'
36+
- os: ubuntu-24.04-arm
37+
platform: manylinux-aarch64
38+
target: aarch64-unknown-linux-gnu
39+
python-version: '3.11'
40+
- os: ubuntu-24.04-arm
41+
platform: manylinux-aarch64
42+
target: aarch64-unknown-linux-gnu
43+
python-version: '3.13'
44+
- os: ubuntu-24.04-arm
45+
platform: manylinux-aarch64
46+
target: aarch64-unknown-linux-gnu
47+
python-version: '3.14'
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
52+
- name: Set up Python ${{ matrix.python-version }}
53+
uses: actions/setup-python@v5
54+
with:
55+
python-version: ${{ matrix.python-version }}
56+
57+
- name: Install Rust
58+
uses: dtolnay/rust-toolchain@stable
59+
with:
60+
targets: ${{ matrix.target }}
61+
62+
- name: Install maturin
63+
run: pip install maturin
64+
65+
- name: Build wheel
66+
run: |
67+
if [[ "${{ matrix.platform }}" == manylinux-* ]]; then
68+
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin:latest build --release --strip --target ${{ matrix.target }} --manylinux 2_17 -i python${{ matrix.python-version }}
69+
else
70+
maturin build --release --strip --target ${{ matrix.target }}
71+
fi
72+
73+
- name: Upload wheel artifact
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: wheel-${{ matrix.platform }}-py${{ matrix.python-version }}
77+
path: target/wheels/*.whl

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# Changelog
22

33

4+
## 3.11.7-post1 (Anthropic fork)
5+
6+
### Added
7+
8+
- NaN/Infinity serialization and deserialization support (non-standard JSON
9+
extension). `float('nan')` serializes to `NaN`, `float('inf')` to `Infinity`,
10+
`float('-inf')` to `-Infinity`. Parsing accepts these literals.
11+
- PyTorch tensor serialization via `OPT_SERIALIZE_NUMPY`. Tensors are converted
12+
to numpy arrays (detach -> cpu -> numpy) before serialization.
13+
- Zero-dimensional numpy array support. 0-d arrays are serialized as scalar
14+
values instead of raising an error.
15+
- Duck-typing based PyTorch tensor detection using module name check, avoiding
16+
runtime torch import overhead.
17+
- MagicMock handling fix: check `__module__` before `HasAttr` to avoid false
18+
positives from MagicMock objects.
19+
20+
### Changed
21+
22+
- Removed yyjson recursion depth limit (YYJSON_DISABLE_NON_STANDARD removed).
23+
- Large overflow numbers now parse as Infinity instead of raising errors.
24+
25+
426
## 3.11.7 - 2026-02-02
527

628
### Changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "orjson"
3-
version = "3.11.7"
3+
version = "3.11.7-post1"
44
authors = ["ijl <ijl@mailbox.org>"]
55
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
66
repository = "https://github.com/ijl/orjson"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "orjson"
3-
version = "3.11.7"
3+
version = "3.11.7-post1"
44
repository = "https://github.com/ijl/orjson"
55
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)