Skip to content

Commit e0f5088

Browse files
authored
Update python support (#61)
1 parent 66fc186 commit e0f5088

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

.github/workflows/release-python.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [macos-14, windows-2019, ubuntu-latest]
22+
os: [macos-latest, windows-latest, ubuntu-latest]
2323
name: Build CPython ${{ matrix.python-version }}-${{ matrix.os }}
2424
steps:
2525
- uses: actions/checkout@v4
2626
- uses: pypa/cibuildwheel@v2.22.0
2727
env:
2828
CIBW_ARCHS_MACOS: x86_64 universal2
2929
CIBW_TEST_SKIP: '*universal2:arm64'
30-
CIBW_BUILD: "cp38-macosx_universal2 cp38-win* cp38-manylinux_{x86_64,i686}"
30+
CIBW_BUILD: "cp39-macosx_universal2 cp39-win* cp39-manylinux_{x86_64,i686}"
3131
- uses: actions/upload-artifact@v4
3232
with:
3333
name: ${{ matrix.os }}-wheel
@@ -38,8 +38,8 @@ jobs:
3838
runs-on: ${{ matrix.os }}
3939
strategy:
4040
matrix:
41-
os: [macos-12, windows-2019]
42-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
41+
os: [macos-latest, windows-latest]
42+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4343
name: Test CPython ${{ matrix.python-version }}-${{ matrix.os }}
4444
steps:
4545
- name: Setup Python
@@ -66,8 +66,7 @@ jobs:
6666
matrix:
6767
os: [ubuntu-latest]
6868
container: ['manylinux2014_i686', 'manylinux2014_x86_64']
69-
python-version: ['cp38-cp38',
70-
'cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313']
69+
python-version: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312', 'cp313-cp313']
7170
name: Test CPython ${{ matrix.python-version }}-${{ matrix.container }}
7271
steps:
7372
- name: Download a previously created wheel
@@ -85,7 +84,7 @@ jobs:
8584
- name: Setup Python
8685
uses: actions/setup-python@v5
8786
with:
88-
python-version: 3.8
87+
python-version: 3.9
8988
- name: Build SDist
9089
run: |
9190
python -m pip install build

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [macos-latest, ubuntu-latest, windows-2019]
20-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
20+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2121

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

CHANGELOG.rst

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

4+
0.6.0 (unreleased)
5+
``````````````````
6+
Drop support for Python 3.8.
7+
48
0.5.0
59
`````
610
Version 0.5.0 updates python-bsonjs's vendored copy of libbson to 1.27.6.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ like so
106106
Installing From Source
107107
======================
108108

109-
python-bsonjs supports CPython 3.8+.
109+
python-bsonjs supports CPython 3.9+.
110110

111111
Compiler
112112
````````

build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838

3939
# Install packages and test.
4040
for PYBIN in /opt/python/*/bin; do
41-
if [[ ! "${PYBIN}" =~ (36|37|38|39|310) || "${PYBIN}" =~ (pypy) ]]; then
41+
if [[ ! "${PYBIN}" =~ (39|310) || "${PYBIN}" =~ (pypy) ]]; then
4242
continue
4343
fi
4444
"${PYBIN}/pip" install python-bsonjs --no-index -f dist

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version = "0.6.0.dev0"
1111
description = "A library for converting between BSON and JSON."
1212
readme = "README.rst"
1313
license = { file = "LICENSE" }
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
authors = [
1616
{ name = "Shane Harvey", email = "shane.harvey@mongodb.com" },
1717
]
@@ -29,7 +29,6 @@ classifiers = [
2929
"Operating System :: POSIX",
3030
"Programming Language :: Python :: 3",
3131
"Programming Language :: Python :: 3 :: Only",
32-
"Programming Language :: Python :: 3.8",
3332
"Programming Language :: Python :: 3.9",
3433
"Programming Language :: Python :: Implementation :: CPython",
3534
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)