mongodb-labs / python-bsonjs

A fast BSON to MongoDB Extended JSON converter for Python - This Repository is NOT a supported MongoDB product
Apache License 2.0
40 stars 10 forks source link

Use the Python 3.6+ limited API #40

Closed ShaneHarvey closed 2 years ago

ShaneHarvey commented 2 years ago

This changes us to use the stable C API (limited API): https://docs.python.org/3/c-api/stable.html

What this means is that we only need to build wheels for Python 3.6 and they will work for all future python versions. For example the manylinux wheels are now just:

python_bsonjs-0.3.0.dev0-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.whl
python_bsonjs-0.3.0.dev0-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl

Mac is now just:

python_bsonjs-0.3.0.dev0-cp36-abi3-macosx_10_9_x86_64.whl
python_bsonjs-0.3.0.dev0-cp36-abi3-macosx_10_9_universal2.whl  # The universal2 tag is new with Python 3.10

And similar with windows.