openslide / openslide-python

Python bindings to OpenSlide
https://openslide.org/
GNU Lesser General Public License v2.1
374 stars 183 forks source link

convert: use Python Limited API on Python 3.11 and above #238

Closed bgilbert closed 1 year ago

bgilbert commented 1 year ago

This allows us to produce forward-compatible wheels and stop building new wheels for every Python minor release. The buffer protocol API was added to the Limited API in 3.11, so we still need version-specific wheels for releases older than that.

Replace a couple functions that aren't in the Stable API with equivalents that are.

openslide-bot commented 1 year ago

DCO signed off :heavy_check_mark:

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.