Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
CIBW_SKIP: 'cp27-* cp35-* pp*'
CIBW_BUILD: 'cp36-*'
CIBW_ARCHS_LINUX: auto aarch64
steps:
- name: Set up QEMU
Expand All @@ -24,11 +24,11 @@ jobs:
with:
platforms: arm64
- uses: actions/checkout@v2
- uses: joerick/cibuildwheel@v1.9.0
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- run: pip install cibuildwheel
- run: cibuildwheel
# Install and test on 3.9 here!
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ warn_unused_configs = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true

[bdist_wheel]
py-limited-api = cp36
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
from setuptools import setup
from setuptools.command.build_ext import build_ext

ext_modules = [Extension("markupsafe._speedups", ["src/markupsafe/_speedups.c"])]
ext_modules = [
Extension(
"markupsafe._speedups",
["src/markupsafe/_speedups.c"],
py_limited_api=True,
)
]


class BuildFailed(Exception):
Expand Down