diff --git a/.github/workflows/_build_wheels.yaml b/.github/workflows/_build_wheels.yaml index ce5ea96..66710e7 100644 --- a/.github/workflows/_build_wheels.yaml +++ b/.github/workflows/_build_wheels.yaml @@ -25,11 +25,11 @@ jobs: max-parallel: 4 matrix: include: - - { os: macos-12, arch: x86_64, build: "*" } # cpython - - { os: macos-12, arch: arm64, build: "*" } - - { os: windows-latest, arch: x86, build: "*" } - - { os: windows-latest, arch: AMD64, build: "*" } - - { os: ubuntu-latest, arch: x86_64, build: "*" } + - { os: macos-12, arch: x86_64, build: "cp38*" } # cpython + - { os: macos-12, arch: arm64, build: "cp38*" } + - { os: windows-latest, arch: x86, build: "cp38*" } + - { os: windows-latest, arch: AMD64, build: "cp38*" } + - { os: ubuntu-latest, arch: x86_64, build: "cp38*" } steps: - uses: docker/setup-qemu-action@v3 if: matrix.os == 'ubuntu-latest' diff --git a/pyproject.toml b/pyproject.toml index a921b7d..3a7f639 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,5 +37,8 @@ testing = [ "pytest-github-actions-annotate-failures==0.2.0", ] +[tool.distutils.bdist_wheel] +py-limited-api = 'cp38' + [tool.pytest.ini_options] pythonpath = ['src'] diff --git a/setup.py b/setup.py index c7c63df..cdfdba8 100644 --- a/setup.py +++ b/setup.py @@ -12,4 +12,5 @@ ext_modules=[module], packages=find_packages("src"), package_dir={"": "src"}, + options={'bdist_wheel': {'py_limited_api': 'cp38'}}, )