Skip to content

Commit 6e27795

Browse files
authored
Add arm64 wheels and prep for 0.7.0 release (#82)
1 parent 48a34c0 commit 6e27795

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

.github/workflows/dist.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
strategy:
3030
matrix:
31-
os: [macos-latest, windows-latest, ubuntu-latest]
31+
os: [macos-latest, windows-latest, ubuntu-24.04-arm, ubuntu-latest]
3232
name: Build CPython-${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v4
3535
- uses: pypa/cibuildwheel@352e01339f0a173aa2a3eb57f01492e341e83865 # v3.13.3
36-
env:
37-
CIBW_ARCHS_MACOS: x86_64 universal2
38-
CIBW_TEST_SKIP: '*universal2:arm64'
39-
CIBW_BUILD: "cp39-macosx_universal2 cp39-win* cp39-manylinux_{x86_64,i686}"
4036
- uses: actions/upload-artifact@v4
4137
with:
4238
name: ${{ matrix.os }}-wheel

CHANGELOG.rst

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

4+
0.7.0
5+
`````
6+
- Add support for Python 3.14.
7+
- Add arm64 wheels.
8+
49
0.6.0
510
`````
611
- Drop support for Python 3.8.

pyproject.toml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages = []
77

88
[project]
99
name = "python-bsonjs"
10-
version = "0.7.0.dev0"
10+
version = "0.7.0"
1111
description = "A library for converting between BSON and JSON."
1212
readme = "README.rst"
1313
license = { file = "LICENSE" }
@@ -35,6 +35,7 @@ classifiers = [
3535
"Programming Language :: Python :: 3.11",
3636
"Programming Language :: Python :: 3.12",
3737
"Programming Language :: Python :: 3.13",
38+
"Programming Language :: Python :: 3.14",
3839
]
3940

4041
[project.urls]
@@ -45,4 +46,22 @@ test = ["pymongo>=4", "pytest"]
4546

4647
[tool.cibuildwheel]
4748
test-command = "pytest {package}/test"
48-
test-extras = ["test"]
49+
test-extras = ["test"]
50+
skip = ["cp314t-*"]
51+
52+
# Use abi3audit to catch issues with Limited API wheels
53+
[tool.cibuildwheel.linux]
54+
repair-wheel-command = [
55+
"auditwheel repair -w {dest_dir} {wheel}",
56+
"pipx run abi3audit --strict --report {wheel}",
57+
]
58+
[tool.cibuildwheel.macos]
59+
repair-wheel-command = [
60+
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
61+
"pipx run abi3audit --strict --report {wheel}",
62+
]
63+
[tool.cibuildwheel.windows]
64+
repair-wheel-command = [
65+
"copy {wheel} {dest_dir}",
66+
"pipx run abi3audit --strict --report {wheel}",
67+
]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"bsonjs/common"],
3636
py_limited_api=True,
3737
define_macros=[("BSON_COMPILATION", 1),
38-
("Py_LIMITED_API", "0x03060000")],
38+
("Py_LIMITED_API", "0x03090000")],
3939
libraries=libraries
4040
)
4141
],
42-
options={'bdist_wheel': {'py_limited_api': 'cp37'} }
42+
options={'bdist_wheel': {'py_limited_api': 'cp39'} }
4343
)

0 commit comments

Comments
 (0)