Skip to content

Commit 48a34c0

Browse files
authored
INTPYTHON-710 Add Python 3.14 support (#80)
1 parent f463f84 commit 48a34c0

File tree

3 files changed

+8
-47
lines changed

3 files changed

+8
-47
lines changed

.github/workflows/dist.yml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
name: Build CPython-${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v4
35-
- uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3
35+
- uses: pypa/cibuildwheel@352e01339f0a173aa2a3eb57f01492e341e83865 # v3.13.3
3636
env:
3737
CIBW_ARCHS_MACOS: x86_64 universal2
3838
CIBW_TEST_SKIP: '*universal2:arm64'
@@ -42,49 +42,6 @@ jobs:
4242
name: ${{ matrix.os }}-wheel
4343
path: ./wheelhouse/*.whl
4444
if-no-files-found: error
45-
test_non_linux_wheels:
46-
needs: build_wheels
47-
runs-on: ${{ matrix.os }}
48-
strategy:
49-
matrix:
50-
os: [macos-latest, windows-latest]
51-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
52-
name: Test CPython ${{ matrix.python-version }}-${{ matrix.os }}
53-
steps:
54-
- name: Setup Python
55-
uses: actions/setup-python@v5
56-
with:
57-
python-version: ${{ matrix.python-version }}
58-
allow-prereleases: true
59-
- name: Download a previously created wheel
60-
uses: actions/download-artifact@v4
61-
with:
62-
name: ${{ matrix.os }}-wheel
63-
- name: Test wheel
64-
shell: bash
65-
run: |
66-
python -m pip install -U pip
67-
python -m pip install --no-index --find-links=./ python_bsonjs
68-
python -m pip list | grep python-bsonjs
69-
python -c "from bsonjs import dumps"
70-
# Linux
71-
test_manylinux_wheels:
72-
runs-on: ${{ matrix.os }}
73-
needs: build_wheels
74-
strategy:
75-
matrix:
76-
os: [ubuntu-latest]
77-
container: ['manylinux2014_i686', 'manylinux2014_x86_64']
78-
python-version: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313']
79-
name: Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
80-
steps:
81-
- name: Download a previously created wheel
82-
uses: actions/download-artifact@v4
83-
with:
84-
name: ${{ matrix.os }}-wheel
85-
- name: Test wheel
86-
run: |
87-
docker run --rm --volume `pwd`:/python quay.io/pypa/${{ matrix.container }} /bin/bash -c "/opt/python/${{ matrix.python-version }}/bin/python -m pip install -U pip && /opt/python/${{ matrix.python-version }}/bin/python -m pip install --find-links=/python/ --no-index python_bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -m pip list | grep python-bsonjs && /opt/python/${{ matrix.python-version }}/bin/python -c 'from bsonjs import dumps'"
8845
make_sdist:
8946
name: Make SDist
9047
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [macos-latest, ubuntu-latest, windows-2019]
20-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19+
os: [macos-latest, ubuntu-latest, windows-latest]
20+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,8 @@ classifiers = [
4141
Homepage = "https://github.com/mongodb-labs/python-bsonjs"
4242

4343
[project.optional-dependencies]
44-
test = ["pymongo>=4", "pytest"]
44+
test = ["pymongo>=4", "pytest"]
45+
46+
[tool.cibuildwheel]
47+
test-command = "pytest {package}/test"
48+
test-extras = ["test"]

0 commit comments

Comments
 (0)